LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User-define index values of a table?

Hello everyone,  I am working with labview and enjoying every minute of it!  I am a beginner and trying to do as much learning on my own without asking to many questions,  but I have run across something I havent found an answer for.
 
I have a table which plots a value in the active cell  with an X and a Y input that is defined by my application.  I would like to be able to custom define the index "scales" to work more appropriately with my data.
 
For example,  the top left cell of the table,  the coordinates are 0, 0.  Is it possible to modify the coordinates so this cell could become 1, 2? (or any other set of value?)  What I really would like to accomplish is to have these index "scales" defined the same as the value in the column/row headers.  I know that I will probably have to define these seperately (using the same source),  but I have not found a property node for index scales.
 
BTW,  I know that I "can" change the upper cell to a coordinate of say, 1, 2,  but I would like to custom assign all coordinates of the table with my own scales.  I have thought about feeding my X, Y input into a lookup table (in the case of my attached vi,  lookup to coordinates 0-15),  but this would seem to cut down on the quality of my plot and would be quite a runaround.
 
The "scales" that I need to work with are not linear,  ascending values, but not linear. 
 
I have attached a VI to better help explain my question.  The headers in this VI are not exactly what I am going to be using,  but should provide the indication of what Im after.  What I hope I can accomplish is to feed the column/row header data simply in as the table XY indexes.
 
Attached VI for 7.1
I would greatly appreciate any tips,  thanks in advance!
0 Kudos
Message 1 of 6
(3,032 Views)

Hi deviousKA,

      Re: "custom define the index 'scales'" - if you mean (as it sounds) setting some Table property (via a property node?) to obtain some alternate coordinate-mappings... I don't think this is possible  - however, your search for a "quality"-"plot"-solution is very reasonable.

You might create a  sub-vi for updating the table, passing it a table-reference, a string, and an (X',Y') pair.   "Feed" the sub-VI your non-linear (X',Y') coordinates, it can update the table via the table-reference, its "footprint" on the main diagram is small, and any ugly code (mapping X'Y' to XY) only appears (once) in the sub-VI.Smiley Happy

Cheers!

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 6
(3,013 Views)

"For example,  the top left cell of the table,  the coordinates are 0, 0.  Is it possible to modify the coordinates so this cell could become 1, 2? (or any other set of value?)  "

It sounds like you are after "IndexVals" see below.

 

Ben

Message Edited by Ben on 01-29-2006 08:19 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 6
(3,011 Views)

Hi Ben,

      I think an example of what devious wants would be to write to the first three values in, say, the second column, using (X,Y) coordinates of (2,2), (2,4), (2,6) (these coordinates get "mapped" to absolute cells (1,0), (1,1), (1,2).)

devious, is this correct?
 
cheers.
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 4 of 6
(2,998 Views)

Thank you both for the replies,

With the subvi reference method, would this effect my table interpolation?  It doesnt seem that it would,  but I am going to need some more reading before I set that up

Ben,  I would like to test what you have posted,  but I am a little unclear on that cluster setup you have there.  Would it be possible to post the VI?

If I could just determine the range for scales that would be easy,  but they are not linear.  From what I gather,  I can reassign the top left cell,  and I can determine a maximum of the range.  It seems this does not offer what I need and I might have to use something like a sub vi reference, as previously mentioned.

 

0 Kudos
Message 5 of 6
(2,996 Views)

Dynamik,  that is precisely what I am after.

The actual range of the coordinates that I will be using are 2-100 for the X axis and something like 600-6000 for the Y axis.

Where as the top left cell coordinates would be  2, 600  and the lower right cell 100, 6000.  The "scale" or the range in between the minimum and maximum values has a slightly changing slope (non linear).  The scales are broken up into 16 values between the minimum and maximum, these are the values I would like as coordinates.

Im fairly sure I can handle scale coordinates like this with something like an XY graph,  but I would really like to use a table format.

0 Kudos
Message 6 of 6
(2,994 Views)