06-11-2016 02:40 PM
Hi people,
Is it possible to change the names of case structure selector label programatically like VISA Property Node does
in a control, for example ?
I have fixed labels, but in some situations, I want to change the labels of this case structure before the software arrives up
to this case structure.
Thank you very much
Henrique
Solved! Go to Solution.
06-11-2016 04:03 PM
You'd need to look at VI Scripting. This woud also require the VI to not be running at the time. You'd need to open it to edit with VI Scripting and change the label.
Really, what is it you're trying to do? This doesn't sound like something "easy" and there's likely a better way to do what you're trying to do.
06-11-2016 04:17 PM
Thank you....I guess I am difficulting the program without need
I will try to do another way 🙂
Henrique
06-11-2016 06:42 PM
Not sure what you intend, but you could consider a "mapping function" to achieve this flexibility. Suppose you have a Case Statement with 5 Cases -- let's call them Initialize, Take Sample,
Set Gain, Change Sign, Exit. Now suppose you have 7 states, State 1, State2, State3, State4, State5, State6, and State7. Write a function (possibly with controls) called "State to Case" that takes State1 .. State7 as inputs and outputs the appropriate Case Labels, Initialize, Take Sample, etc. All you need to do it change the mapping function and the States map to whatever your Map tells them to. If you make the Map function have a Case that controls it, you can have a Case (the Map switcher) do exactly the run-time mapping you describe.
[Sorry, I'm rambling here, but I hope you get the idea ...]
Bob Schor
06-11-2016 06:56 PM
Thank you again...to say the truth I love the flexibility of VISA Property node
that many times let us spoiled.
Henrique Bierwagen
06-12-2016 11:53 AM
Hi Henrique,
Is it possible to change the names of case structure selector label programatically like VISA Property Node does
In which way does a "VISA Property Node" change any selector labels "programatically"?
In which way is "the flexibility of VISA Property node" related to the case structure selector label?
Can you show examples of what you want to achieve?