LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

state machine vi problem

Solved!
Go to solution

Hello Everyone,

    I am having a problem in the attached vi that it is not running continuously what might be the problem. Please check the vi and give some suggestion/help/advice i'll be thankful.

Naqqash
Download All
0 Kudos
Message 1 of 5
(2,651 Views)
Solution
Accepted by topic author Naqqash

When you initialize your shift register, you're initializing it to "Stop".   Naturally, the first thing your loop does is stop.

 

Try initializing your shift register to "Initialize".

0 Kudos
Message 2 of 5
(2,635 Views)
OH MY GOD what a silly mistake i've done how can I neglect this. Thanks alot.
Naqqash
0 Kudos
Message 3 of 5
(2,629 Views)

Silly mistakes happen to everyone!  🙂  I've been guilty of them a time or two myself.  I think we all have.  At least it was easy to fix!

 

As an idea for the future -- using the "Highlight execution" tool would have enabled you to catch the problem very quickly.  (That's the little light bulb at the top of your block diagram, in case you aren't familiar with it.)  It can really be a useful thing.

Message 4 of 5
(2,598 Views)
Thanks for the advice yes i know about it but forget about it infact, the idea of using highlight execution did'nt come in my mind at that time but thanks anyway.
Naqqash
0 Kudos
Message 5 of 5
(2,595 Views)