NIDAQ Device

Description

Interface to a National Instruments data acquisition (DAQ) device

Signature

iodevice/nidaq

Required Parameters

name

Example:Dev1

Device name.

Run /Applications/National Instruments/NI-DAQmx Base/lsdaq.app to detect available devices and determine their assigned names.

update_interval

Example:3ms

MWorks will poll the device for new input data every update_interval microseconds

analog_input_data_interval

Example:1ms

Interval between acquired samples on analog input channels (microseconds)

analog_output_data_interval

Example:1ms

Interval between generated samples on analog output channels (microseconds)

Optional Parameters

assume_multiplexed_adc

Default:YES

If YES, MWorks assumes that all analog input channels share a single analog-to-digital converter (ADC) and adjusts sample timestamps accordingly. If NO, MWorks assumes that each analog input channel has its own ADC and that samples for all channels are acquired simultaneously.

alt

Alternative device to use if this one fails to initialize (e.g. because the required hardware is not available). If #allowAltFailover is set to 0 or false, this parameter is ignored.