LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you adjust the gain on an instrumentation amplifier on the PCI-MIO-16E-4

Hi,
I am reading a voltage from a photodetector.  I would like to amplify the voltage by using the instrumentation amplifier on the DAQ(PCI-MIO-16E-4).
I would like to know if there is a way to change the amplification on the DAQ in LabWindows/CVI.
For example: photodetector picks up a light at 100watts I would want to decrease the amplification. Then the photodector
picks up a light at 20watts. I would want to increase the amplifaction. So is there a way to program this in CVI.
Thank You
0 Kudos
Message 1 of 3
(3,271 Views)

You might be better off posting this question in the LabWindows/CVI forum (as this is the LabVIEW one).

In LabVIEW (traditional DAQ) you pass values for your expected maximum signals to the "AI Config.vi" function, and the DAQ device's amplifier will be set to a range just higher if available - it is probably much the same procedure in CVI (?).

If you don't know your expected signal size, you would have to start by specifying a very large signal range e.g. +/-10V, then take a measurement and then use the measured value (perhaps with say +20% safety margin) to set the range for a further measurement - this should ensure the best resolution.

Mark.

 

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

Hello milkb1,

To add to Mark's response, in DAQmx you set the gain of your amplifier by setting the minimum and maximum of your signal when you create your channel using DAQmxCreateAIVoltageChan.  If you need to change these settings after creating the channel, you can use DAQmxSetChanAttribute to set your maximum and minimum value.  One thing to be aware of is that you cannot change these values while your task is running, so you will need to stop the task, set the values, and restart the task. 

Remember that the NI-DAQmx C Reference Help File installed at Start >> Programs >> National Instruments >> NI-DAQ includes help on all NI-DAQmx functions and properties and is searchable. 

Hope this helps,
Laura
0 Kudos
Message 3 of 3
(3,246 Views)