From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring temperature and acceleration simultaneously

Solved!
Go to solution

Hi,

 

I am having problems getting a correct and stable temperature measurement, I think the acceleration measurements are correct. I am using a daq PCI 61110 and the temp sensor is a type-k thermocouple I tried switching the thermocouple with a probe but the result did not change and I have checked the examples to see if I have gotten something wrong in my code but I can't seem to find it. Please could somebody help me and the vi is attached below.

0 Kudos
Message 1 of 8
(4,302 Views)
Solution
Accepted by topic author Bnzi

Hi Bnzi,

 

I've looked at your code and it seems fine to me, so I would suggest try out the simple tests to see if it's working.

Try ensuring you can see your card in Measurement&Automation (MAX).

  • Open LabVIEW, got to 'Help' tab > Find Examples
  • Look in the middle field and open 'Hardware Input & Output >> DAQmx >>> Analog Measurements >>>> Temperature'
  • Then choose a suitable example (e.g Acq Thermocouple Sample) and try it with your hardware

 

If this works then it should narrow down whether the problem is the code, drivers, or your hardware.

 

Hope this helped!

 

Regards,

 

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
Message 2 of 8
(4,295 Views)

I don't know your DAQ card, but I assume you are measuring in the voltage range for the accelerometer and them try to measure in the µV  from the TC.

If you have channel crosstalk, your weak signal from the TC gets buried in noise. 

Try to have some input channels connected to GND inbetween, maybe that helps.

 

Wait, I took a look into the spec (BTW 6111 or 6110??) your minimum resolution is 98µV, that would equal around 2K resolution, accuracy is 353µV (around 8K with type K TC ... not quite the right card for a thermocouple reading!!)  Well and you don't have a CJ compensation....in other words: You don't have the right DAQ for thermocouple readings.

 

NI has a USB thermocouple device that woul fit your needs and is not too costly... or use a B5 module or other thermocouple signal conditioner with a 10V output.

 

Depending on your needs maybe a small NTC with a resistor as an voltage divider can be used to measure temperatur ...

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 8
(4,283 Views)

Hi John

 

thank you for the advice I will take a look at the example and see what's wrong.

 

Bnzi

0 Kudos
Message 4 of 8
(4,268 Views)

Hi Henrik

 

Thank you for your input and you have brought interesting info to my attention I appreciate your help

 

Bnzi

0 Kudos
Message 5 of 8
(4,263 Views)

Hi Henrik

 

Since the daq card I am using does not have cold junction compensation would using a AD8495 thermocouple amplifier help?

 

Bnzi

0 Kudos
Message 6 of 8
(4,226 Views)

Yes, looks like a possible solution. You get the signal amplified and CJ compensated. 

I would try to buy a ready converter like this one

(Because it is cheaper for my boss to buy it than having me to DIY)

 

Are you forced to use a TC as a temperature sensor? 

 

BTW You should correct your solution marking 😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 8
(4,217 Views)

Lol, yes I'm sort of forced to because the expense for my project should  be kept to a minimum. I got to make it work with what I got.

0 Kudos
Message 8 of 8
(4,204 Views)