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

parallel while loop

I'm having trouble with executing a secondary while loop. I'm trying to shut off a portion of my block diagram for the entirety of the run based on the input from an external wire. I would really appreciate help on this, thanks.

下载全部
0 项奖励
1 条消息(共 25 条)
4,500 次查看

You do not have parallel loops. Because the wire comes out of one loop and enters the other, the loops will execute sequentially.  This is fundamental to the dataflow paradigm of LabVIEW.

 

It looks like you may be new to LabVIEW. If so, please start with the free on-line tutorials. They should cover some of these basic concepts

 

Lynn

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

Thanks for the correction. How can I, for the extent of the run shut off that particular section of the block diagram from the true or false input though.

0 项奖励
3 条消息(共 25 条)
4,454 次查看
Please take some of those tutorials.

Why have an external loop? Why not have everything inside the main? Why all those comparisons to string values? You can wire a string directly to a case statement.
0 项奖励
4 条消息(共 25 条)
4,444 次查看

I'm not seeing a reason for the second loop.  Why can't you just put that logic in the main loop you already have, including the writing of the string indicator?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
5 条消息(共 25 条)
4,442 次查看

Unfortunately, when I put the while loop inside the main, the entire program stops functioning as it was intended, I have researched the functions of all the structures and none seem to shut off that portion of the block diagram for all the while loop iterations in the run. 

0 项奖励
6 条消息(共 25 条)
4,385 次查看
You don't understand. Do NOT place the second while loop inside the main. Place just the code inside the while loop in your main.
0 项奖励
7 条消息(共 25 条)
4,378 次查看

How do I go about shutting that section off for the extent of the loop iterations when there is an input though.

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

I've tried that, but it dosnt perform the function I want it to.

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

@mkimball wrote:

I've tried that, but it dosnt perform the function I want it to.


Then show us what you have and tell us how it isn't doing what you want.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
10 条消息(共 25 条)
4,327 次查看