LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with my project

Solved!
Go to solution

too much wire and shift register, I am Confused, can you help me a little bit for the coding ?

0 Kudos
Message 11 of 34
(1,651 Views)

@zqz51911 wrote:

too much wire and shift register, I am Confused, can you help me a little bit for the coding ?


You are right, too many shift registers and wires in your code.  You can move the indicator terminals inside of the event case.  That will make things a lot simpler.  It also helps if you properly label controls and wires.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 34
(1,645 Views)

appreciate

0 Kudos
Message 13 of 34
(1,634 Views)

can you plz show me the what is inside the "false " state, and btw why my stop can not wire to the "envent structure" ?labveiw questionE3.PNG

0 Kudos
Message 14 of 34
(1,624 Views)

The other image is a snippet.  You can drag and drop it to your desktop, then drag it into your block diagram and have all the code.

 

That wire needs a source.  In the Stop event, put a true constant there and wire it out to the conditional terminal.

0 Kudos
Message 15 of 34
(1,622 Views)

magic, amazing

0 Kudos
Message 16 of 34
(1,618 Views)

Hi Knight of NI, I still have some problems, sorry to bother you again.

The problem is why my vi can only output in array 2(in the loop) while the vi running. If I want to output in array 1(out of the loop), I need to click the stop button every time.

 

Another problem is the reset button, I want a reset all the value to zero when I press this button, however it did not work.

 

The last problem is when I run the vi, when the first time I press the “toggle” ,in the “Frequency” and “break” indicator, there always some random number come out unless I press three times to finish a cycle the number will remain normal.

 

Thanks

fourm problem.png

0 Kudos
Message 17 of 34
(1,596 Views)

You need a different event case for each button you have.  You should have a Reset:Value Change and a Stop:Value Change events.  Do whatever you need to inside of those cases.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 18 of 34
(1,580 Views)

however, I can't put two event structure in one loop. 

0 Kudos
Message 19 of 34
(1,546 Views)

@zqz51911 wrote:

however, I can't put two event structure in one loop. 


Who said anything about having multiple Event Structures?  You want a different event CASE.  Right-click on the Event Structure and choose "Add Event Case".


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 34
(1,541 Views)