Start of trail ClocksAnalog InputsAnalog OutputsDigital InputsDigital OutputsEncoder InputsPWM OutputsOther InputsOther OutputsInterruptsWatchdogBoard-Specific OptionsPropertiesTargetsSee Also navigation bar

NI myDAQ

The National Instruments myDAQ is a USB-based data acquisition board. Please see National Instruments' website for the NI myDAQ data sheet. The Rapid Control Prototyping Toolkit driver name for this card is ni_mydaq .

Clocks

This card is part of the DAQmx API, and therefore the hardware clocks cannot be directly accessed. The clocks can only be set indirectly with the functions that utilize them such as the timebase VIs.

Analog Inputs

The NI myDAQ supports 2 analog inputs (channels 0 to 1) with 16-bit resolution.

The valid input ranges are ±10V and ±2.0V. To change from the default range of ±10V, set the analog input minimum and maximum for each channel in the tab of the HIL Initialize VI. All of the analog inputs must have the same input range for this card.

Analog Outputs

The NI myDAQ supports 2 analog outputs (channels 0 to 1) with 16-bit resolution.

The valid output ranges are ±10V and ±2V. To change from the default range of ±10V, set the analog output minimum and maximum for each channel in the tab of the HIL Initialize VI. All of the analog outputs must have the same output range for this card.

In order to have analog outputs set to a particular voltage when the block diagram is run or stopped, the analog outputs must be configured on the HIL Initialize VI's tab. Set the Initial analog outputs and Final analog outputs to the desired voltage values.

Digital I/O

The NI myDAQ supports 8 bidirectional digital I/O lines (lines 0 to 7).

A digital I/O line cannot be used as an input and output at the same time.

Since the digital I/O lines may be individually programmed as inputs or outputs, the direction of each digital channel should be configured on the HIL Initialize VI's tab.

Encoder Inputs

The NI myDAQ supports one quadrature encoder input with a 32-bit count value. Note that since this card uses its counter for both the encoder input and PWM output, you can only use a counter as either an encoder input or a PWM output channel.

In order to set the encoder counters to a particular count or to change the default quadrature when the block diagram is run, the encoder inputs must be configured on the HIL Initialize VI's tab. The NI myDAQ supports non-quadrature (count and direction), 1X quadrature, 2X quadrature and 4X quadrature. The NI myDAQ does not support encoder filtering.

PWM Outputs

The NI myDAQ card does not support PWM outputs.

Other Inputs

The NI myDAQ card does not support other inputs.

Other Outputs

The NI myDAQ card does not support other outputs.

Interrupts

The NI myDAQ card, or its driver, does not support any interrupt sources.

Watchdog

The NI myDAQ card does not support a watchdog timer.

Board-Specific Options

The NI myDAQ card does not support any board-specific options.

Properties

The NI myDAQ card does not support any properties.

Targets

Target

Supported

Comments

RCP Windows (64-bit) Target

Yes

Fully supported.

See Also

 

navigation bar