LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Message to User (just once)

Hello everyone. I'm trying to display a message in my program when a number reaches a certain value. Right now I'm doing it with a comparator (when the input is greater or equal to some number, enable the message). The problem is that I don't want the message to keep appearing, I just want the message to appear the first time the number reaches that certain value. One way to fic this is to connect the ok output of the display message box to the stop of the while loop. The problem is that I don't want the program to stop there, I just want the message to be a warning. Thanks for your time.
0 Kudos
Message 1 of 7
(8,697 Views)
Add a flag which is passed via a shift register. When the message is displayed the first time, change the flag. See the modification of your VI.

Lynn
Message 2 of 7
(8,673 Views)
For this simple example you can just use a shift register to carry a boolean to indicate the message has been displayed. "AND" this with your comparator to determin if the message should be displayed. Don't forget to initialize the shift register.

EDIT: Sorry for the double answer. Written and posted during previous response.

Message Edited by smercurio_fc on 07-17-2007 10:18 AM

Message 3 of 7
(8,669 Views)
OK,

I changed your example. see if you understand the code.
Software developer
www.mcm-electronics.com





PORTUGAL
Download All
Message 4 of 7
(8,662 Views)
Hallo,

I would solve this task as follow:
1- create a VI (say Message.vi) in which the message well be appears.
2- in the main VI, depends on the condition you wants, you can call and run the VI created in the first step using :
          - OpenVIReference function
          - Run VI (Method for VI class)
          - Open Frontpanel (Properety Node)
3- done


I hope that you could understand me, the attched figure may describe much better than text.
Good luck!
0 Kudos
Message 5 of 7
(8,653 Views)
Amro,

That doesn't solve the problem. All you've done is replace the Express VI with a more complicated (and unnecessary) mechanism that calls a VI dynamically.
0 Kudos
Message 6 of 7
(8,638 Views)

@ smercurio_fc

what I understod from archangel_hp is that, he wants this message to be appeared one time (solved by earlier posts, johnsold, you, ...) but also he dont want to stop running the programm during this message appears. ... so may I understod something wrong.
any way my answer will helps if he wants to make the main programm (caller) continue running while this message.vi appears.
sorry if I did  misunderstand  the q.

0 Kudos
Message 7 of 7
(8,617 Views)