03-06-2015 02:56 AM
Hi mak,
but i had still problem, when press stop button it stop(pause) in display, but runs in background
Because you use ElapsedTime.
Use your own time counting routine, it's rather easy once you define your needed logic…
Why do you need those stacked case structures to calculate day/h/m/s? Why not use some basic math taught in school in the first 4 classes?
03-06-2015 08:45 AM
03-06-2015 08:47 AM
Hi mak,
you need to define that logic on your own!
A good starting point is a flowchart: define your program states (Start, Pause, Stop) and define what should happen in those states. Once you made your mind up you can start to program in LabVIEW…
03-08-2015 02:00 PM
I done some works based on your suggestions... But still i had problems, when i pressed reset button it reset on display, but after sometimes i again pressed start but it start from where i stopped..here i use 'increment-feedback'
Before i use elapsed time instead of 'increment-feed back'...then i cant stop the timer,...it runs in background.. When i pressed stop it stopped in display but runs in background Please help me...i need a stop watch, with start/stop and reset button..same function of a digital stop watch
Here i attached my code
03-08-2015 02:23 PM
I'd suggest you watch these videos: http://www.ni.com/tutorial/14554/en/
The topic you're tackling is one that's a big part of the CLD exam. It's important enough to the exam that there are tutorial videos to discuss the topic.
03-08-2015 02:24 PM
What is the purpose of the increment For Loop? You just keep adding 1 and use that to define your time. But no where do you define how fast those loops run.
Where is your pause functionality?
Your Reset doesn't reset because your are keeping a feedback node inside your one case structure. You don't need that feedback node because the shift register is going to do that work for you.
Try using a state machine architecture like it has been suggested.