LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent the numeric control button value changes when it is disabled and grayed out in labview

Hi,

In my Labview code i'm using Numeric Controls and making it ""Disabled and Grayed out" at particular instance and after executing few cases (Stacked Sequence Structure cases) i'm enabling the controls again. During this period if user clicks the Numeric Control Buttons i'm expecting that it will not take this input event (i mean it should not change its value) since i disabled and grayed out the control. But it is changing the value if a user event is occured during this period.

 

I'm attaching a sample-Numeric Control Changes.vi explaining this scenario.

 

And i have one more query - whenever i use the "Display message to User" Node or "Dialogue" nodes,(Ex: "One button dialogue" node or "Two buttons dialogue" node) while run time it pop-ups the window and then background UI freezes until user clicks the "OK" or "Abort" button given in the pop up window. Is there any way to make the UI not to freeze in this situation and also is there any way to automatically close the pop up window after particular duration of time?

can someone please answer these questions.

 

Thanks in Advance.

Siva.

0 Kudos
Message 1 of 7
(4,920 Views)

Edit the case for the start button and uncheck "Lock FP updates until complete".

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 7
(4,905 Views)

Hello Siva,

 

if you edit the "Start": Value change event, there is a checkbox labelled: "Lock panel(defer processing of user actions) ...".

 

You should uncheck this checkbox to get the result you want. If the checkbox is set LabVIEW processes the events after the "Start": Value change event finished and then the controls are enabled again.

 

Uli

 

[Edit: I see Ben was faster]

Message 3 of 7
(4,897 Views)

Hi Ben,

Thanks for the reply. It is working good after your update. 🙂 Thanks for the quick response. 

 

And can you please let me know the solution for my second query too. About freezing of UI issue when "Display message to user" or "Dialogue" nodes are used to popup some message during run time. And also how to automatically close these pop up windows after desired duration of time.

 

Thanks,

Siva

0 Kudos
Message 4 of 7
(4,856 Views)

Hi UliB,

 

Thanks to you too for your reply 🙂

 

And can you please answer to my second query too. (As explained in the previous mail) 

 

Thanks,

Siva

0 Kudos
Message 5 of 7
(4,848 Views)

Hello Siva,

 

you have to program your own dialog and call it dynamically.

So, create a new VI, layout the UI, handle the timing you want in the VI, set Window Appearance to 'dialog' in the VI properties. If you need it use the connector pane to transfer data to your VI.

Then call the VI dynamically. You can use 'Open VI Reference' and 'Start Asynchronous Call'. Search for 'Asynchronous' in the NI Example Finder.

 

Hope this helps.

 

UliB

0 Kudos
Message 6 of 7
(4,819 Views)

Thanks UliB,

I'll try out your suggestion.

 

Thank you,

Siva.

0 Kudos
Message 7 of 7
(4,759 Views)