LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

on/off LED cycle and other operations simultanously.

Hello,

I am a beginner with Labview. I would like to light on and off a LED during 36 cycles. In each cycle LED is on during 5 seconds and off during 10 seconds.

 

 

With the attached program, I have 2 problems: 

 

- I can not do anything simultanously with LED control but I have to wait the end of each cycle to be allowed to do something.  For example I would like to read temperature every half second and opening and closing a relay depending on its value.

- I can not stop the sequence before the end of all 36 cycles.

 

I tried also another way to sort it out (event structure)  but It doesn't help me at all.

 

What can I do? Anyone can help me?

 

Regards

Download All
0 Kudos
Message 1 of 5
(3,183 Views)

will this work?

Best regards,
Krispiekream
0 Kudos
Message 2 of 5
(3,176 Views)

untitled.PNG

Best regards,
Krispiekream
0 Kudos
Message 3 of 5
(3,174 Views)

Thanks.

Your advice help me to solve the first issue about stopping it before the end of all cycles.

But I don't know yet how to execute other operations every 500ms simultanously with LED on/off. With such VI I have to wait 15s before being allowed to do something again.

0 Kudos
Message 4 of 5
(3,168 Views)

oh, you can just put it in the same stack sequence as the OFF LED or the ON LED.

 

it should run at the same time.

i dont think there will be a problem if those timeout are 500ms.

 

try it out. i am still learning like you too.

Best regards,
Krispiekream
0 Kudos
Message 5 of 5
(3,153 Views)