Professional Documents
Culture Documents
Module 46 - PcVue As A Service
Module 46 - PcVue As A Service
Module 46 - PcVue As A Service
Module 46
PcVue as a service
Contents
1 Introduction 4
1.1 PcVue version 4
1.2 In this module you will learn 4
1.3 Files used in this module 4
1.4 Third party products used in this module 4
8 Resume 25
[A] Buttons to select PcVue’s startup mode. The default is As a desktop application.
[B] Buttons to manually start and stop PcVue as a service.
[C] When PcVue is running its processes are shown here.
[D] Startup arguments for PcVue. You will almost certainly need to change these
from the default. Configured using the General Properties tab.
[E] Startup type. Selection of the startup mode. It’s likely you will want to change
this to automatic when running PcVue as a service. Configured using the
Service Properties tab.
[F] The accounts used to run the SV Core Daemon service and the DCOM
Application. THESE MUST BE THE SAME.
Figure 2
Step 4. Configure the Startup type using the Services Properties tab. On the
final installation, it’s likely that you will choose automatic, but you might want
to use manual while developing the project. There are also other options. See
the help for more information.
Figure 3
Figure 4
Figure 5
Figure 6
Step 9. For the LOCAL SERVICE user you just added allow Local Launch and
Local Activation.
Figure 7
Exercise 1.
Configure PcVue to run as a service
Question?
When PcVue is running as a service you can see two processes in
the Core Management Console. One is PcVue, but what is the
other?
Answer
The other process is the HDS (Historic Data Server). When PcVue
runs as a service the HDS must also run as a service. This is taken
care of by the Core Management Console.
Figure 8
When choosing an alternative Service Account to run PcVue the main criteria is to use
an account with the least possible privileges. This is to ensure that the service is run
as securely as possible.
For further information see the help:
Deployment.Deploying server applications.Running the Supervisor as a
Windows service.Choosing a service account
4.4.2
Figure 9
Figure 10
Figure 11
For the AE the user must have Development rights (Administration tab in User
Profile)
Figure 12
Figure 13
6.1.1 Exercise
Exercise 2.
Try the Application Explorer with PcVue running as a service
Answer
In the AA/AE status bar bottom right.
Figure 14
Messages which appear in the Log Monitor are saved in the log file SV.LOG which can
be found in the Log Files folder of PcVue’s Bin (installation) folder.
Figure 15
Figure 16
Step 4. Add the Local Service account to the Launch and Activation
Permissions as follows:
a. Select Customize and click the Edit button
b. Add the user account Local Service.
Figure 17
If the Kepware OPC server service is running using the Local System account it
will connect to PcVue running either as a desktop application or a service.
If the Kepware OPC server service is running using the Local Service account it
will only connect to PcVue running as a service.
Exercise 3.
Install KEPServer EX5, configure its DCOM and configure PcVue
to connect and read some variables.