07-02-2019 08:27 AM
Hi,
I'm currently trying to display a message whenever a certain parameter is reached in my code, i.e the current gets to a certain point. I tried to use "Display Message to User" but it pauses the code until I click OK. Is there any other way to go about this?
Thanks in advance.
Solved! Go to Solution.
07-02-2019 08:37 AM
Hi abby,
use a parallel running loop to display those dialogs.
And as the simple one/two button dialogs are running in the "root" loop they tend to block other operations, so you might also create your own dialog VI to show messages to the user…
07-02-2019 08:40 AM
Hi GerdW,
Could you please explain what you mean? I'm confused.
07-02-2019 08:48 AM
Hi abby,
I tried to use "Display Message to User" but it pauses the code until I click OK. Is there any other way to go about this?
Because of DATAFLOW your current process/loop will stall as long as you call the Dialog to the user. When you don't want that then you need to call the dialog in a different, parallel running loop.
The "Display Message to User" ExpressVI is using the OneButtonDialog/TwoButtonDialog internally. Both functions will also stop certain other operations as they are bound to a "core" loop within LabVIEW. When this also annoys you then you can create your own "dialog" VI as an ordinary subVI…
07-02-2019 08:52 AM
So I would I go about creating my own dialog VI?
My apologies I'm new to LabVIEW
07-02-2019 08:57 AM
Hi abby,
So I would I go about creating my own dialog VI?
You should start with calling that Dialog function in a parallel loop.
I'm new to LabVIEW
There's a "Training" section in the header of the LabVIEW board - you really should take note of it…
07-02-2019 09:21 AM
07-02-2019 03:18 PM
Is it really required that the message pops up in a new window? It's much simpler to put a string indicator on your front panel and write your message to it when the event occurs. You could flash the indicator with the "Blinking" property or light up an LED indicator next to the message when you want to attract attention to it.
01-25-2021 12:46 AM
Thanks for the example, exactly what I was looking for.