LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a single boolean on/off continuously on time bases?

Solved!
Go to solution

Hello all,

 

I am new user to Labview, and I just wonder how can I control a LED which swich on-off automaticaly for a while, with time of "on=2 sec", and "off=1sec"

I tried  different things but I am not able to control the time which the LED is on and off.

 

I will apreciate if you could please help me.

 

Thank you.

0 Kudos
Message 11 of 15
(943 Views)

@Matin88 wrote:

I am new user to Labview, and I just wonder how can I control a LED which swich on-off automaticaly for a while, with time of "on=2 sec", and "off=1sec"

I tried  different things but I am not able to control the time which the LED is on and off.


Then start a new thread instead of appending to a discussion that is over 4 years old. Show us what you tried and we will explain what's wrong and how to do it better.

 

  • How long is "a while"?
  • What should happen before and after "A while"?
  • "I tried different things" is very vague. Can you be more specific?
  • What else does the program do?

In the simplest case you could have a while loop with a wait. Toggle the LED and wait time depending if the iteration terminal is even or odd. Code would probably fit on a postage stamp. 😮

 

 

Seems to be related to your other discussion. Why not keep it all in one place?

0 Kudos
Message 12 of 15
(937 Views)
0 Kudos
Message 13 of 15
(927 Views)

Dear Altenbach,

 

Sorry for my mistakes.

0 Kudos
Message 14 of 15
(891 Views)

Dear Altenbach,

 

I used the vi that you provided in first page of this discussion (alternating LED) and it is working well with LEDs but I have problem to connect this on-off switching to DAQ Assistant. I wired form boolean and I used boolean to integer and then to DAQ, but not working.

 

one more thing is that, for the DAQ and the task of switching on-off should I use analog or digital output?

 

Thanks,

 

 

 

0 Kudos
Message 15 of 15
(881 Views)