02-02-2015 04:34 AM
Hi guys,
I have some question regarding on the timer. I doing a project called car washing system. Basically every selection will have limited function.
Example: $2 wash: Heavy Wash (10 sec) -> Air Dry (15 sec )-> Exit
Example: $5 wash: Main Wash (10sec) -> Soap(10sec) -> Heavy Wash (10sec) -> Air Dry (15 sec) -> Exit
So for every state the timer run until it reach the timing, the timer will pause and next state the timer will continue. I'm using toggle switch so when i toggle up the timer, it will start running until it reach the stage and pause for next toggle switch up to continue. But currently there is some error which i toggle up the timer get reset.
02-02-2015 08:15 AM - edited 02-02-2015 08:15 AM
Ah, CLD practice exams. 🙂
You might want to rethink your use of locals.
This is also one of those rare cases where I think the Express VI works well. The Elapsed Time Express VI should have all of the pieces you need.
The tricky part is that you'll probably want to put the timer in its own state in your state machine.
02-02-2015 08:33 AM
I'm still a beginner. How can express VI work?
02-02-2015 09:46 AM
Look at the LabVIEW help for this one:
02-02-2015 10:10 AM
You may also want to post questions over on the Certification forum.
http://forums.ni.com/t5/Certification/bd-p/Certification
I'd also recommend checking out the elapsed timer express VI. It doesn't have a pause/resume feature but it doesn't take much to add it. I started from the express VI and just added this functionality.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord