05-10-2010 09:15 AM
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
05-10-2010 10:51 AM
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
05-10-2010 01:07 PM
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.
05-10-2010 04:59 PM
thanks bob. thats great help. I will need to play around it to run the pump and the message from the same switch.
j
05-10-2010 05:10 PM
You can use a two button dialog if you need to act on OK or Cancel buttons.