Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Raw Number instead of Volts

I have a PCI-6143 and I would like to get the raw value (0-65535) instead of the value in volts. How can I set up my task to do this?
0 Kudos
Message 1 of 3
(3,594 Views)
Hello cju,
You might want to take a look at the following functions:
DAQmxReadBinaryI16()
DAQmxReadBinaryI32()
DAQmxReadBinaryU16()
DAQmxReadBinaryU32()
I believe these functions will do what you are looking for.
-Alan A.
 
0 Kudos
Message 2 of 3
(3,593 Views)
cju:

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. The functions Alan motioned (DAQmxReadBinary*) do unscaled reads in the C API; in .NET, you can find equivalent 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 the C API, the function DAQmxReadRaw is used to perform raw reads; 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, NI-DAQmx C Reference 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 3 of 3
(3,583 Views)