ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic switch

does anybody have a idea how to create an automatic booleon switch? I want it to switch on and off every 20 seconds
0 Kudos
Message 1 of 9
(4,896 Views)
Hi Jack,

-create a while loop with a shift register
- init the shift register with a FALSE constant
- wire from left SR to right SR, insert a NOT function in the wire
- create an indicator for the wire
- place a delay function in the loop, wire 20000 to it

Ready...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,894 Views)
it worked.....thank you so much!
0 Kudos
Message 3 of 9
(4,891 Views)
Jack,
Are you trying to actually move a switch control, or are are just needing a 50% duty .05Hz signal?
 
Do you need it to run inside another process and not hog all the vi's resources?
 
Red
Certified LabVIEW Associate Developer
VI Technology
0 Kudos
Message 4 of 9
(4,861 Views)
Here is an example using a statemachine.
 
Red
Certified LabVIEW Associate Developer
VI Technology
0 Kudos
Message 5 of 9
(4,858 Views)
I have another question. I have 2 loops in my program and I want 1 loop to have a time delay. What i mean is 1 loops is executed and the other is executed after a specific time. I tried the time delay vi and its not working. any ideas? I really need this program running by friday so that i can conduct the test on the weekend and this problem is my only obstacle. Hope to get a reply as soon as possible
0 Kudos
Message 6 of 9
(4,841 Views)

How is your program not working?

Post your VI so we can see what you are trying to do.Smiley Wink

0 Kudos
Message 7 of 9
(4,832 Views)
I have attached the program. The bottom loop should be executed after the 1st loop
0 Kudos
Message 8 of 9
(4,821 Views)
Hi jackofall...,
therefore connect the second loop with a wire from the first loop.
Mike
0 Kudos
Message 9 of 9
(4,804 Views)