06-08-2010 09:42 AM
Hello,
I have made a VI for control a motor.
There is my subVI
I have create a VI with a combobox to control the motor with 3 commands.
Each command send a string who the motor understand.
My issue is when i choose a command, in my subVI that doesnt change.
What i have to do to make my VI working with the combobox ?
Thanks for your help.
06-08-2010 09:49 AM - edited 06-08-2010 09:56 AM
1) Put a delay in your loop - you are hammering the serial port and wasting CPU.
2) If you wire your combo box into the VI as shown, it can change only at the startup of the loop, because once it starts looping, it has to finish.
Try running it as one VI rather than a sub-VI and you should see what I mean.
You need a parallel process in order to control the combo box. In other words, you need a parallel loop architecture.
06-08-2010 09:54 AM