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
E-1608

The E-1608 supports the following UL for Linux capabilities.

Unless otherwise indicated, the OEM version supports the same capabilities as the standard version.

Analog Input

Channels:0 to 7
Input modes:AI_DIFFERENTIAL, AI_SINGLE_ENDED
Ranges:BIP10VOLTS, BIP5VOLTS, BIP2VOLTS, BIP1VOLTS
Scan options:SO_DEFAULTIO, SO_BLOCKIO, SO_CONTINUOUS, SO_EXTCLOCK, SO_EXTTRIGGER
Scan rates:0.01863 to 250,000 S/s
Trigger types:TRIG_HIGH, TRIG_LOW, TRIG_POS_EDGE, TRIG_NEG_EDGE
Functions:ulAIn(), ulAInScan(), ulAInLoadQueue(), ulAInScanStatus(), ulAInScanStop(), ulAInScanWait(), ulAInSetTrigger()
Configuration:none

Analog Output

Channels:0 to 1
Ranges:BIP10VOLTS
Functions:ulAOut()
Configuration:none

Digital I/O

Ports:AUXPORT
Bits:0 to 7
Functions:ulDIn(), ulDOut(), ulDBitIn(), ulDBitOut(), ulDConfigPort(), ulDConfigBit(), ulDIOGetConfig()
Configuration:Config Item (Get): DIO_CFG_PORT_DIRECTION_MASK

Counter

Counter argument:0
Functions:ulCIn(), ulCRead(), ulCLoad(), ulCClear()
Configuration:none

Events

Event types:DE_ON_DATA_AVAILABLE, DE_ON_END_OF_INPUT_SCAN, DE_ON_INPUT_SCAN_ERROR
Functions:ulEnableEvent(), ulDisableEvent()

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

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
0x000-0x001Network options:
   Bit 0: 0 = DHCP enabled, 1 = DHCP disabled
   Bit 1: 0 = Auto IP enabled, 1 = Auto IP disabled
   Bit 2-15: reserved
0x0000
0x002-0x005Default IPv4 address192.168.0.101
0x006-0x009Default IPv4 subnet mask255.255.255.0
0x00A-0x00DDefault IPv4 gateway address192.168.0.1
0x00E-0x00FReserved 
0x010-0x011Reserved 
0x012-0x015Connection code, 4 bytes0x00000000
0x016DOut connection mode. This determines the DOut value when the connection status changes.
   0 = no change
   1 = apply specified tristate / latch values
0
0x017DOut tristate mask for connection / disconnection (bits set to 0 are outputs, bits set to 1 are no change).0xFF
0x018Reserved 
0x019DOut latch value when host is connected.0x00
0x01ADOut latch value when host is disconnected.0x00
0x01BAOut channel 0 connection mode. This determines the AOut value when the connection status changes.
   0 = no change
   1 = apply specified values to channel 0
0
0x01C-0x01DAOut channel 0 value when host is connected.32768
0x01E-0x01FAOut channel 0 value when host is disconnected.32768
0x020AOut channel 1 connection mode. This determines the AOut value when the connection status changes.
   0 = no change
   1 = apply specified values to channel 1
0
0x021-0x022AOut channel 1 value when host is connected.32768
0x023-0x024AOut channel 1 value when host is disconnected.32768
0x025-0x1FFReserved 

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.