ishieh
18 years ago
Hi all,What I am trying to do is be
able to read the name (label) and type of a variable. Here is a simple
example of what I want to do:1. Main VI calls a sub VI, data is passed to the sub VI in a cluster.2. Cluster contains four elements: a boolean, a string, a double, and an integer.3.
The sub VI should take this input cluster, read the name of each
element, concatenate each of those into one string (tab delimited).4.
The sub VI should also read the type of each element, and be able to
use this type to decide on a format string to use when converting the
element's value to a string.I can do all of the programming
above except for being able to read the type and name of any given
element of the input cluster. I know you can use a property node to
get these data if you were trying to do so for a front panel control,
but can you do this for a variable that has been passed into a sub VI
using a cluster? Also, my example is simple; I have about 50 different
inputs I want to perform this operation on. Thanks in advance for any
help you can give to me.-Ian
able to read the name (label) and type of a variable. Here is a simple
example of what I want to do:1. Main VI calls a sub VI, data is passed to the sub VI in a cluster.2. Cluster contains four elements: a boolean, a string, a double, and an integer.3.
The sub VI should take this input cluster, read the name of each
element, concatenate each of those into one string (tab delimited).4.
The sub VI should also read the type of each element, and be able to
use this type to decide on a format string to use when converting the
element's value to a string.I can do all of the programming
above except for being able to read the type and name of any given
element of the input cluster. I know you can use a property node to
get these data if you were trying to do so for a front panel control,
but can you do this for a variable that has been passed into a sub VI
using a cluster? Also, my example is simple; I have about 50 different
inputs I want to perform this operation on. Thanks in advance for any
help you can give to me.-Ian