LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Look up table front panel

Solved!
Go to solution

Hi

I have a lookup table that uses the interpolate method to get additional results.  It is possible to put in some way the values in the front panel to feed this lookup table.  I would be for the user to enter the values at the front panel, and not at the lookup properties in the block diagram.

 

thanks

0 Kudos
Message 1 of 12
(3,631 Views)

A control on the front panel?

0 Kudos
Message 2 of 12
(3,612 Views)

Sorry, what kind of control are you suggesting?

thanks

0 Kudos
Message 3 of 12
(3,589 Views)

A table control or a multicolumn listbox.

0 Kudos
Message 4 of 12
(3,579 Views)

Thanks.   But I am not sure how can I wire up the table control or the multicolumn to the lookup table.  If wired, how do you set up the table so that the lool up table gets feed by the data of the table control .  Thanks

0 Kudos
Message 5 of 12
(3,555 Views)

@fiatm wrote:

It is possible to put in some way the values in the front panel to feed this lookup table.  I would be for the user to enter the values at the front panel, and not at the lookup properties in the block diagram.


It would be so much easier for us if you show us some code!

 

Presumably, you currently have some "lookup properties" (and I honestly have absolutely no idea what that is! 🐵 so whatever datatype that is, it can be converted to a front control. Sometimes, a simple 2 column 2D numeric array might be sufficient.

 

So please show us a simplified version of your program so we see what you are talking about. Thanks! 😄

0 Kudos
Message 6 of 12
(3,552 Views)

Hi.  I have a look-up table in a control and simulation loop.  when I right-click on the lookup table properties, in which I have attached a picture of it.  I have to type data for x and y values.  The lookup table returns the y value.  What I want is is to see if it is possible to use some kind of function or array , in which the user would not have to enter the set of x and values directly into the lookup table properties in the block diagram, but he oould type them in the front panel. 

Thank you

0 Kudos
Message 7 of 12
(3,516 Views)

That's an ordinary 2D-table to me, first column being X, 2nd Y. You can just add number into the program as it runs, but in order to remember them until next time it's easiest to save them to a spreadsheet file which you'll read at the start of the program.

 

If you're using an event structure it's perfect to include a save file in LookupTable Value change event.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 12
(3,506 Views)

From that dialog, change the parameter source to terminal. Then create a control from the terminal on the block diagram. Enter the values and make them the control's default value.

0 Kudos
Message 9 of 12
(3,485 Views)

Thanks.  I did that.  When I change it to terminal, an input called method appears.  But when I create the control inside it appears the method used "interpolate", picture attached.  I am not sure where to enter the values or mabue I am doing something wrong.  Thank you

0 Kudos
Message 10 of 12
(3,454 Views)