取消
显示结果 
搜索替代 
您的意思是: 

start stop loop

已解决!
转到解答

I'm making an application with some led blinking indicator. I use a while loop to timing different blinking led ( every led has different blinking time) and  boolean buttons with their local variables  to activate the leds from another loop. But I'd like to use boolean variable instead buttons. How can I do this 

0 项奖励
1 条消息(共 22 条)
4,383 次查看

It is difficult to tell exactly what you want and what you have tried from your description.  Please post your VI. Try to explain as clearly as possible how the timing for each LED is set and what activates them.

 

Lynn

0 项奖励
2 条消息(共 22 条)
4,371 次查看

@betobeto33 wrote:

But I'd like to use boolean variable instead buttons. 


What is a boolean variable?

0 项奖励
3 条消息(共 22 条)
4,363 次查看

boolean variable.png       眨眼表情

0 项奖励
4 条消息(共 22 条)
4,355 次查看

That is a local variable of a boolean control or indicator.  It just so happens that whoever created that control/indicator named it "Boolean Variable".

 

If you'd like some further help, I'd recommend posting your VI so we can see what is really going on inside of it.

 

But first, I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 项奖励
5 条消息(共 22 条)
4,345 次查看

@RavensFan wrote:

That is a local variable of a boolean control or indicator.  It just so happens that whoever created that control/indicator named it "Boolean Variable".

 

 

 

yes it is...it was meant to be a joke?

 

0 项奖励
6 条消息(共 22 条)
4,336 次查看

It was a poor joke if it was.  It had to be intentional because the default name for a boolean control or indicator is "Boolean" or "Boolean #" where # is a number appended to the Boolean name.

0 项奖励
7 条消息(共 22 条)
4,333 次查看

Here is the VI for example. In this VI the led1 start blinking immediatly but the second led start blinking after some seconds. I use  the button and his local variable to messagge from one loop to another, but it would be better to use a not visible item instead of the button. I know that I could have done this wilth only one loop, but I wanted to know this possibility too.

0 项奖励
8 条消息(共 22 条)
4,313 次查看

betobeto33 wrote:

 

Here is the VI for example. In this VI the led1 start blinking immediatly but the second led start blinking after some seconds. I use  the button and his local variable to messagge from one loop to another, but it would be better to use a not visible item instead of the button. I know that I could have done this wilth only one loop, but I wanted to know this possibility too.


First, as somedy said before using the abort button to stop your vi is like using a tree to stop your car, you should provide a proper way to stop your vi.. Also the shift register of the second loop is uninitialize so you can never be sure of the value it will start with. For what the vi is doing currently I don't see the need of a second loop, you can use a single loop with a wait time that is a common divider of the wait time of your two actual loops (like 100ms) and add some math.

 

Ben64

0 项奖励
9 条消息(共 22 条)
4,298 次查看

Pardon, the problem is not how to make a led blinking, but how to comunicate between two different  loop. For example, how to start or stop a loop from another loop, the two loop executing in parallel. I succeded to do it with a button, but I'd prefer to use something not visible in the front panel.

0 项奖励
10 条消息(共 22 条)
4,286 次查看