04-15-2010 09:34 AM - edited 04-15-2010 09:36 AM
I am modifying some legacy code wherein all the subVIs just below the main sequence make extensive use of local variables, which was fine. The locals in each subVI are fairly unique. Now many of these subVI locals must change dynamically which I want to accomplish with a Property Loader step. I would like to put the Property Loader and associated steps in a subVI but then it wouldn't be accessing the locals in the calling context. Is there a way to have a subVI run in the current context? Or perhaps there is a mo better way to do this.
I looked at propagation but that seems to be only for individual variables or containers, etc.
Thanks,
jvh
04-15-2010 09:53 AM
Hi,
Thought the PropertyLoader step in the latest TestStand version has the ability to load a complete sequencefile, but I maybe wrong therefore putting one step at your top level would load all your data.
I wouldn't have thought putting in to your code module was a good idea as you would have to generate the code that is in the property loader step type.
Regards
Ray Farmer
04-15-2010 10:05 AM
Don't want to reload sequence files. Some variables change based on the frequency.
Sorry but I do not understand your second paragraph. But based on what I think it means I was not going to duplicate any Property Loader code. I would feed the subsequence a model number and it would determine the file name then call the Property Loader.
So my question still remains. Can a subsequence be run in this context instead of a sub context? Maybe seems weird but it is a concept used in scripting languages like Python and Tcl.