ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cancel message display

Hi,

    I am using labview 8.6. I am using a display message to user and i am using a D/I through the daq to activate it. the signal will remain at the daq but i want to be able to acknowledge (ie OK ) the message and for it to disappear even when the input is still high.

 

Backround: labview is controlling a transistor that controls 12V to a pump. when the system is pumping then message is also activated. The message is always active on the screen because the input is always high during the pump operation even when i ok or cancel.

 

how do i get the message to be acknowledged?

 

any help would be appreciated.

 

j

0 Kudos
Message 1 of 5
(3,231 Views)

You could use 2 lines, 1 for set the message status, 1 for acknowledge.

 

You have to ensure you don't send the message twice because you have already acknowledged it but not cleared it. - There is the potential of a race condition here if you are not careful with your logic - i.e. don't send a message when one is already flagged as sent.

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 2 of 5
(3,213 Views)

Try this vi.  If pump is off, no message is displayed.  If pump goes on, message is displayed.  Pressing OK button on message pop-up sets the Ack flag.  The message will no longer pop-up.  When pump goes off, Ack gets reset so that the next pump on will cause a message display.

 

Ack.png

 

- tbob

Inventor of the WORM Global
Message 3 of 5
(3,196 Views)

thanks bob. thats great help. I will need to play around it to run the pump and the message from the same switch.

 

j

0 Kudos
Message 4 of 5
(3,176 Views)

You can use a two button dialog if you need to act on OK or Cancel buttons.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(3,172 Views)