LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help me fix this timer program

hello there,

i have attached my VI

can anyone help me fix this program to run the timer?

 

thanks in advance

0 Kudos
Message 1 of 4
(2,475 Views)

Why are you doing some button handling via the event structure and not all of your buttons? Once you hit the start button you are waiting for an event to occur in your event structure. You will need to hit either the continue, pause or reset button in order to move on. Trying handling all of your buttons in the structure. Hint: you will need to manipulate the timeout value of the event structure.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(2,463 Views)

Since your loop should be spinning at all times, get rid of the event structure and just poll the buttons. Currently, your event structure is buried deep inside a case structure and if start=false, none of the events can execute (dataflow!). You events are set to lock the front panel until they complete, and since the events cannot complete under many conditions, you are locked out permanently.

0 Kudos
Message 3 of 4
(2,462 Views)

@akshay321 wrote:

hello there,

i have attached my VI

can anyone help me fix this program to run the timer?

 

thanks in advance


Watch your code in Execution Highlighting mode (click the light bulb on the block diagram).

 

Then poke at your buttons and watch what is going on when.

 

Some of the previous replies you have received above are clues into what the problems are.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,456 Views)