06-29-2009 08:37 AM
Solved! Go to Solution.
06-29-2009 08:50 AM
Hi DoomPirate,
place your indicator in the first frame and a local variable or an property node of it in the last.
It's also possible with only the indicator if you use a statemachine architecture.
Mike
06-29-2009 09:10 AM
06-29-2009 10:11 AM
One thing you can try now, which is quite beutiful code:
Make a while loop
Create a led indicator
Connect the indicator to the while loop and make it a shift register
/Y
06-29-2009 11:06 AM - edited 06-29-2009 11:08 AM
As a basic newbiew, you make the mistake of sequence overuse. They are very rarely needed. You should always think in terms of a state machine.
Here is a very simple linear two-state machine that duplicates your code quite accurately. As you can see, no sequence structures, local variables or property nodes are needed.
DoomPirate wrote:
Thanks mike, It worked. I went with the property node route. I wasted 5 hours trying to get it to work last week. I had a major headache.
Here's another big beginner mistake. In simple cases like this, you should always pick a local variable over a value property node. Property nodes are literally orders of magnitude more expensive. Property nodes should only be used if really needed (e.g. access an element inside a cluster or in another VI).