UL for Linux
User library to access and control supported MCC hardware over the Linux platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TC-32

The TC-32 supports the following UL for Linux capabilities.

Analog Input

Channels:0 to 31
0 to 63 if the TC-32-EXP is attached - see ulDevGetConfig()/DEV_CFG_HAS_EXP below
TIn flags:TIN_FF_DEFAULT, TIN_FF_WAIT_FOR_NEW_DATA
TInArray Flags:TINARRAY_FF_DEFAULT, TINARRAY_FF_WAIT_FOR_NEW_DATA
Functions:ulTIn(), ulTInArray(), ulAIGetConfig(), ulAISetConfig()
Configuration:Config Item (Get/Set): AI_CFG_CHAN_TC_TYPE, AI_CFG_CHAN_TYPE, AI_CFG_OTD_MODE, AI_CFG_REJECT_FREQ_TYPE, AI_CFG_CAL_TABLE_TYPE
Config Item (Get): AI_CFG_CAL_DATE_STR, AI_CFG_EXP_CAL_DATE_STR

Digital I/O

Ports:FIRSTPORTA, FIRSTPORTB
SECONDPORTA, SECONDPORTB if the TC-32-EXP is attached - see ulDevGetConfig()/DEV_CFG_HAS_EXP below
Bits:FIRSTPORTA: 0 to 7
FIRSTPORTB: 0 to 31
SECONDPORTA: 0 to 7
SECONDPORTB: 0 to 31
Functions:ulDIn(), ulDOut(), ulDBitIn(), ulDBitOut(), ulDIOGetConfig(), ulDClearAlarm()
Call ulDevGetConfig() with the DEV_CFG_HAS_EXP configItem to determine the number of valid digital ports.
Configuration:Config Item (Get): DIO_CFG_PORT_DIRECTION_MASK

Device

Functions:ulFlashLed(), ulMemRead(), ulMemWrite(), ulDevSetConfig(), ulDevGetConfig(), ulDevGetConfigStr()
Configuration:Config Item (Get/Set): DEV_CFG_CONNECTION_CODE
Config Item (Get): DEV_CFG_IP_ADDR_STR, DEV_CFG_NET_IFC_STR, DEV_CFG_HAS_EXP

Settings memory map

The settings memory map is provided for advanced applications which require device configuration.
Note that default device settings are acceptable for most applications. If you need to change a device setting, however, the preferred method to use is InstaCal.

AddressValueDefauleValue
0x00-0x01Network options:
   Bit 0: 0 = DHCP enabled, 1 = DHCP disabled
   Bit 1: 0 = Auto IP enabled, 1 = Auto IP disabled
   Bit 2-15: reserved
0x0000
0x02-0x05Default IPv4 address192.168.0.101
0x06-0x09Default IPv4 subnet mask255.255.255.0
0x0A-0x0DDefault IPv4 gateway address192.168.0.1
0x0E-0x0FReserved 
0x10-0x11Reserved 
0x12-0x15Connection code, 4 bytes0x00000000
0x16-0x1FReserved 

Note: The settings do not take effect until after the device is reset or power cycled.

If you are unable to communicate with the device after changing the settings section of memory, refer to the Restoring factory default settings section of the device user's manual.