09-07-2006 01:34 AM
09-07-2006 08:20 AM
Don't have time to look through the code, but have a little piece of generic advice:
Just for temporary debugging purposes, wire your various case values into an auto-indexing loop tunnel, and create a front panel array indicator to hold them. This array will hold the whole state transition history. If that doesn't yet highlight the problem, wire up some other key parameters to autoindex as well.
Don't forget to get rid of this stuff after you've fixed the problem -- auto-indexing a while loop output will eventually bog down your memory / CPU.
-Kevin P.
09-07-2006 08:37 AM
09-07-2006 09:12 PM
09-17-2006 06:15 PM
refering to my reply at 09-03-2006 10:49 AM
i've done my block similar to the diagram posted. mine can't work. it get trapped in the check status. after highlighting execution (light bulb on toolbar) i find the reason, but can't solve it.
in the working buck roger example, the N in the while loop gets incremented and all the case are run thru, whereas, in my case, the N is always at 0, and "default" is executed first, despite my attempt to try get the other states execute first. what happen is in "default" my loop ended the case, and the check power restarted, N never gets incremented.
PLs help. i don't know what goes wrong...
09-17-2006 06:21 PM
sorry guys, pls dis regard my last post. just after posting i found out the reason
i have to edit items, and put the other case before "default" in the enumurated list...