Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the binary data instead of double from DAQ devices with DAQmx?

For example, I want to get the binay sample data from a 4472 channel instead of the double value of the sample. Is there a way to do it?  Thanks!
0 Kudos
Message 1 of 5
(3,708 Views)
Yeah,  how do you get the full binary readout for an analog channel?
0 Kudos
Message 2 of 5
(3,693 Views)
Use the AnalogUnscaledReader class instead of the AnalogSingleChannerlReader class or AnalogMultiChannelReader class.
0 Kudos
Message 3 of 5
(3,690 Views)
Ahh, thanks much!
0 Kudos
Message 4 of 5
(3,682 Views)
NI-DAQmx has both "raw" and "unscaled" analog reads.

Unscaled reads return data in the native format of the device, read directly from the device or buffer without any scaling. In .NET, you can find unscaled read methods on the AnalogUnscaledReader class.

Raw reads return data in both the native format and organization of the device, read directly from the device or buffer without either scaling or reordering. In .NET, the raw read methods are located on the DaqStream class.

You can find out more information in the NI-DAQmx .NET Framework 1.1. Help or the NI-DAQmx Help, all of which can be accessed from the Start Menu under All Programs >> National Instruments >> NI-DAQ.

-- Chris
0 Kudos
Message 5 of 5
(3,662 Views)