Back

Topic

[KB1138]How to open a mimic into WebVue from a PcVue script

Tags: Webvue

3 years ago
By LM
Options
Print
Applies to:

PcVue 12 onwards


Summary:

If you want to open a mimic in WebVue from PcVue, either manually or automatically triggered by an event, it is now possible from version 12, thanks to the notion of scope.


Details:

You must use a shared variable to do this (Refer to PcVue help “understanding how to use the scope” for more information about variables scope).
Then you have to create an event action on this variable, but this action must be of session scope (Session open/close, user log in/log out).
In the basic sample below, the event is created in a Scada Basic script in the login function of the WebVue user profile.

 

Step 1: We create a bit variable named OpenAlarms
Bit variable creation

Step 2: We create a Scada Basic program

Program sample

Step 3: We configure the WebVue profile to start Main function of this program at logon

Profile Programs configuration

 When a user logs into WebVue using this profile and the variable goes from 0 to 1, then the Alarms mimic will be automatically opened in his WebVue session.


Created on: 15 Nov 2021 Last update: 30 May 2024