07-07-2010 12:11 PM
Have you made any progress with this?
07-07-2010 12:14 PM
yeah kind of. I'm working on SubVIs right now so instead of having 800 million channels on the block diagram I only have a subVI which contains all of that. I suppose I still don't understand why I need to use case structures in my while loops.
07-07-2010 12:18 PM
@tanyasue327 wrote:
yeah kind of. I'm working on SubVIs right now so instead of having 800 million channels on the block diagram I only have a subVI which contains all of that. I suppose I still don't understand why I need to use case structures in my while loops.
You use the case structure so you can have the event structure do all of the processing. So if the operator is not doing anything then the program does not have to do anything. Once the button is pushed then the state machine takes over and forces the program to do what you need it to do. So if you did not have a timeout constant then the program would wait until somethin happend to do something. You will also see in the future that it make it easy to add event driven states. This will make it easy to talk between loops and have one loop cause the other to do something.
07-07-2010 12:20 PM
The program sit in the message dispatcher until something happens. As long as you understand that then you should get the rest. I tell people to turn on the light bulb and watch what is happening. THen push a button on the front panel and watch what is happening. I hope this helps.