Interface to the pi system


Stopping Interface Running as a Service



Download 0.56 Mb.
Page13/14
Date31.07.2017
Size0.56 Mb.
#24976
1   ...   6   7   8   9   10   11   12   13   14

Stopping Interface Running as a Service


If the interface was installed a service, it can be stopped at any time from PI ICU, the services control panel or with the command:

blysem.exe –stop

The service can be removed by:



blysem.exe –remove

To stop the interface service with PI ICU, use the button on the PI ICU toolbar.

This section describes starting and stopping the interface once it has been installed as a service. See the UniInt Interface User Manual to run the interface interactively.

Buffering


For complete information on buffering, please refer to the PI API Installation Instruction.

PI Interface Node buffering consists of a buffering process which runs continuously on the local node, a PI API library whose calls can send data to this buffering process, and a utility program for examining the state of buffering and controlling the buffering process.



Note: Change the Local Security Policy on Windows XP.
1. Open “Administrative Tools” from the control panel.
2. Open “Local Security Policy” from administrative tools.
3. Browse to “Security Options” under “Local Policies.”
4. Double click on “System Objects: Default owner for objects created by members of the Administrators group.”
5. Change the dropdown from “Object Creator” to “Administrators group.”

The behavior of Bufserv should now be the same on Windows XP as it was for Windows and 2000.


Configuring Buffering with PI ICU (Windows)


Buffering is enabled through the PI Interface Configuration Utility’s Tools>API Buffering… menu. Unless buffering is explicitly enabled, the PI API will not buffer data, sending data directly to the home node.

The API Buffering… dialog allows the user to view and configure the parameters associated with the PI API Buffering (bufserv) process. The user can start and stop the PI API Buffering process from the Service tab:




Service Tab


The Service tab allows for some PI API Buffering service configuration. For further configuration changes, use the Services applet.
Service Name

The Service name displays the name of the PI API Buffering Service.
Display Name

The Display name displays the full name associated with the PI API Buffering service.
Log On As

Log on as indicates the Windows user account under which the PI API Buffering service is setup to start automatically on reboot, or manually.
Password

Password is the name of the password for the Windows user account entered in the Log on as: above.
Confirm password

Reenter the password to verify it has been typed correctly both times.
Dependencies

The Dependencies lists the Windows services on which the PI API Buffering service is dependent.
Dependent Services

The Dependent services area lists the Windows services that depend on bufserv to function correctly.
Start / Stop Service

The Start / Stop buttons allow for the PI API Buffering service to be started and stopped. If the service is not created, this box will show Not Installed.

After a change is made to any of the settings on the Settings tab, the OK button must be clicked to save these settings, and then the service must be stopped and restarted for the changes to be picked up by bufserv.


Service Startup Type

The Startup Type indicates whether the PI API Buffering service is setup to start automatically on reboot or manually on reboot, or is disabled.

  • If the Auto option is selected, the service will be installed to start automatically when the machine reboots.

  • If the Manual option is selected, the interface service will not start on reboot, but will require someone to manually start the service.

  • If the Disabled option is selected, the service will not start at all.

Generally, the PI API Buffering service is set to start automatically.
Create/Remove Service

The Create / Remove buttons allow for the creation or removal of the PI API Buffering service. Clicking the Create button will cause the service to be created using the Log on as and passwords given. Once the service is created the Start / Stop buttons will be activated.

Settings Tab


The Settings tab allows for configuration of the 7 configurable settings used by PI API Buffering. Default values are used if no other value is provided.


Enable Buffering

Enable the PI API Buffering feature.
Maximum File Size

Maximum buffer file size in kilobytes before buffering fails and discards events. Default value is 100,000. Range is 1 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Send Rate

Send rate is the time to wait between sending up to MAXTRANSFEROBJS to the server (milliseconds). Default value is 100. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Primary Memory Buffer Size

Primary memory buffer size is the size in bytes of the Primary memory buffer. Default value is 32768. Range is 64 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Secondary Memory Buffer Size

Secondary memory buffer size is the size in bytes of the Secondary memory buffer. Default value is 32768. Range is 64 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Max Transfer Objects

Max transfer objects is the maximum number of events to send between each SENDRATE pause. Default value is 500. Range is 1 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Pause Rate

When buffers are empty the buffering process will wait for this number of seconds before attempting to send more data to the home node. Default value is 2. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Retry Rate

When the buffering process discovers the home node is unavailable it will wait this number of seconds before attempting to reconnect. Default value is 120. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.


Max Theoretical Send Rate

This is the theoretical max send rate which is calculated like this:
max = MAXTRANSFEROBJS / SENDRATE * 1000
Default value is 5000. This value is automatically calculated for the user and can not be changed.

There are no additional steps needed to install buffering after installing the PI API. The delivered PI API library supports both buffered and un-buffered calls.




Download 0.56 Mb.

Share with your friends:
1   ...   6   7   8   9   10   11   12   13   14




The database is protected by copyright ©ininet.org 2024
send message

    Main page