ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calibration/compensation polynomial - where to apply

Hi. I'm pretty new to LabView so please excuse my inexperience. I calibrated four thermocouples using a reference thermomister and created each a polynomial curve equation to compensate for the error/difference between the four thermocouples and the reference thermomister. How do I apply these polynomials to the program? Is there an article or example available? I tried searching but not getting a lot of luck.Maybe I'm using the wrong keywords?

 

Thank you in advance.

 

- Vivian

0 Kudos
Message 1 of 3
(3,462 Views)

typically I create an ini text file where all the calibration coefficients are stored.  In my program I read this ini file and place all the values in a cluster that gets passed around in the program to be used.  Another option would be to take the calibration cluster and put it into a global variable.  Now when you read a value from your thermocouple you pull the appropriate calibration values and calculate what the real value is.

 

As an example:

 

y = mx + b

 

m -> slope calibration value

b ->  offset calibration value

Cal example.png

You would have to do this calculation for every data point that you want to record.

 

Hopefully this helps some.

Message 2 of 3
(3,422 Views)

Thank you, JGar! I'll look into that. 

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