01-30-2007 05:24 PM
01-30-2007 07:12 PM
@zorro349 wrote:
I'm writing a program with a large amount of data, around 900 variables.
What's a variable??? 😉
How about using a simple 1D array with 900 elements?
01-30-2007 07:51 PM
01-31-2007 06:50 AM
01-31-2007 07:34 AM
01-31-2007 10:11 AM
Excellent posts Matt!
I have been playing with the idea of devloping a LV Nugget to talk about this.
Ben
01-31-2007 11:04 AM
01-31-2007 11:56 AM - edited 01-31-2007 11:56 AM
My suggestion, similar to Altenbach and Matt above, is to use a Functional Global Variable (FGV) and use a 1D array of 900 values to store the data in the FGV. You can retrieve individual data items from the FGV by passing in the index of the desired variable and the FGV returns the value from the array. Instead of passing in an index you could also use a TypeDef'd Enum with all of your variables as element of the Enum, which will allow you to place the Enum constant on the diagram and make selecting variables, as well as reading the diagram, simpler.
My group is developing a LabVIEW component/example code with this functionality that we plan to publish on DevZone in a month or two.
The attached RTF file shows the core piece of this implementation. This VI off course is non-reentrant. The Init case could be changed to allocate the internal 1D array as part of this VI rather than passing it from another VI.
Message Edited by Christian L on 01-31-2007 12:00 PM
01-31-2007 12:00 PM
HI Christian,
Could you check with Roy F about sharing that with the Champions?
We could offer our feedback before you post it.
Ben
01-31-2007 12:05 PM
@Ben wrote:
HI Christian,
Could you check with Roy F about sharing that with the Champions?
We could offer our feedback before you post it.
Ben
Will do. Do the Champions have their own discussion group or how do you communicate?