Table Of Contents

Reading and Writing Data with NI-DAQmx Simulated Devices

Last Modified: October 17, 2018

NI-DAQmx simulated devices will show up in NI MAX as the appropriate icon ( For example, USB, PXI, PCIe, cDAQ Chassis, C Series Module), but will be colored yellow to indicate that the device is simulated. The naming convention for these devices is the same as for real hardware. Data written to an NI-DAQmx simulated device is scaled as if the device were real.

Reading Data

All NI-DAQmx simulated devices return analog input data in the form of a full-scale sine wave with 3% of full-scale noise.

When multiple channels are in the task, the data for each channel is offset 5° in time.

Setting the minimum and maximum signal input range determines the amplitude of the simulated signal. If you decrease the minimum and maximum values the amplitude of the simulated sine wave decreases. However, on real hardware , your analog input signal clips at the maximum and minimum signal input range that is set.

For simulated AO data, set the minimum and maximum values for Signal Output Range. The range cannot exceed the specifications for the real hardware. Set the Test Signal Type to Sine Wave, Square Wave, or Triangle Wave. If you are using a Test Panel, there are options for DC and Sinewave generation.

Digital data is always returned as if each eight-bit port were a binary counter for both digital input and output.

Counter data is always returned as 0.

Writing Data

Data written to an NI-DAQmx simulated device is scaled as if the device were real. So, any custom scales implemented in a task would affect the simulated data appropriately.


Recently Viewed Topics