03-04-2008 06:51 AM
03-04-2008 07:27 AM
Hi Dana,
you can use a property node of the graph or a local variable to do that. See the attached example.
Hope it helps.
Mike
03-04-2008 08:09 AM
03-04-2008 08:17 AM
03-04-2008 08:19 AM - edited 03-04-2008 08:20 AM
03-04-2008 08:24 AM
03-04-2008 08:37 AM
03-04-2008 09:26 AM - edited 03-04-2008 09:30 AM
03-04-2008 09:57 AM
03-04-2008 10:02 AM
You are really approaching this entire problem way too complicated. I suggest you use a simple state machine with a single outer loop and basically two states, one for the work and one for the wait.
You polling wait state definitely needs a small wait statement.
Your work states are nearly identical, differing only in the waveform type and some data handling. All shared code needs to exist only once and only the differences need to be in small case structures. Now you can use a single terminal for all data of all work states and no longer need to mess with value properties and such. Your code is too complex by at least a factor of three for no reason.