Hi
I have an labView6i program roughly consisting of 3 components :
'main program' : calls the 'read subvi' every program cycle, and displays
the the output.
'read subvi' : read a number of ADC channels, convert the ADC voltages to
physical values, and return them as an cluster/array.
'save subvi' : save current readback values and names of ADC channel to a
file.
Every physical measurable quantity has a name, conversion formula, and an
ADC channel. So I want all these informations in the 'read subvi' (as an
constant) and only once (so it is easy to change).
The 'save subvi' needs the names from the 'read subvi' so I have changes
the 'read subvi' to output both values and names(two different
clusters/arrays).
1:
If I output the va
lues from the 'read subvi' as an named cluster, they are
farely easy to distribute to difrent instruments(placed in different tabs)
in the 'main program' using 'unbundle by name'. But in that way every
channel has two names... the label in the cluster, and the string conctant
used e.g. by the 'save subvi' .
2:
If I output the values an an array there i a big risk that an instrument in
the 'main program' vill show the wrong channel (if you change the order in
the 'read subvi' and forget to do the same thing in the 'main program').
Is it posible to convert an string constant to an label/name(later to be
used to 'unbundle by name') on runtime ? or is there an other brilliant
solution to my problem?
/ Peter