From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switching a relay on/off using DAQ asiistant

Solved!
Go to solution

Hello, I am trying to create a VI that switches my relay on for a specific amount of time and then off for sometime, on repeat. switching it on works but i don't know how to switch it off and repeat. i have attached my VI, please do tell me what alteration is necessary to make it work. 

Thankyou

0 Kudos
Message 1 of 6
(2,269 Views)

Hi Doha,

 

 switching it on works but i don't know how to switch it off and repeat.

To switch ON you send a TRUE constant. Which constant is needed to switch OFF?

Hint: to repeat a certain task it would help to use some kind of "loop" construct…

 

i have attached my VI,

No, you don't!

It's only an image - we cannot debug images using LabVIEW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,267 Views)

I know i need to put a false constant but I'm not sure how to connect it.

I have attached my VI.

 

0 Kudos
Message 3 of 6
(2,259 Views)
Solution
Accepted by topic author Doha_h

Hi Doha,

 

I'm not sure how to connect it.

Then you should takes all those (free) training resources offered in the header of this LabVIEW board!

 

To give an idea:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,255 Views)

can you send me the link for the free training resources ?

 

thanks a lot for your help

0 Kudos
Message 5 of 6
(2,223 Views)

Hi Doha,

 

see here: right at the top you will find "training resources"!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,217 Views)