LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop Button in dynamic data type

Hi Danandu,

 

one more (important) issue:

This is what I see AFTER I placed those buttons next to each other (one of them was way off screen!)…

 

How should your user know which button to use, in which order to use and which order not to use to avoid problems???

 

Again the recommendation is: simplify your VI using a clear (and senseful) algorithm! No need for 2 stop buttons, no need for two "Pause/Continue" buttons…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 16
(359 Views)

Hello again!! Thank you so much for your reply. The pause / continue part in the code has no effect? Is there any other method to do so?

0 Kudos
Message 12 of 16
(333 Views)

Hi Karnarjun,

 


@Karnarjun2495 wrote:

The pause / continue part in the code has no effect?


I didn't say so.

The "pause" code surely has an effect - but your user might be irritated about how it works…

(The event structure also has an effect, especially when set to not use a timeout event.)

 


@Karnarjun2495 wrote:

Is there any other method to do so?


I already mentioned simple state machines…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 16
(328 Views)

@Karnarjun2495 wrote:

Is there any other method to do so?


You've worked yourself up to a level when you get concurrency issues.

 

In LabVIEW, you get parallel execution for free. That is actually great, but you do get the concurrency issues early on, for free.

 

The solution is to take a dive into architectures. A state machine might work (JKI SM or (D)QMH, or a DIY SM, Queues or not, event driven maybe...). A consumer\producer structure might work. Even actor framework will solve some issues (e.g. start the daq as an actor). You can also simply make a gui VI and a DAQ VI (or even a loop) and connect them with a channel wire.

 

These are all ways to decouple the daq and gui logic. How strict of a decoupling is desired depends on a lot of factors.

 

In general I'd say you always want an even structure handling the gui, and almost always have the daq running in parallel.

0 Kudos
Message 14 of 16
(313 Views)

Hello Again!! Thanks for your help, support and time. I am working with the state machine approach. I will get back to you if any help!! Just need some time to figure out and understand the concept and apply it to my program.

0 Kudos
Message 15 of 16
(278 Views)

Sure!! I will follow any one approach. Thanks for your support and time. Will get back to you if any help. 

0 Kudos
Message 16 of 16
(275 Views)