04-08-2025 11:31 AM - edited 04-08-2025 11:41 AM
I am trying to build a lookup table to convert resistance to temperatures. For some reason I am not able to get the translated values. Can someone please help me?
I want it to be a always running lookup tablw. I want to interpret while the VI is running in the while loop.
I am attaching the vi below.
04-08-2025 12:08 PM
Don't use a lookup table for this, as there is a formula that can be used to directly convert voltage to temperature.
Here's one tutorial on how to do it, there are plenty more out there.
04-08-2025 01:19 PM - edited 04-08-2025 01:34 PM
@Satvikpai wrote:
I am attaching the vi below.
Before anything else, you need to do a few basic tutorials, because your VI makes no sense at all. None of your loops can end, so the outer loop cannot complete and your LUT code executes only once. At least one of the inner loop spins millions of time per second, mostly repeating the same thing. This is completely constipated.
It makes no sense to do the lookup inside a VI unless the lookup values can be changed elsewhere.
You attached a non-functional subVI that does not even have any connectors assigned! The entire threshold-interpolate dance can be avoided if you replace the X and Y arrays with an array of xy points. What does the calibration data represent? We can't even tell what's x or y because the connectors are missing. Even if it would work, shouldn't the first call be init mode? (That also only needs to be done once and thus belongs before the loop.)
And no, you don't need any local variables! In this case, your x8y local will get read only once, and most likely way before the terminal is written in the inner loop.
See if this rough draft can give you some ideas....