Write messages to the event log – Echelon LNS DDE Server User Manual

Page 37

Advertising
background image

applications, for example Microsoft Excel, this means prepending the computer name

to the application name as in the example,
=\\MYCOMPUTER\LNSDDE|'MyNet.Subsystem 1.DevNV'!'MyDev.NV2'. Always

specify the computer name when the LNS DDE Server is running as a service.

While the LNS DDE Server is running as a service, it is not possible to start the LNS

DDE Server as a normal desktop application. You also cannot start the LNS DDE
Server as a service if it is already running as a desktop application. In both cases,

the second instance of the server will discover that there is already another instance

of it that is running. When this happens, a message is displayed indicating only one
instance of the server is allowed. When running as a service, the LNS DDE Server

can be configured to interact with the user desktop, providing the same interface as

is available when running as a desktop application.

To configure the LNS DDE Server to run as a service, follow these steps:


1. Select

Server from the LNS DDE Server's Configure menu. The Server

Configuration Menu will open.

2. Check

the

Run as Windows NT Service option and click OK. The LNS DDE

Server will be installed as a service that will start up automatically when the
computer is restarted. To start running the LNS DDE Server as a service

immediately, continue to Step 3.


3. Close the current instance of the LNS DDE Server.


4. Open a DOS prompt and enter the following command:

NET START LNSDDE

To stop the LNS DDE Server from running as a Service without restarting the
PC, open a DOS prompt and enter the following command:


NET STOP LNSDDE

The Run as Windows NT Service option will be disabled if the current user does not

have privileges to control services on the PC (i.e. Users with Administrator privileges

or who have specifically been granted privileges to control services).

Write Messages to the Event Log

When the LNS DDE Server is running as a service, the messages that are otherwise
displayed in the logging pane may optionally be written to the Windows NT Event

Log. The contents of the Event Log may be viewed with the Event Viewer

application found in the Administrative Tools folder. By enabling this option the
server will write the same messages that it otherwise displays in the logging pane to

the Event Log.

Note:
This option is only available if the Run as Windows NT Service option is set,
and the LNS DDE Server is running on Windows XP, Windows 2000, or Windows NT

4.0.

LNS DDE Server User's Guide

3-5

Advertising