04-09-2010 02:36 PM
I would like to take the output of "Scan From String and feed it into a Bundle by Name. There is no pre-existing bundle so I wonder if I can use a Cluster constant for the Input cluster. If so how is the cluster constant defined.
My goal is to read strings from ini file sections, split out names and limits and put them into a cluster or array of clusters that can be stored as TestStand Locals or FileGlobals.
Thanx,
jvh
Solved! Go to Solution.
04-09-2010 02:54 PM
You can use a cluster constant to build the cluster but I urge you to make a Type Definition of the cluster to make you life easier.
This Nugget talks about Type Definitions.
This Nugget shows a trick for creating the type def easier.
Ben
04-09-2010 03:21 PM - edited 04-09-2010 03:22 PM
jvh75021 wrote:There is no pre-existing bundle so I wonder if I can use a Cluster constant for the Input cluster. If so how is the cluster constant defined.
This is a very common thing to do upon initialization - bundle things up into a cluster and carry it around to use throughout the program, in sub-vi's, etc. I'm glad you're not just throwing them all into locals or globals!
Yep, you'll just use a Cluster constant into the Bundle the first time it's bundled. To make that initial cluster constant, take your known output cluster just create > constant. So to answer your question, the cluster constant is defined by the known output.
However, if this cluster ever changes during development, and it will , you'll be changing every single cluster inside sub-vi's and that initial constant... or.. you'll follow Ben's advise and make a TypeDef!