05-01-2016 10:55 AM
Hello to all of you.
I have an application using share variable boolean to trigger my message.
The problem is the message keep popup as long the share variable boolean data is true.
How to overome this problem, so that it only prompt one time after OK button has acknowledged?
Thank you.
Solved! Go to Solution.
05-01-2016 11:03 AM
Simply turn the Shared Variable off after it's been used.
05-01-2016 12:18 PM
Bob_Schor, thanks for prompt reply.
This while loop is too fast and it keep resetting SV, the message not able to popup. Occasionally SVE failure happen shown
"LabVIEW DSC: (Hex 0xC004FF00) The OPC Server returned a value with a bad status for an unknown reason. Consult the vendor documentation for your OPC Server to resolve this error.This error or warning occurred while reading the following Shared Variable: \\My Computer\Message\Message02
\\192.168.1.12\Message\Message02".
Is it possible use event structure to handle this problem?
05-08-2016 10:28 PM
I need advise and help to resolve this issue.
Hope someone can give a hand, thank you.
05-09-2016 12:10 AM
Hi,
You need to use case structure to show the message when variable is true. At the moment when the event happens you set the message to show out and in the next few microseconds you set it to hide. Obviously you'll not get the behaviour you expect - there is no chgance to see the message and you might get some errors because you close a message before it pop up.
Unfortunately I use LV2014 so I can't open your code but to fix it - simply draw case structurs around the message VI and place the reset variable into the TRUE case. Add some Wait VI into your loop (20-30mS) to slow down the execution of the loop. At the moment you call the loop many thousands times per second and I'm sure you waste a lot of processing time for nothing. Technically you don't need immediatly to show the message on the screen - it's interaction with the user which may take really long.
05-09-2016 12:38 PM
Luben, thanks for your advised.