04-05-2016 02:02 PM
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.
04-05-2016 02:41 PM
Edit the case for the start button and uncheck "Lock FP updates until complete".
Ben
04-05-2016 02:44 PM - edited 04-05-2016 02:44 PM
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]
04-06-2016 12:07 AM
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
04-06-2016 12:10 AM
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
04-06-2016 05:20 AM - edited 04-06-2016 05:45 AM
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
04-07-2016 04:06 AM
Thanks UliB,
I'll try out your suggestion.
Thank you,
Siva.