02-21-2012 08:51 AM
Hello I'm new in Labview, and I'm trying to make a program when after sometime (for example 10 minutes) I get a output true then after 10 minutes more a should get false and then again true, this sequene should last through the whole time the program is running. please somebody help me!!
Regards!!
Armando Salas
02-21-2012 08:52 AM
Armando, would you like to post what you have done until now?
02-22-2012 05:18 AM
Hi Armando,
I think I understood what do you need to make and you can do this using the time functions of LV and random number.
Those links explain two time functions:
Wait (ms) Function:
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/wait_ms/
Wait Until Next ms Multiple Function:
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/wait_till_next_ms_multiple/
I am available for any questions.
Best Regards.
02-22-2012 08:12 AM
That's not right. You don't want to use the Wait function since that will just stop your thread from doing any other execution especially if the user wants to stop the application. I would use the Time Elapsed express VI but would like to see some attempt from Armando before I just write down the solution.
02-22-2012 09:11 AM
Yes, you're correct.
I didn't pay attention for this case. I'm too waiting a Armando's code.
02-22-2012 09:51 AM
Start by calculating time to X seconds.
Loop with a 1 sec delay, after X seconds, invert output and reset counter.
/Y
02-22-2012 10:39 AM
You know what? I'm going to do it. I'm Going to link to the community discussion over in the Minneapolis LabVIEW User's Group area. (The OP should be given a much better forum search tool since "Timer (Hey what happened to open link in new tab)sorry about the new window!" only returns about 700 results)
This "timing" concept somehow gets a lot of LabVIEW users tied in knots for one reason or another (I suspect there is a paradigm shift involved in "Making a compuer work slowly" that I do not fully understand)
02-22-2012 10:41 AM
Having a bad day Jeff?