LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel not working correctly

Solved!
Go to solution

Hi,

 

I am having issues with certain parts of my VI that I can't seem to figure out. The most important ones are that the elapsed time VI and Stop button are not working correctly on the front panel. Currently, the elapsed time doesn't move from 0 even though I want it to be counting the entire time the program is running and stop when the time target is reached. This is not happening. Also, the Stop button within the while loop does not stop the VI from running. Why is this?

 

Any help is appreciated!

0 Kudos
Message 1 of 6
(3,744 Views)

There is a missing SubVI that we do not have so I was not able to actually run your program (Scale SubVI), but my first guess is that there is an infinite while loop in that subVI.  It sounds like your loop never finishes executing its first iteration.  You can check if this is the case by adding an indicator to the iteration terminal.

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 6
(3,736 Views)

I have attached the SubVI. It does not contain a while loop though. 

Any other thoughts?

0 Kudos
Message 3 of 6
(3,730 Views)
Solution
Accepted by topic author kmarcella

Well, if you are not getting any data on the serial port, you currently have a 10 second timeout.  So I'm thinking your buttons are actually working, you just aren't waiting long enough to see them act.


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 4 of 6
(3,723 Views)

Maybe you want to keep the discussion of the same VI in one place instead of constantly starting new threads. (You still have that strange combination of "built array" followed by an concatenating tunnel).

 

Please attach the subVI.

0 Kudos
Message 5 of 6
(3,716 Views)

I would go with what crossrulz said or you are never getting the samples you need form your DAQ task.  

 

I just changed the DAQ Assisstant to simulate signal and I can run your program (well the main while loop, I put a breakpoint after start).  Again though I would just add an indicator to your iteration terminal to see if the loop completes.  If crossrulz is right you should see that update once every ten seconds.

Matt J | National Instruments | CLA
0 Kudos
Message 6 of 6
(3,714 Views)