Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

setting gain for thermocouples

I'm writing a temperature logger using thermocouples. Is there any way I can increase the gain? I understand when I create the AIChannel via:

Task.AIChannels.CreateThermocouple()

method I pass it in the max and min temperatures expected. If I understand this correctly, the max and min are then used to set the gain in the underlying code. Is there anyway I can see what the gain is set too after I create the AIChannel? I get an error when I try and use AIChannel.Gain to get the gain.

The reason I ask is because I think I'm right at the edge of my 12 bit resolution card (DAQ 6062E) and I want to make sure the gain is as high as possible. The temp. range I'm measuring is between 20 and 30 degC.

Thanks,
Phil
0 Kudos
Message 1 of 3
(3,231 Views)
Hello Phil,

I believe that the reason you are getting an error when using the AIChannel.Gain property is because that property applies to SCXI modules. Instead of using that property, try using the AIChannel.RangeLow and AIChannel.RangeHigh properties. Based on these, you will see the actual range the DAQ board is using and can determine the gain from that.

Take care,
E.Lee
Eric
DE For Life!
0 Kudos
Message 2 of 3
(3,217 Views)
Thanks for your response.

I checked the Range and it was set for -0.05 to 0.05. Using the RangeHigh and RangeLow methods, I changed the gain to 0.0 to 10 and the resolution increased dramatically.

Again, thank you for your response.

phil
0 Kudos
Message 3 of 3
(3,209 Views)