LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt with Look-up table in labview

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.

Download All
0 Kudos
Message 1 of 3
(144 Views)

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 3
(121 Views)

@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....

 

altenbach_1-1744137132819.png

 

 

0 Kudos
Message 3 of 3
(96 Views)