From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Thermocouple Channel influenced by other Voltage Channel

Solved!
Go to solution

Hello,

I am using the BNC-2120 and a K-type Thermocouple (TC). On the software side I use C/C++ and DAQmx to acquire the temperature and some analog input signals (AI). While I was setting up the input channels, I noticed some odd behaviour.

If I create the TC-channel before the AI-channels, everything seems to be fine as the TC shows a reasonable temperature trend. But if I do it the other way round, the last AI-channel, that I created right before the TC-channel, is influencing my temperature measurement. That means, if I record some voltage increase on the AI-channel, my temperature will go up significantly.

 

Can someone explain to me why this is happening?

 

PS: All channels are part of the same task.

0 Kudos
Message 1 of 4
(3,253 Views)
Solution
Accepted by topic author CaswellBerry

I have experienced similar issues in the past, though not with this card. The problem seems to be a 'carry over' of charge in the internal multiplexer/sample & hold when changing from a relatively high signal level to the low signal level from a thermocouple. I got around it by reading the thermocouple signals twice and discarding the first reading but I don't know if it is possible to put the same channel twice in the same scan. Alternatively, try increasing the scan interval so the measure value has longer to settle out to the new value.

Message 2 of 4
(3,190 Views)

Thank you for your reply. I found a similar statement somewhere hidden in a manual. My workaround at the moment is to just declare it as the first channel I want to read. But for me this is somehow confusing as it seemed to be just a software related problem at first. I mean, why would exchanging two lines of code change something in the hardware...!?

0 Kudos
Message 3 of 4
(3,183 Views)

Hi all,

 

to bring more clarity to this. It sounds like this is some kind of carryover effect - a.k.a. gohsting. You can find an explaination here:

 

How Do I Eliminate Ghosting from My Measurements? - National Instruments
http://digital.ni.com/public.nsf/allkb/73CB0FB296814E2286256FFD00028DDF

 

When you change the order of the cannels, you most probaly also change the seen effect.

 

Hope it helps.

Heinz

0 Kudos
Message 4 of 4
(3,179 Views)