LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Look up Table

Hi everyone.
 
I am trying to implement several look up tables.
I want to have analogue input values, such as (-0.33 0.47 1.67), and produce output values such as (1 0 0).
I was looking at the 1D LUTs, but they seem to work on indicies, which is not suitable in my case.
 
There will be quite a bit of repetion in my code, so if anyone has a simple way to impplement this it would be greatly appreciated.
 
Regards
 
Kevin
0 Kudos
Message 1 of 13
(4,082 Views)
Would the interpolate 1D array do the job ?



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 13
(4,067 Views)
Thanks for the reply.
 
I don't think this will work.
I need something that when it receives a certain value, outputs a value. The inputs and outputs are not related in any way.
0 Kudos
Message 3 of 13
(4,059 Views)
This is what I was meaning, is that what you need ??

  >>>


Message Edité par TiTou le 03-14-2006 03:25 PM

Message Edité par TiTou le 03-14-2006 03:26 PM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Download All
0 Kudos
Message 4 of 13
(4,059 Views)
If the inputs and outputs are not related in any way, I don't know how we can help you to create a suitable algorithm...
Can you be more specific? When the question is well written, the problem is already half solved.


LabVIEW, C'est LabVIEW

Message 5 of 13
(4,048 Views)
Kevin,

As JeanPierre said... it is not easy for us to give you good advice if we have so few informations about your apps...
for instance, could you post a part of your code ?

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 13
(4,047 Views)

Hello.

Sorry for the vagueness.

What I mean is that it is not case of a relationship between the input and the output, if you like, it is not linear, proportional etc.

It is a case of a certain value of input gives a certain value at the output.

I don't really have any code that I can show you to make this clearer.

Thanks guys

0 Kudos
Message 7 of 13
(4,037 Views)
OK... Based on the previous responses I still don't see why the Interpolate 1D Array function, potentially coupled with the Threshold function wouldn't work for you. I mean, you're doing a simple lookup, right? Based on your sample arrays what should the output be if the input is, say -1? Or 43.55? Or 0.01?
0 Kudos
Message 8 of 13
(4,031 Views)
Kevin,

Is this what you need ? Obtaining a certain corresponding value pre.-entered in the LUT...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 9 of 13
(4,025 Views)
Unfortunately, that VI won't work since you're trying to perform an equality test on a floating point and that's an exercise in futility. You will need to perform a "basically equal to" test - in other words is the value equal to another value within a certain range.
0 Kudos
Message 10 of 13
(4,022 Views)