Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the polarity of my NiDAQ card with visual C++ ?

Hi,
 
I'm using VC++ to program a GUI to do data acquisition. I would like to change the polarity of my NIDAQ card through VC++, i.e., without using the measurement and automation software. I connot find anything about this on the internet. Could anyone please help me out?
 
Thank you,
bart.
 
 
0 Kudos
Message 1 of 2
(3,258 Views)
While some of the details may change depending upon which card you are using, essentially you will just need to adjust the range for your signal.

You can find the command and how to use it by using the NI-DAQmx C Reference Help (Start > All Programs > National Instruments > NI-DAQ)

You might like these functions:

int32 __CFUNC DAQmxSetAIRngLow/High(TaskHandle taskHandle, const char channel[], float64 data);

or

int32 __CFUNC DAQmxSetAIGain(TaskHandle taskHandle, const char channel[], float64 data);

Pick your favorite and go from there.

Regards,
0 Kudos
Message 2 of 2
(3,249 Views)