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

for loop inside while loop

解決済み
解決策を見る

Would an event structure work if I need to run 5 devices at the same time? I did try before, but it seemed to work only on device at the time. Those 5 devices have the option of being simulated and tested. When simulated, they can run for many hours. When testing, that only takes seconds.

 

Thank you,

Cosmica

0 件の賞賛
メッセージ11/14
1,324件の閲覧回数

You can always use an event structure to handle the user intereaction loop and handle trivial and quick tasks.

 

If you need to run things in parallel or in the background, these tasks need to be done in parallel loops.

0 件の賞賛
メッセージ12/14
1,318件の閲覧回数

Do I need a while loop for each Test and simulate button? They both will use the same port. Right now, I do have a while loop for each device.

 

Also, I did try to put some delay time in the loop, but it seems still not to go over the for loop. I am logging data in the for loop, but the data seems to be logged until I quit the while loop.

 

Thank you,

Cosmica

0 件の賞賛
メッセージ13/14
1,311件の閲覧回数

Altenbach,

 

I did some cleaning in my code, and the default output tunnels were the reason of my problem.

 

Thank you all,

-Cosmica

0 件の賞賛
メッセージ14/14
1,286件の閲覧回数