05-29-2010 02:11 AM
Hi all,
I am new to labview. I request guidance for creating, one boolean remains in off condition for 15 min, switches ON for 5 seconds.. then again the same cycle should be repeated continuosly. I want to start my logic using system time..
Please guide me.
Thanx,
Solved! Go to Solution.
05-30-2010 11:02 PM
Hi,
You could use a logic like this:
Also, do have a look at ni.com/gettingstarted to understand more about LabVIEW basics and the use of graphical tools for programming your application.
05-30-2010 11:30 PM
Vaibhav Vashisht,
Using your example for the 15 minute (not seconds) that the op asked for would be a bad idea.
Vaibhav G,
What have you tried? Have you considered a simple state machine? One state to check elapsed time and ine to set the logic?
05-31-2010 12:32 AM
05-31-2010 07:56 AM
Hey,
I just made a small VI using state machine.. It should be considered as one of solution but not best.. I did documentation inside loop to explain wat that intend to do..
In VI i took two case named first and second then used state machine to switch over one another.. inside case i took while loop having time consideration check and finish as achieved.. as while loop finish it enters in another case there also same logic with different time consideration..
U can use same logic for as many case u want..
Hope it helps
HS
05-31-2010 08:20 AM
06-10-2010 01:46 AM
Hi herold,
Thank you so much...
06-10-2010 01:48 AM
Hi HS,
Thank you so much.....
06-10-2010 02:19 AM - edited 06-10-2010 02:20 AM
We only need two states, so a boolean is sufficient. Here's a very simple implementation using the event timeout. (There is only one event case, nothing else).
06-10-2010 09:56 AM
H Sh wrote:.. as while loop finish it enters in another case there also same logic with different time consideration..