Back to Aurora Vision Library website

You are here: Start » Function Reference » Hardware Support » National Instruments » DAQmx_CreateAnalogChannel

DAQmx_CreateAnalogChannel


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Creates a task and channel to measure or generate analog values.

Syntax

void avl::DAQmx_CreateAnalogChannel
(
	DAQmx_CreateAnalogChannelState& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	atl::Optional<const atl::String&> inChannel,
	avl::ElectricalMode::Type inCVType,
	avl::DirectionMode::Type inIOType,
	avl::DAQmxTerminalConfig::Type inTerminalConfig,
	float inMinValue,
	float inMaxValue,
	avl::DAQmxShuntResistorLoc::Type inShuntResistorLocation,
	atl::Optional<float> inExtShuntResistorValue,
	avl::DAQmxTaskID& outTaskID
)

Parameters

Name Type Default Description
Input will be modified ioState DAQmx_CreateAnalogChannelState& Object used to maintain state of the function.
Input value inDeviceID Optional<const String&> NIL Device alias, product name or serial number
Input value inChannel Optional<const String&> NIL Name of the physical channel used to create a virtual channel
Input value inCVType ElectricalMode::Type Electrical mode
Input value inIOType DirectionMode::Type Direction of channel
Input value inTerminalConfig DAQmxTerminalConfig::Type Input terminal configuration
Input value inMinValue float Minimum value, that is expected to measure or generate
Input value inMaxValue float 5.0f Maximum value, that is expected to measure or generate
Input value inShuntResistorLocation DAQmxShuntResistorLoc::Type Location of the shunt resistor
Input value inExtShuntResistorValue Optional<float> NIL Value of the shunt resistor
Output value 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

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

See Also