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

How to show active frame in flat sequence?

Hi,

How do you show which frame in a flat sequence is active? Highlight execution slows the program and as I scroll through the frames the highlight is sometimes wiped by the display. I tried putting a boolean LED on the front panel but it goes on and stays on because I am running in a while loop. 

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

Hi Ed,

 


@EdHarris wrote:

How do you show which frame in a flat sequence is active?


Such tasks become much easier when you convert your flat sequence into a state machine!

Now it's much simpler to see the active state…

 

On your VI:

You also need to switch off the other LED indicators in the  next frame.

Again: much simpler to use an enum to control your state machine and to show the current value of that enum on the frontpanel…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
メッセージ2/12
2,337件の閲覧回数

@GerdW wrote:

Such tasks become much easier when you convert your flat sequence into a state machine!

Now it's much simpler to see the active state…


You can start by using a Natt Sequence.



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
メッセージ3/12
2,293件の閲覧回数

As others have said, your "code architecture" is flawed and not scalable.

 

(I assume this is just an demo example and your real application makes slightly more sense. A greedy loop with fully constant folded content that can never change is just plain silly!)

 

Yes, a state machine is a better architecture, but maybe start with explaining what you are trying to do in your real code. You must have a more realistic application in mind. What problem are you trying to solve?

メッセージ5/12
2,252件の閲覧回数

If you press Pause it should highlight where you are.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
メッセージ6/12
2,212件の閲覧回数

@Yamaeda wrote:

If you press Pause it should highlight where you are.


Sadly, no. That would have been nice.

wiebeCARYA_0-1702639018753.png

 

0 件の賞賛
メッセージ7/12
2,194件の閲覧回数

wiebe@CARYA wrote:

@Yamaeda wrote:

If you press Pause it should highlight where you are.


Sadly, no. That would have been nice.

wiebeCARYA_0-1702639018753.png

 


When i did it in his flat sequence the frame flashed. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
メッセージ8/12
2,180件の閲覧回数

@Yamaeda wrote:

wiebe@CARYA wrote:

@Yamaeda wrote:

If you press Pause it should highlight where you are.


Sadly, no. That would have been nice.

wiebeCARYA_0-1702639018753.png

 


When i did it in his flat sequence the frame flashed. 🙂


Work for me too.

0 件の賞賛
メッセージ9/12
2,169件の閲覧回数

Hi GerdW,  Altenbach and Yamaeda,

The pause button doesnt always highlight the whole frame unfortunately, and in this case I prefer to look at the front panel, I used variables to turn on and off some LEDs as seen in multiple youtube but  its not elegant or very scalable I admit. This allows me to monitor the progress and interaction of the sequence along with a second similar one running on another machine. If I had time I would try to build a state machine but its working now and as it is meant to run again and again for months I am not sure a state machine is any better, thanks you helped me through. Incidentally, Altenbach the program includes a modified version of your NTP parse which allows me to access all send and receive timestamps. Thanks again. 

すべてをダウンロード
0 件の賞賛
メッセージ10/12
2,079件の閲覧回数