LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer for Lights

Hi , I searched up the forums for a possible solution to this, but couldnt find it,

I was looking for a timer Function something on Labview, with what i can control when to turn on something, or when to give a digital High output!

Can anyone pls guide me into the right direction ! Thnx!

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

There are several timing functions in LabVIEW and many ways to build on the simple timing functions to control the timing of almost anything you want.

 

The Timing palette is a good place to start.  Look at the help for the available functions and see what might work for you.

 

Generally you get better answers when you ask very spcecific questions.

 

What is the resolution and accuracy of the timing you need? How will the on and off times be set, selected, or calculated? Is the timing periodic or random? Will this program run continuously or for a finite duration? Is there only one device to be controlled or are there multiple devices with independent timing?

 

Lynn

0 Kudos
Message 2 of 8
(3,875 Views)

Hi dsly,

 

This link should solve your issue:

 

http://zone.ni.com/reference/en-XX/help/371361H-01/TOC117.htm

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

simple logic...

.Example_VI.png

0 Kudos
Message 4 of 8
(3,844 Views)

Hi, could you possibly explain what you've done here? Especially in the third section

 

Thank you

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

@rohitudhwani wrote:

Hi, could you possibly explain what you've done here? Especially in the third section


These posts were written 8 years ago and there are no numbered "sections".

 

What is "here" and where is the "third section"? Please provide more details.

0 Kudos
Message 6 of 8
(3,189 Views)

I'm sorry, let me rephrase. 

There are 2 numeric time stamp controllers, which are connected to their respective "seconds to date/time" functions. There is a "Get date/time" function connected to another "seconds to date/time" function. 

 

These 3 are then connected to some sort of arrow with the word hour beside it. What function is this specifically? 

 

Along with that, how does this whole subVI work? The idea behind choosing these specific functions, if that makes any sense.

I'm an undergraduate student and my understanding of LabVIEW is extremely limited, I'm sorry. 

Thanks a lot!

 

0 Kudos
Message 7 of 8
(3,185 Views)

The date/time record is a cluster and to get any cluster element, use unbundle by name.

 

altenbach_0-1589702737645.png

 

 

 

The current hour is compared to the set hour time points to determine state. This is independent of any programming language.

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