Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set AI gain for PCI-6251

I have a problem with my application, I have my aplication in C++, with the old DAQ I use the DAQ_Op to read analog data, this function have the  GAIN attribute, for the ne DAQmx I'm using the DAQmxReadAnalogF64 but this doesn't have the GAIN attribute, how I can set GAIN for my reading??
0 Kudos
Message 1 of 3
(3,553 Views)

Hi Elenac!

There are some considerations you might have to do when you try to set the gain, for example, what's the gain supported by your card? or what kind of acquisition are you going to do? The easiest way to configure the gain is using the DAQmxSetChanAttribute function which is under Analog input channel calibration. Under the advanced tag appears gain, the prototipe for the function is:

DAQmxSetChanAttribute (myHandle, "channel1", DAQmx_AI_Gain, 1);

You have to set everything accordingly to your needs, also i strongly recommend to check the following post:

http://forums.ni.com/ni/board/message?board.id=250&message.id=1234&requireLogin=False

I hope this information can be helpful to you and you can solve your problem. 🙂

Have a nice day!

0 Kudos
Message 2 of 3
(3,539 Views)

Thank you so much for your help, I think this will help me...

I have an other question, in the old NIDAQ I was using  the function WFM_Scale,  in the new DAQmx, is there a function that work like this one??  convert an array of floating-point values that represents coltages into an array of binary values.

0 Kudos
Message 3 of 3
(3,536 Views)