LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Look up x & y values in a table and output the corresponding number?

Silly question but did you fill in the table? Did you define the column and row headers?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 18
(1,538 Views)

 


@dirtpics wrote:

No, it isn't linear unfortunately.  I tried the VI from the post above, but can't get it to spit out anything.  It's fine until the interpolation function, then it only kicks out zero.  Any thoughts?

 


 

Works for me, I have entered the data you showed into the Table:

 

TableLookupFP.PNG

Message 12 of 18
(1,538 Views)

No, I didn't have the table completely filled in when I tried to get it to interpolate.  I had all the row and column headers in place but hadn't completed filling in the table yet.  That's likely my problem since you can get it to work.  I'll give it a try once I get the table completely populated.

 

Thanks.

0 Kudos
Message 13 of 18
(1,533 Views)

Hi,, I'm working on a similar action, just that I need to enter more data,I am a beginner,What do I have to do to keep this data in the vi?

0 Kudos
Message 14 of 18
(1,297 Views)

Edit -> Make current values default.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 15 of 18
(1,290 Views)

Thank you,
sorry
If I want to put this data in a pid, it generates oscillations even if a non-oscillating value is generated from the table.
Do not know why it happens?
previously the pid controller worked correctly without the table

0 Kudos
Message 16 of 18
(1,278 Views)

Hi Edgar,

 

how is the PID related to your table - and the topic of this thread?

And why don't you attach your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 18
(1,266 Views)

@EDGARGABRIELHERNANDEZ wrote:

Hi,, I'm working on a similar action, just that I need to enter more data,I am a beginner,What do I have to do to keep this data in the vi?


This thread is over eight years old and we really don't know what "this data" actually is.

 

If data should be constant and permanent, it is typically easiest to keep it in a diagram constant. Keeping it in a control would just be distracting and could cause issues if the user accidentally changes a value. Alternatively, it could be read from a calibration file at startup. 

0 Kudos
Message 18 of 18
(1,257 Views)