You are here: Start » Hardware Support » National Instruments » DAQmx_CreateDigitalPort
DAQmx_CreateDigitalPort
Header: | ThirdPartySdk.h |
---|---|
Namespace: | avl |
Creates a task and channel to measure or generate digital values.
Syntax
void avl::DAQmx_CreateDigitalPort ( DAQmx_CreateDigitalPortState& ioState, atl::Optional<const atl::String&> inDeviceID, const atl::Optional<const atl::String&> inPort, avl::DirectionMode::Type inIOType, atl::Optional<int> inFirstLine, atl::Optional<int> inLastLine, avl::DAQmxTaskID& outTaskID )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | DAQmx_CreateDigitalPortState& | Object used to maintain state of the function. | |||
inDeviceID | Optional<const String&> | NIL | Device alias, product name or serial number | ||
inPort | const Optional<const String&> | NIL | Name of a physical port used to create a virtual channel | ||
inIOType | DirectionMode::Type | Direction of a channel | |||
inFirstLine | Optional<int> | 0 - | NIL | First line to measure or generate | |
inLastLine | Optional<int> | 0 - | NIL | Last line to measure or generate | |
outTaskID | DAQmxTaskID& | ID of a created task |
Remarks
Device driver software
This filter is intended to cooperate with digital I/O cards using its vendor driver software. To be able to connect to a card it is required to install NI-DAQmx driver software. Currently Aurora Vision Studio requires NI-DAQmx version 23.3.
NI-DAQmx driver software can be downloaded from the following website: https://www.ni.com/pl-pl/support/downloads/drivers/download.ni-daq-mx.html#480879.
Device identification
When there is only one device connected to computer, inDeviceID field can be set to Auto. In this situation first available device will be found and connected.
inDeviceID can be used to pick one of multiple devices connected to computer. Set this field to Device alias (for example "Dev1"), product name or serial number. This parameters should be available in Measurement & Automation Explorer.
Multithreaded environment
See Also
- DAQmx_CreateAnalogChannel – Creates a task and channel to measure or generate analog values.
- DAQmx_CreatePulseChannelFreq – Creates a task and channel to generate pulse.
- DAQmx_CreateCountEdgesChannel – Creates a task and channel to count number of edges.