キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/9
4,949件の閲覧回数
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 件の賞賛
メッセージ2/9
4,947件の閲覧回数
it worked.....thank you so much!
0 件の賞賛
メッセージ3/9
4,944件の閲覧回数
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 件の賞賛
メッセージ4/9
4,914件の閲覧回数
Here is an example using a statemachine.
 
Red
Certified LabVIEW Associate Developer
VI Technology
0 件の賞賛
メッセージ5/9
4,911件の閲覧回数
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 件の賞賛
メッセージ6/9
4,894件の閲覧回数

How is your program not working?

Post your VI so we can see what you are trying to do.スマイリー ウインク

0 件の賞賛
メッセージ7/9
4,885件の閲覧回数
I have attached the program. The bottom loop should be executed after the 1st loop
0 件の賞賛
メッセージ8/9
4,874件の閲覧回数
Hi jackofall...,
therefore connect the second loop with a wire from the first loop.
Mike
0 件の賞賛
メッセージ9/9
4,857件の閲覧回数