Scripts to restart DeltaV Operate OR restart operator workstation

I manage 42 Windows 7 R5500 DeltaV operator workstations (v11.3.1) and have noticed that they tend to perform better if the Windows environment is restarted on occasion.  Most of the time, the workstations will just run 24/7 until something crashes.  Then they get restarted.

I am working on writing 2 scripts: One that will restart the operator station when a button is clicked on a graphic and one that will kill Workspace.exe and start it again.  I have some .bat files and .vbs files that will do both, but so far have failed to successfully implement the code to execute these programs from DeltaV Operate.

Here's what I have written so far:

<code>

Private Sub bmpRestart_Click()
     On Error GoTo ErrHandler
     FrsRunTask “d:\Scripts\Restart.bat”, , True
End Sub

</code>

On running the script, I get a compile error.

Has anyone successfully run a .bat or .vbs file from the DeltaV Operate environment?  If so, how did your code look?

James Suisse

  • In addition to Youssefs comments.

    I note you have a Goto ErrHandler line but no ErrHandler: label

    That would likely be the reason for your compile error.

    Before the End Sub line, insert the following three lines of code

    Exit Sub

    ErrHandler:

       frsHandleError

  • In reply to Youssef.El-Bahtimy:

    Shell "cmd.exe /C shutdown /r /t 0 /f",vbHide

    But I would call Emerson Customer support to understand what is causing performance issues...