All device names are automatically generated by __prod_name when the DigitalIO board is detected. They are used to identify the TTL I/O board throughout
the system.
The name for add-on Digital I/O devices is constructed as follows:
DeviceType_BoardNumber
Example: A Measurement Computing DIO24 device assigned to board 3 will be PCI-DIO24_3.
TTL boards for
Hardware Systems
are constructed using the acquisition system name instead of the device type:
AcquisitionSystemName_BoardNumber
See the
Hardware Systems
section for more information on the TTL IO capabilities of your system.
The NetCom command
-GetDigitalIOBoardList
will return a complete list of the device names installed on your system.
Most TTL devices divide their total number of I/O bits into groups called ports. These groups allow you to section of the bits of the card for separate uses.
One typical use is dividing the board into separate input and output ports, allowing bi-directional TTL with only a single TTL device. Values for ports can
also be read and written independently of other ports on the same device.
The number of ports available is dependent on the TTL I/O device you are using. For a list of the TTL capabilities of your device, see the
Hardware Systems
section of this guide.
-DigitalIOTtlPulse <Device Name> <Port Number> <Bit Number> <Pulse Type> | ||||||||
Performs a TTL pulse on the specified bit on the specified port. The length of the pulse is set by the -
SetDigitalIOPulseDuration
command.
Example : -DigitalIOTtlPulse AcqSystem1_0 0 6 High Default: __prod_name defaults to pulse type high for TTL pulses. Usage: This command can be used at any time. |
||||||||
Arguments | ||||||||
|
-GetDigitalIOBoardList | ||||
Returns a list of all DigitalIO boards on this system.
Example : -GetDigitalIOBoardList Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
NetCom Reply | ||||
|
-GetDigitalIOEventsEnabled <Device Name> <Port Number> | ||||
Returns the current state of event generation for a TTL port.
Example : -GetDigitalIOEventsEnabled AcqSystem1_2 3 Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
Arguments | ||||
|
||||
NetCom Reply | ||||
|
-GetDigitalIOPortString <Device Name> <Port Number> | ||||
Returns the current state of each of the bits for the specified port number on the specified device in a single string. This string is in binary numerical format with bit 0 being the rightmost character in the string.
Example : -GetDigitalIOPortString AcqSystem1_1 3 Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
Arguments | ||||
|
||||
NetCom Reply | ||||
|
-GetDigitalIOPortValue <Device Name> <Port Number> | ||||
Returns the decimal equivalent of the TTL value for the port number of the specified device.
Example : -GetDigitalIOPortValue PCI-DIO24_0 3 Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
Arguments | ||||
|
||||
NetCom Reply | ||||
|
-GetDigitalIOPulseDuration <Device Name> <Port Number> | ||||
Retrieves the current pulse duration for the specified TTL port.
Example : -GetDigitalIOPulseDuration PCI-DIO24_0 3 Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
Arguments | ||||
|
||||
NetCom Reply | ||||
|
-GetDigitalIOUseStrobeBit <Device Name> <port number> | ||||
Gets the current strobe bit enabled state for the port on the specified device.
Example : -GetDigitalIOUseStrobeBit PCI-DIO24_0 0 Default: N/A Usage: This command should only be used from a NetCom client application after a connection to a server has been established. |
||||
Arguments | ||||
|
||||
NetCom Reply | ||||
|
-SetDigitalIOBit <Device Name> <Port Number> <Bit Number> <State> | ||||||||
Sets the state for the specified bit number.
Example : -SetDigitalIOBit PCI-DIO24_0 0 7 On Default: N\A Usage: This command can be used at any time. |
||||||||
Arguments | ||||||||
|
-SetDigitalIOBitsPerPort <Device Name> <Port Bit Count> | ||||
Sets the size of each port on the device to the specified bit count.
NOTE : Depending on your particular hardware, the options for setting port sizes may vary. See documentation for the hardware system for more details. Example : -SetDigitalIOBits AcqSystem1 16 Default: N\A Usage: This command can be used at any time. |
||||
Arguments | ||||
|
-SetDigitalIOEventsEnabled <Device Name> <Port Number> <Enabled> | ||||||
Set events enabled for the specified port. An event record will be generated anytime there is a change in value for that port
Example : -SetDigitalIOEventsEnabled AcqSystem1_0 1 true Default: __prod_name defaults event enabled to be true; meaning events are generated for every TTL port value change. Usage: This command can be used at any time. |
||||||
Arguments | ||||||
|
-SetDigitalIOInputScanDelay <Device Name> <Delay> | ||||
Sets the delay in between scans when reading the input port(s). This command is not available for all Digital IO devices. Digital IO devices that are part of Hardware Systems are scanned at the sample frequency of the Hardware System.
Example : -SetDigitalIOInputScanDelay PCI-DIO24_0 5 Default: __prod_name defaults the input delay to a value of 1 ms for all non-Hardware System Digital IO devices. Usage: This command can be used at any time. |
||||
Arguments | ||||
|
- SetDigitalIOPortDirection <Device Name> <Port Number> <Direction> | ||||||
Sets the direction for the specified port number. The number of ports is determined by the hardware device. Port direction is independent for each port of a device. The direction of a port determines what commands may be used on that port, as many of the commands are direction specific. Not all ports are bidirectional, see the
Hardware Systems
section of this guide for more information on your specific hardware. This command will fail if the port direction cannot be changed because it is use for some other purpose in __prod_name (e.g.
Spike TTL Response
).
NOTE : Depending on your particular TTL hardware, changing the port direction to input may clear the values currently on other output ports on the same device. This behavior is not controlled by __prod_name. To avoid unwanted value clearing, it is best to set ports to the proper direction before beginning any experiments. Example : -SetDigitalIOPortDirection PCI-DIO24_0 1 Input Default: __prod_name defaults the port direction to Input for all ports once an interface has been created. Usage: This command can be used at any time. |
||||||
Arguments | ||||||
|
-SetDigitalIOPortString <Device Name> <Port Number> <Value> | ||||||||||||||||||
Sets the state for each of the bits for the specified port number on the specified device in a single string. This string is in binary numerical format with bit 0 being the rightmost character in the string.
Example : -SetDigitalIOPortString PCI-DIO24_0 4 "0100XXXX" Default: N\A Usage: This command can be used at any time. |
||||||||||||||||||
Arguments | ||||||||||||||||||
|
-SetDigitalIOPortValue <Device Name> <Port Number> <Value> | ||||||
Sets the value for the specified port number. This command is most often used to set the state of multiple bits at the same time.
Example : -SetDigitalIOPortValue AcqSystem1_0 4 16 Default: N\A Usage: This command can be used at any time. |
||||||
Arguments | ||||||
|
- SetDigitalIOPulseDuration <Device Name> <Port Number> <Duration> | ||||||
Sets the duration of a TTL pulse generated by the
-DigitalIOTTLPulse
command.
Example : -SetDigitalIOPulseDuration PCI-DIO24_0 0 200 Default: __prod_name defaults the pulse duration to a value of 15 m s. Usage: This command can be used at any time. |
||||||
Arguments | ||||||
|
- SetDigitalIOUseStrobeBit <Device Name> <Port Number> <Value> | ||||||||||||||||||||||||||||||||||||||||||||||
Sets the port on the specified device to require that the most significant bit (i.e. bit 7 of an 8 bit port, bit 15 of a 16 bit port, etc) be strobed from low to high in order to generate a TTL event. This means that __prod_name will only generate TTL input events when the most significant bit of the TTL input port is strobed.
Example : -SetDigitalIOUseStrobeBit PCI-DIO24_0 true Default: Strobe bit usage is normally False. Usage: This command can be used at any time. |
||||||||||||||||||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||||||||||||||||||
|