09-06-2011 10:35 AM
Lets say there are several for loops and while loops on the block diagram.
Now on the front panel I have to press 3 bottons several time.
What will be your approuch to automize this procedure?
Thanks in advance
I will mark your answers as best answer or helpfull
09-06-2011 12:19 PM - edited 09-06-2011 12:22 PM
Letls assume that your mention of the various loops is irrelevant to the problem and you want to automate the button pressing. Do you want the buttons to actually change, or do you simply want to automate the same procedures? You can write to controls using local variables. I recommend a state machine for the overall design. Can you attach some code so we get a better idea what you want to do?
09-06-2011 12:22 PM
press several button three times to do what action?
Given no other information a solution could be to Have one button feed a case structure and in side the case structure initialize several several local variables of the buttons you want to push.
09-06-2011 01:38 PM
Please also clarify what you mean by "automize"?
09-06-2011 02:55 PM
There are many ways to control multiple parallel loops in LabVIEW. The best way to "automize" varies depending on your preferred coding style and what your program is designed to do. Since you're asking this question in such a genral way I would suggest you start studying up on locals, notifiers, queues, action engines and other data transfer methods and decide which one will be most apprpriate to your task.