How to create a prompt before valve faceplate appears?

Hello guys, 

I have a project which they demand me to do a prompt for valve faceplate (as picture below). Example for the operator prompt  : " Do you wish to open / close this valve?". 

Does anyone have an idea how to do? Still under training for Deltav 13.3

Thanks.

Best Regards

3 Replies

  • You may use 'Msgbox' to prompt the required message. Based on the response from Msgbox, valve can be opened or closed.
    You may get the help of Msgbox syntax in Help file of Visual Basic in DeltaV Operate.

    Code will be something like below on Open button:

    Dim response As String
    response = MsgBox("Do you wish to open this valve?",vbOKOnly)
    If response = vbYes Then
    'Add code to open the valve
    End If

    Similar code to be added on Close button.

    Hope this helps.
  • In reply to Ashwini.ruikar:

    Ashwini is correct that the MsgBox function can be used for this.

    My question would be why this is a requirement. I come accross this frequently where a well meaning design engineer adds this as a requirement and it really annoys the Operations folk.

    When the are told its so the valve will not be opened accidenly. The response usually is I have to log onto the system, select the valve to open the faceplate, change the mode of the valve to AUTO and then click OPEN. Do I really have to confirm again that I want the valve open.

  • In reply to Ashwini.ruikar:

    When adding this please use the frsMsgBox function as this will take care of positioning the pop-up near the cursor. MsgBox will create a popup in the center of monitor 1 (except on systems where Hydravision is moving the dialog boxes), and on multi monitor systems this can be confusing.