LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent!!! timers

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

0 Kudos
Message 1 of 8
(3,678 Views)

Armando, would you like to post what you have done until now?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 8
(3,677 Views)

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.

Ricardo Ramos
Account Manager
+5511989658513 | ni.com



0 Kudos
Message 3 of 8
(3,645 Views)

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.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 8
(3,629 Views)

Yes, you're correct.

 

I didn't pay attention for this case. I'm too waiting a Armando's code.

 

Ricardo Ramos
Account Manager
+5511989658513 | ni.com



0 Kudos
Message 5 of 8
(3,615 Views)

Start by calculating time to X seconds.

Loop with a 1 sec delay, after X seconds, invert output and reset counter.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 8
(3,609 Views)

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)

 

So here is the link


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 8
(3,596 Views)

Having a bad day Jeff? Smiley Wink

Tim
GHSP
Message 8 of 8
(3,592 Views)