PI Manual Logger
PI Manual Logger
Version 2010
OSIsoft, LLC
777 Davis St., Suite 250
San Leandro, CA 94577 USA
Tel: (01) 510-297-5800
Fax: (01) 510-357-8136
Web: http://www.osisoft.com
OSIsoft, the OSIsoft logo and logotype, PI Analytics, PI ProcessBook, PI DataLink, ProcessPoint, Analysis Framework, IT Monitor, MCN
Health Monitor, PI System, PI ActiveView, PI ACE, PI AlarmView, PI BatchView, PI Data Services, PI Manual Logger, PI ProfileView, PI
WebParts, ProTRAQ, RLINK, RtAnalytics, RtBaseline, RtPortal, RtPM, RtReports and RtWebParts are all trademarks of OSIsoft, LLC.
All other trademarks or trade names used herein are the property of their respective owners.
iv
Appendix C Tour Migration ......................................................................................................195
Back Up 1.4.x Tour Definitions.......................................................................................197
Migrate Tour Data ..........................................................................................................198
What Is Migrated ............................................................................................................200
What Is Not Migrated......................................................................................................200
Appendix E Install and Configure SQL Server 2008 / 2005 Express Edition.......................211
System Requirements ....................................................................................................211
Install SQL Server Express ............................................................................................212
Use SQL Server Management Studio Express..............................................................213
Remote Connection to SQL Server Express .................................................................214
Index ............................................................................................................................................239
Introduction
PI Manual Logger is a set of client applications for manually entering data to the PI Server.
Your facility may have a significant amount of data that cannot be collected automatically
from instrumentation and control systems. PI Manual Logger provides these alternative data
entry methods:
Enter data using PI Manual Logger data entry screens on a PC.
Enter data on a Microsoft Windows Mobile device, Windows XP/Vista Laptop or Tablet
PC. Users can review, edit, or approve the data on the PC before sending it to the PI
Server. Some reasons to use mobile devices to collect data are:
A plant or unit has older analog instruments and the cost of new cabling and
instrumentation is too high.
Users may need to collect extra readings in a unit or plant for short periods, such as a
month or two, and existing instrumentation does not allow them to collect the data.
Certain data (such as lab readings, cooling water temperatures, water tide levels, tank
gauges, and manual field valve positions) only need to be collected once a shift, once
a day, or once a week.
Import data from an XML file. Users can review, edit, and validate the data in PI Manual
Logger before sending it to the PI Server.
You can set up a PC as a data entry station using PI Manual Logger's built-in data entry
screens. You can also use the data entry screens for review. Lab data and plant log sheet data
entries are typically handled in this way.
The data collections are grouped in tours. Each tour contains a set of tags and tag groups that
define a set of data that will be collected manually.
You can collect data using mobile devices with PI Manual Logger Mobile (page 121). With
the barcode feature, you can use scanning devices to identify tags and enter data.
You can import tour run data from XML files to PI Manual Logger. You can then review,
edit, and validate them before sending them to the PI Server.
8
Other PI Manual Logger Features
10
Chapter 2
Installation
Installation Components
The PI Manual Logger set-up kits are distributed as two self-extracting executables: one for
the PC client and one for mobile devices.
PI Manual Logger consists of these components:
PI Manual Logger (PIML) on a PC (the PC Client). Use the PC Client to configure tours
and enter data collected from field equipment. Review, edit, or approve the data on the
PC before sending it to the PI Server.
PIML Mobile on a handheld device. Use PIML Mobile to collect data from field
equipment with a mobile device. You can transfer this data to the PC Client wirelessly if
the device supports a wireless connection or by cradling the device. Use the barcode
feature to scan equipment to identify tags and enter data.
PIML Windows Service. Use the Windows Service for the automatic update of queued
data and cached data on a server, typically the SQL server.
PIML Web services. Use this feature to transfer tours and tour runs wirelessly through
ASP.NET 2.0 Web services interface.
After completing the installation that meets your needs, there are post-installation procedures
that you must complete, section Post-Installation Procedures (page 18).
To uninstall PI Manual Logger, see section Uninstalling the Manual Logger (page 32).
12
Before You Start
System Prerequisites
Installation of an OSIsoft product relies on the presence of operating system components such
as the Microsoft .NET Framework. OSIsoft product set-up kits check for needed prerequisite
software during installation. If not found, the installation will stop and the user will be
prompted to install prerequisites. OSIsoft Prerequisite set-up kits are available for these target
operating system environments:
Windows XP and later (32-bit)
Windows XP and later (64-bit)
To determine which MS Operating System prerequisites you need, see the OSIsoft Technical
Support Prerequisites Kits product pages at this web site: OSIsoft Technical Support
Prerequisites Kits
(http://techsupport.osisoft.com/Products/Prerequisite+Kits/Prerequisite+Kits+Overview.htm).
PC Client Prerequisites
Minimum Software Requirements:
One of the following 32-bit only Windows systems:
Windows XP
Windows Server 2003
Windows Vista
Windows 7
Windows Server 2008
PI SDK 1.3.6.364 or higher
Server Prerequisites
Minimum Software Requirements:
PI Server version 3.4.363.68 or higher.
Internet Information Services (IIS) 5.0 or higher with ASP.NET 2.0 for wireless data
transfer from a mobile device through Web service support.
See the Windows help and administrator's guide for details on installing and configuring
IIS.
Note: You can install the Web server on a separate server from where the PI Manual
Logger PC Client or the PI Server is located.
Note: If you choose to use SQL Express, you need to install SQL Management Studio
on the client as well.
Refer to the PI Manual Logger Release Notes for the latest service pack requirements.
14
Install PI Manual Logger PC Client
Note: There are additional steps you must take after installing PI Manual Logger PC
Client. When the installation is finished, refer to section Post-Installation
Procedures (page 18) and follow the ones appropriate for your factory application.
Note: If you plan to use the PI Manual Logger Mobile feature, installation is described in
chapter Use PI Manual Logger Mobile (page 121).
16
Install PI Manual Logger MobilePC
Note: The database schema version of the Central PIML SQL Server Database
must match the MobilePC database schema version. To upgrade the Central
PIML SQL Server Database schema, connect directly to the Central PIML
SQL Server Database through the Tools > SQL Server Setup menu item
with db_owner privileges to upgrade the database schema. Then set the
MobilePC database connection back to the MobilePC database through the
Tools > SQL Server Setup menu item. Then, go back to step 1.
Download your existing PIML Users and Groups from your Central PIML SQL Server
database. Follow these steps:
1. Click MobilePC>MobilePC Data Transfer.
2. Click in the center Tool Strip and Select the Receive Options tab.
3. Verify the Update user tables in my MobilePC check box is selected.
4. Click OK to close the dialog box.
Post-Installation Procedures
After completing the installation that meets your needs, there are post-installation procedures
that you must complete. These procedures are described in this section.
Both the PI Manual Logger Windows client and the PI Manual Logger Windows Services use
the PI SDK to communicate with PI Servers. All users require read access to the PI Server.
The users who send tour run data to the PI Server require full write access to the relevant
tags. Therefore, a PI Mapping or a PI Trust connection is required.
To configure a PI Trust, refer to the documentation for the PI Trust Editor SMT3 Plug-In.
The name for the online help file is PI Trusts.chm. This help file provides details for
configuring server trust connections and adding and removing PI Servers from a server list.
Section PI Server Security (page 186) of this user guide also addresses PI Trusts.
PI Mapping requires PI Server version 3.4.380 or later and PI SDK 1.3.6 or later. OSIsoft
recommends using Windows security through PI Mappings. Windows security provides the
strongest authentication and full Windows account traceability in the PI Server log and audit
trail records. To configure a PI Mapping, refer to the PI Server documentation for details.
You can obtain the manual Configuring PI Server Security at the OSIsoft Download Center.
PI Manual Logger stores all configuration metadata and temporarily stores manually entered
data in a SQL Server database. If you select Database Files during installation, all template
database files are installed. These include template files for SQL Server 2008 / SQL Express,
SQL Server 2005 / SQL Express, and SQL Server 2000. Files ending with 2008 are for SQL
Server 2008. Files ending with 2000 are for SQL Server 2000. Files that do not end with 2000
postfix are templates for SQL Server 2005 and SQL Express. These files are located in the
PIPC\PimlWindows\Data folder. There are two files, one with an .LDF extension, one
with an .MDF extension.
Note: For information about upgrading your SQL Server database to SQL Server 2005,
access the Microsoft download web site and obtain this manual: SQL Server 2005
Upgrade Technical Reference Guide. To upgrade existing instances of SQL
Server 2000 and 2005 to SQL Server 2008 you may want to obtain the SQL
Server 2008 Upgrade Technical Reference Guide at the Microsoft download web
site.
18
Post-Installation Procedures
Attaching Template Files for SQL Server 2008 / 2005 (SQL Express)
A blank database template, including a file with the extension .MDF and a file with the
extension .LDF, is included in the installation kit and must be attached to the SQL
2008/2005 or SQL Express database server. The database template files reside in the
PIPC\PimlWindows\Data folder where PimlWindows.mdf and
PimlWindows_log.ldf are template files for SQL Server 2005 and
PimlWindow2008.mdf and PimlWindows2008_log.ldf are for SQL Server 2008.
Before attaching the appropriate database template for your SQL Server version, you must
copy the Manual Logger template database files to a secure location, for example on the SQL
Server. In addition, make sure the SQL Server account has Windows read/write permission to
these database files; otherwise an error message may appear. For example, you can copy the
database files to \Program Files\Microsoft SQL Server\MSSQL.1\Data so
that the SQL Server has full permission to read and write files under this folder.
To attach the database, follow these steps:
1. For SQL Server 2008 / 2005, run SQL Server Management Studio.
For SQL Express run the SQL Server Management Studio Express. Note that you must
install Management Studio Express separately from SQL Express.
2. Right-click Databases, as shown in the following figure, and select Attach.
3. In the Attach Databases dialog box that appears, click Add under the Databases to
attach field.
4. Browse to the database template file. The default location is
PIPC\PimlWindows\Data folder. Be sure that the template files have been copied
from this default location to a different location as described in the introductory
paragraph preceding this procedure.
5. Select the PimlWindows.mdf and click OK. Verify the Current File Path for both the
Data and Log File Types in the Database Details section of the Attach Databases dialog
box.
6. In the Attach Databases dialog box, click OK to attach the database. The database
appears in the SQL Server Management Studio tree as shown in the following figure.
7. Add the PI Manual Logger users. Make sure that the Default Schema for these users is set
to dbo. Note that the Default Schema field cannot be populated for a Windows group;
'dbo' will be assumed.
To verify SQL Server security permissions, follow these steps.
1. In the tree, expand Security.
2. Select Logins, right-click the logon account, and select Properties.
3. Select the User mapping page.
4. Map the user appropriately for your system. For additional help, refer to your SQL Server
documentation.
5. Close the SQL Server Management Studio/Express.
20
Post-Installation Procedures
3. In the Attach Database dialog box that appears, click to locate the database that you
want to attach.
22
Post-Installation Procedures
24
Post-Installation Procedures
3. Double-click Setup Connection. The Database Connection Setup dialog box appears,
as shown in the following figure.
4. In the SQL Server Name field, enter the computer name and SQL Server Name
(Instance Name), if necessary. In the figure, the computer name is Weathertop. Since this
example uses SQLExpress, the default Instance Name also appears: SQLExpress. In most
cases, the Instance Name can be omitted for SQL Server 2008 / 2005.
5. Make sure the Database Name is the same database name that appears in Management
Studio. Note that the name is not case sensitive. In addition, verify that the SQL Server
name matches the name at the top of the Management Studio tree. Refer to the following
figure.
6. If Windows Authentication mode is configured for your SQL Server instance, then check
the Use my Windows credentials check box in PI Manual Logger’s Database
Connection Setup dialog box. Microsoft recommends using Windows Authentication
when possible. Otherwise, deselect this check box and provide the appropriate SQL
Server login information.
7. Click Test to verify the connection and click OK in the message box that appears.
8. Click Apply to close the PI Manual Configuration Tools dialog box.
26
Post-Installation Procedures
The PI Manual Logger Windows Services uses the PI SDK to communicate with PI Servers.
All users require read access to the PI Server. The users who send tour run data to the PI
Server require full write access to the relevant tags. Therefore, a PI Mapping or a PI Trust
connection is required. Note that PIML Windows Services needs to be installed and running
only once for the PIML SQL Server Database. If you install it on all PIML PC Client
computers, the PIML Windows Services will be creating many unnecessary transactions.
To configure a PI Trust, refer to the documentation for the PI Trust Editor SMT3 Plug-In.
The name for the online help file is PI Trusts.chm. This help file provides details for
configuring server trust connections and adding and removing PI Servers from a server list.
Section PI Server Security (page 186) of this user guide also addresses PI Trusts.
PI Mapping requires PI Server version 3.4.380 or later and PI SDK 1.3.6 or later. OSIsoft
recommends using Windows security through PI Mappings. Windows security provides the
strongest authentication and full Windows account traceability in the PI Server log and audit
trail records. To configure a PI Mapping, refer to the PI Server documentation for details.
You can obtain the manual Configuring PI Server Security at the OSIsoft Download Center.
Open the Windows Computer Management utility to configure PI Manual Logger
Windows Services. Locate the service as shown in the following figure.
Right-click the PI Manual Logger Windows Services, select Properties to open the
properties dialog box. Then select the Log On tab, as shown below.
Specify the security context for the services to run. By default, the service runs under the
Local System account.
Note: If you are using a Local System account for the Windows Services, make sure
that you have read/write data access permissions to the SQL Server database.
For best results, use a more secure account, such as the Network Service
account, instead of the Local System account to run the Windows Services.
28
Post-Installation Procedures
The PI Manual Logger Windows Services logs its progress information in the Windows
Event Log. Use the Windows Event Log viewer to check the status of the PI Manual Logger
Windows Services, as shown in the following figure.
If you are running the Windows Services on a system where Manual Logger PC is not
installed, you must configure the SQL Server database connection:
Run pimltools.exe and click the Database tab.
If you have multiple SQL Server databases, you must install PI Manual Logger Windows
Services on separate systems and configure the SQL Server connection on each system to a
different database. You cannot run multiple instances of PI Manual Logger Windows
Services on the same system.
Configure the Web service settings before using PI Manual Logger Web Services to transfer
data between clients and the Web server when using wireless transfer on a mobile device.
If PI Manual Logger Web Services is installed, configure the security so that users have write
and read data access to the PI Manual Logger database. Choose from these user account
options:
Default ASP.NET user (Computer\ASPNET)
Windows authenticated user
SQL Server authenticated user
To verify SQL Server security permissions, follow these steps.
1. For SQL Server 2008 / 2005 / SQL Express, run SQL Server Management
Studio/Express. For SQL Server 2000 run SQL Server Enterprise Manager.
2. In the tree, expand Security.
3. Select Logins, right-click the logon account, and select Properties.
4. For SQL Server 2008 / 2005 / Express select the User mapping page. For SQL Server
2000 select the Database Access tab.
5. Map the user appropriately for your system. For additional help, refer to your SQL Server
documentation.
To configure the SQL Server database connection follow the steps below.
1. Open the PI Manual Logger Configuration Tools by double-clicking PimlTools.exe
in the PIPC\PimlWebServices folder.
NOTE: This is not the same Configuration Tool that the PI Manual Logger PC uses,
which is launched from the Start menu.
30
Post-Installation Procedures
7. Click Test to verify the connection and click OK in the message box that appears.
8. Click Apply to close the PI Manual Configuration Tools dialog box.
Use the Internet Information Services (IIS) Manager to configure the PI Manual Logger Web
Services security settings. Refer to Appendix Custom Web Service Access for detailed
procedures for this configuration. Setup differs, depending on your operating system.
Configure IIS in Windows XP/2003 (page 202).
Configure IIS in Windows Vista/Windows 7 (page 204).
Configure IIS in Windows Server 2008 (page 207).
Note: When you uninstall PI Manual Logger, all XML files and database files (MDF and
LDF) are renamed as <CurrentName>.previous, thereby preserving your data.
To detach a SQL Server 2008 / 2005 (Express) database follow these steps.
1. Run SQL Server Management Studio (Express).
2. In the Connect to Server dialog box that appears, specify the appropriate SQL Server
name and login information.
3. In the Object Explorer, expand the Databases item and select the PI Manual Logger
database.
32
Uninstall PI Manual Logger
4. Right-click the PimlWindows database and select Tasks > Detach. The Detach
Database dialog box appears.
Note: The Detach Database menu item is only visible if you have server or
database administrator privileges.
5. The Status column displays the current database state (either Ready or Not Ready).
Note: If the status is Not Ready, the Message column displays a short message that
is a hyperlink to more detailed information. To obtain more information, click
the Message hyperlink.
6. Be sure to select the Drop Connections check box to allow SQL Server Management
Studio (Express) to drop the connections automatically or close the applications
manually. For more information, click Help in the toolbar to view the Microsoft Detach
Database General Help page.
7. Click OK when you are ready to detach the database. Detaching the database does not
delete your database files.
34
Uninstall PI Manual Logger
4. Right-click the PimlWindows database and select All Tasks > Detach Database. The
Detach Database dialog box opens.
Note: The Detach Database menu item is only visible if you are a member of the
sysadmin fixed server role.
5. The Database status group displays the current database state. Any open connections can
be closed at this point by clicking Clear or by closing the applications manually. The
database can only be detached after the STATUS displays: The database is ready to be
detached.
6. Click OK when you are ready to detach the database. Detaching the database does not
delete your database files.
See User Database Management (page 181) for details on users and permissions
management.
The Getting Started dialog box appears when you start PI Manual Logger. This dialog box
provides shortcuts to some common tasks, including: managing tours and tour runs, entering
data, transferring data between PC and a docked device, and managing PI Manual Logger
user accounts and user groups.
The status bar at the bottom of the main window shows the current PI Manual Logger user,
current SQL Server database, the current connected PI Server, any status messages, and the
current version of the main PI Manual Logger application. Click the information on the status
bar to change settings or show details.
Menu Bar
Use the File menu to manage the user database, view the message log, maintain cached PI
data, change your user password, switch users, manage work requests, and exit the
application.
Use the Tours menu to create and manage tours and tour runs, import tour runs and tour data,
and enter data.
Use the Mobile Devices menu to initialize data transfers between mobile devices and the host
(PC or server), configure the way mobile devices synchronize, initialize device databases, and
download the user database from the PI Server to a mobile device.
Use the Tools menu to set up user preferences and perform administrative tasks, such as
change the PI Server, change the SQL Server database, and set global options.
38
Start the PC Client
Use the Offline menu to specify the SQL Server and test the connection. select offline
transfer options to a mobile device, and to conduct tour runs while not connected to the PI
server.
Use the Window menu to select a PIML window in which to work, if more than one window
is open.
Use the Help menu to access the PI Manual Logger help system and view system
information.
Note: To access these menus, the Getting Started dialog box must be closed.
Menu Shortcuts
The following table describes the options on the Shortcut Menu that appear when you click
items on the main Menu.
40
Menu Shortcuts
42
Configure Global Options
On the Message Logging tab, specify the type of events that the system enters in the PI
Manual Logger logs.
On the Security Settings tab, specify or change the PI Manual Logger user group that has
administrative privileges in PI Manual Logger. You can also allow or disallow users to delete
PI data in PI Manual Logger.
Caution: If you are a member of the current Admin User group and you change the
administrative user group to a group you do not belong to, you can no longer
access the Global Options dialog box.
44
Specify User Preferences
On the Trending Options tab, adjust your default trending time range for all trends inside the
application.
Note: You can adjust the trend time range for an individual trend with the pop-up menu
of that trend. See the View the History of a Tour Run (page 117) section for details
about how to adjust the display time range for an existing trend.
Click Advanced to open the PI Connection Manager dialog box. Use this dialog box to add
and remove PI Servers in your PI Server table.
CAUTION: The changes you make to the targeting PI Server affect all PI Manual
Logger Clients and PI Manual Logger user sessions. This has the potential risk of
causing other users who are currently logged in to lose their point data. OSIsoft
recommends that you use separate PI Manual Logger databases if you have
multiple PI Servers and multiple PI Manual Logger clients.
46
Tutorial
Tutorial
The following are PI Manual Logger exercises. Some of the exercises cannot be completed
unless you have completed the previous ones.
Solutions are provided at the end of each exercise. All the material, including data files
needed to complete some of the exercises, can be found at Prerequisite Kits
(http://techsupport.osisoft.com/Products/Prerequisite+Kits/Prerequisite+Kits+Overview.htm). Select
Training Materials from the Download Center.
These exercises use the Microsoft Windows Mobile 5.0 Emulator and the Pocket PC image
with the PI Manual Logger Mobile installed on it. The PI Manual Logger client application
uses Microsoft SQL Server Express.
Preparation
3. In the Permission Groups panel, click . The New Permission Group dialog box
appears.
4. Enter Operators in the Group Name field. An entry for the Description field is
optional.
5. Click OK to save the new group and close the dialog box.
6. In the Users panel, click . The New User dialog box appears.
7. Enter DataCollector in the User Name field. An entry for the Description field is
optional.
8. Enter a password and confirm it. Then click OK to save the user and close the dialog
box. The User Database Management dialog box appears as shown below.
At this point you need to add the DataCollector user to the Operators group.
1. In the Permission Groups panel, double-click the Operators group. The Group
Properties dialog box appears.
2. Click the User Membership tab. Then click Add.
3. Select the DataCollector user and click OK. The DataCollector user appears as a
member as shown in the following figure.
48
Tutorial
Create a Tour
Objectives
Create a tour in the PI Manual Logger client for later data collection. This assumes that tags
are created on the PI Server, a valid PI Trust or PI Mapping exists, and users are configured
in PI Manual Logger in order to collect data and perform these exercises.
Problem Description
You must set up a tour so that one of your operators can collect data every hour. Establish a
tour for the DataCollector user to gather values.
Approach
You must collect values periodically for the following tags:
PIML-Float1, PIML-Float2, PIML-Float3, PIML-Float4, PIML-Float5, PIML-Float6
PIML-String1, PIML-String2, PIML-String3, PIML-String4, PIML-String5, PIML-
String6
These tags were created on your PI Server by your PI System Administrator. Refer to the
important note before this exercise for tag and user definitions.
Open the PI Manual Logger application and start a New Tour. Call the tour Hourly Tour.
The PIMLADMINS will have Full Permissions and the Operators will be the Data Entry Only
Group.
Add the tags listed above to the tour definition.
Step-by-Step Solution
Be sure you follow the procedures listed in Preparation (page 47) before starting.
1. Start PI Manual Logger.
2. Log in using the PI Manual Logger Administrator account (userid piml and password
piml by default).
3. Select Tours > New Tour (Or press ALT+F5.)
4. Click Next.
5. Enter the tour name Hourly Tour. The description is optional. Then click Next.
6. In the Full Permission Group select PIMLADMINS.
7. In the Data Entry Only Group select Operators. Then click Next.
8. Click Add.
9. In the Tag Mask field enter PIML- and click Search.
10. Click Select All and click OK.
11. Click Next.
12. Click Finish.
In this exercise you download a tour to a mobile device and execute a tour run from the
device.
Objectives
You want to download your tour from the PI Manual Logger application to your PI Manual
Logger Mobile database on your handheld device. Then you run the tour on the hand-held
device.
Problem Description
You have defined a tour and want to download it to your PI Manual Logger Mobile database
on a handheld device. This example assumes you have gone through the installation of the
software and the Mobile Data Transfer Wizard to set up the device and its database. You
want to collect data with the hand-held device.
Approach
Make sure PI Manual Logger is started on your PC. Make sure your handheld device is
running and cradled but not running PI Manual Logger Mobile. Open Microsoft ActiveSync
and connect.
Download the database from the PC application using Device Data Transfer feature on the
PC. Select Hourly Tour and move it from the pane on the left (PC Tour List) to the pane on
the right (Device Tour List). Click . If the transfer fails, repeat the process.
When the message "Done" appears click Close. Your tour is loaded to the hand-held device
and is ready for a new tour run.
On your hand-held device, open PI Manual Logger. Log in using the DataCollector user.
Click to start a new tour run. Use your current time as the run time. Enter data for each of
the tags (six are floating point numbers and six are string values).
50
Tutorial
Step-by-Step Solution
The general procedure consists of these steps:
1. Download the tour.
2. Run the tour.
3. Upload the data to the PC.
Objectives
Learn how to create an approval workflow for your collected data.
Problem Description
You have a group of operators who collect data with a handheld device, and you want to
review the data before sending it to the PI Server. You need to set up your tours so that a data
collection group has the ability to collect values but not write data to the PI Server. You use
the piml user to approve and archive the data.
Approach
On the PC you need to modify the Tour Options setting so that the Auto Send Data to PI
check box is cleared, and the Manual data must be submitted for approval check box is
selected. After you save that change, update the tour on the device by transferring the tour
again. Then execute a tour run on the handheld device and transfer the data to the PC. The
status should read Completed.
Open the Tour Run List window on the PC. Select the tour in the Tour List (upper) panel
and then double-click the specific run in the Tour Run List (lower) panel. Review the tour run
and the values collected. You can modify or remove any bad values. You can also add or edit
any comments. Click In the lower bar to archive the values.
52
Tutorial
Step-by-Step Solution
1. Open PI Manual Logger on your PC.
2. Log in using the PI Manual Logger Administrator account (userid piml and password
piml by default).
3. In the Tour List pane, double-click the tour that contains that data you want to approve.
4. Click Tour Options.
5. In the General tab:
Select the Manual data must be submitted for approval check box.
Clear the Data Entry Only Group can send data to PI check box.
Clear the Auto Send Data to PI check box.
6. Click OK.
7. Transfer the updated tour to the device and execute a tour run as the DataCollector user.
8. Transfer the collected data back to the PC. See section Run a Tour in PI Manual Logger
Mobile (page 50).
9. Select Tour Run List on the PC and select the tour in the Tour List (upper) panel.
10. Double-click the tour run in the Tour Run List (lower panel) that you need to review. The
status will read Completed.
11. Click Yes to review the tour.
12. Select the Data Entry Sheet tab at the top and review the numbers. Make necessary
changes and/or add a comment.
To create/edit tours, you must be a member of the PIMLAdmins group. Otherwise, the Tour
Configuration dialog box opens in read-only mode.
The Tour List toolbar options are listed in the table below.
Tool Description
Delete the selected tour. If you click Yes at the prompt, PI Manual Logger
deletes all tags in the tour, their associated attributes, and the tour name from
the PI Manual Logger database.
56
Create a Tour
Create a Tour
To create/edit tours, you must be a member of the PIMLAdmins group. To create a new tour:
1. Click .
2. The PIML Tour Creation Wizard appears. You can either create the tour using this
wizard, or check Skip this wizard and click Next to open the New Tour dialog box.
If you skip the wizard and proceed to the New Tour dialog box, complete the boxes in
the dialog box to define the tour.
Configure a Tour
Open a tour from the Tour List dialog box to view its configuration in the Tour
Configuration dialog box.
The Tour Configuration dialog box consists of four panes: the central pane with four tabs
for tag configuration, the Tour Info pane, the Tag Attributes pane, and the Tag List View
pane. You can close the Tour Info pane, and close or change the width of the Tag Attributes
and Tag List View panes. To re-display these panes, click . For more information about
the Tour Configuration dialog box, see section Tour Definition Panes (page 58).
In the Tour Info pane, view and manage tour information, including the tour name and
description and these additional features:
User permission groups, section Manage the User Database (page 181).
Comments, section Comments (page 69).
Schedules, section Define Data Collection Scheduling (page 72).
Configure tags for collection in the central pane with four tabs.
Details for the selected tag in the central pane appear in the Tag Attributes pane.
A list of tags currently included in the tour appears in the Tag List View pane.
58
Configure a Tour
The following table lists the functions that are available in the Tour Configuration dialog
box toolbar.
Function Description
Go to the first tag in the sequence.
Reorder tags.
Function Description
Add new PI tags Opens the Tag Search dialog box to select tags to add to the
tour. See Section Add Tags to a Group (page 88).
Show Trend Opens the PI Manual Logging Trend dialog box to display
trend information for the selected tag.
Collapse all Displays only the root tags and groups in the tree.
nodes
Expand all nodes Displays all groups and tags in the tree.
Tag Group Editor Opens the Tag Group Editor dialog box for editing/creating tag
groups.
Reorder Opens the Reorder Tag Sequence dialog box where you can
rearrange the order of tags in groups.
Import from Opens the Please Select a PI Module dialog box where you
Module can select modules to import.
Database
Import from a Opens the Pick a Tour dialog box where you can select a tour
tour of tags to import into the current list.
Save as a new Saves the current tour under a new name.
tour
Delete this node. Deletes the currently selected tag/group.
60
Configure a Tour
Use the Tour Options dialog box to specify a tour's edit options during data entry. To open
this dialog box, click Tour Options in the Tour Info pane.
Note: If the Data Entry Only group and Full Access group are identical, this option has
no effect. You must deselect this option in order for the Manual Data must be
submitted for approval option to be effective.
Notes: In order for this option to be effective, PI Manual Logger AutoSync must not be
configured.
If you have selected the Manual Data must be submitted for approval option, only
tours that are in Approved status will be automatically sent to the PI Server.
62
Configure a Tour
Note: This option may be useful when you enter values for lab samples. For example,
the ASTM lab analysis for the Kerosene cut in a Crude unit has multiple data
values, but all with the same timestamp.
Note: If no timestamp is entered, the default is the tour timestamp. The timestamp is
populated when you navigate to the next tag or close the Data Entry screen.
Note: The visual indication is a color change to the tag's row on the Data Entry Sheet
page for the tour run.
For details about using limit checking for data validation, see Set Data Validation Limits
(page 82).
Note: Regardless of which limit checking levels you select in the Tour Options dialog
box, limit violation is always recorded in the auditing and message log system in
PI Manual Logger.
Notes: For a fully barcode-based system, where tags are aliased with barcodes, you can
set up a single tour to include all tags for which data is to be collected and data
entered without following the sequence in which tags are configured in the tour.
64
Configure a Tour
Note: During data entry, users must enter a number for the sixteenth or eighth value,
even if it is 0 (zero). For example, for a measurement of exactly 7 feet 6 inches,
enter 7.6.0.
Configure Tags
When a tag is selected in the central pane of the Tag Configuration dialog box, you can
configure the attributes for that tag. These attributes include a comment tag, conditional
manual data entry specifications, tag scheduling, and so on. For information about creating
tags manually, see Appendix Manual Creation of PI Tags (page 229).
Select Tags
You can include a tag only once in a tour, but you can use the same tag in more than one tour.
You can enter only one value for a tag during a single tour run.
To select the tags to collect manually:
1. In the central pane of the Tour Configuration dialog box, select the Tag Configuration
tab.
2. Click or click Add by the Tag Name box. The Tag Search dialog box appears.
Note: PI Manual Logger supports the following Point Types: Float16, Float32,
Float64, Int16, Int32, Digital, and String. Timestamp is also supported, but it
cannot be trended.
66
Configure Tags
Note: Only the user sending tour run data to the PI Server must have data write
access to the tag. Data entry users only need read access. For details, see
section "Manage the User Database (page 181)."
4. Double-click the tag or tags that you want to select in the list, or select one or more tag(s)
and click OK.
If your mobile device is equipped with a barcode scanner, you can use a barcode as an alias
for a tag name. You can also assign a barcode to a tag group (such as a piece of equipment,
an area, or a building) by assigning it to the first tag in the group.
To configure PI Manual Logger to collect tag group data when a barcode is scanned, enter a
barcode in the Barcode box for the first tag (by tag sequence) in the group on the Tag
Configuration dialog box.
During data entry on a PC, tags are grouped by the selected tag group when you use the tag
group view.
When you scan a barcode, the appropriate data entry screen appears on the mobile device.
After you enter data, the data entry screens for the remaining tags appear in sequence for that
tag group.
You can use the Tag Group and Barcode box to group tags in a tour even if you are not
actually using barcodes or a scanner.
For example, suppose you are collecting tags in buildings A, B, C, and D. You can group the
tags so that when you enter A at the Barcode/Tag Group prompt, tags for building A are
displayed. After you follow the sequence of tags for building A, PI Manual Logger prompts
you for another barcode or tag group. When prompted for a barcode, you can enter another
building letter and go to the first tag in that group.
There is no limit to the number of groups or the number of tags within a group.
For details about configuring behavior for barcodes, see section Barcode Tour Options (page
64).
For details about using barcodes with mobile devices, see section Scan Barcodes with Mobile
Devices (page 150).
Barcode Overview
Use the Barcode Overview feature to review all barcodes defined in a tour, or to print out
one of the predefined types of barcodes. To open the Barcode Overview dialog box,
click and select Barcodes Overview, as shown in the following figure.
In the Tour Barcode Overview dialog box, the available barcode types are 39 and 128, with
128 being the default. Click Barcode Type to specify the appropriate type for auto-
generation and/or printing purposes.
Click Print Barcodes>Print, as shown in the following figure, to print barcodes defined in
the tour. After making the selection to print the barcodes with a readable barcode string or
without the string, a Page Setup dialog box prompts you to select your paper, orientation,
and margin specifications. After making these selections, click OK. A Print preview
window appears and you can view the page layout and print.
68
Comments
Comments
A comment allows the user, and in certain situations, requires the user to enter a string
comment detailing extra information about the value. For example, if a value is outside limits,
the tour creator can require a comment that explains why.
Comment Types
You can enter comments for the tag value being collected, a group, or the whole tour. Use
comments to capture operator comments as part of the manual data collection. Comments are
stored in either or both of these two ways:
PI Annotations
Comment tags - String PI tags
All tag comments are stored in PI Annotations for the entered value. It is recommended that
you choose this method for tags since you do not have to configure a special PI String tag to
hold the comment.
If you use comment tags, such as the comment tags in PI Manual Logger 1.x versions-you,
can associate a PI String tag with a tag, tag group, or a whole tour. Comment tags associated
with tour tags have the same timestamp as the process value tag. Tour comments and group
comments are not sent to the PI Server if they are not associated with a PI String tag through
the Comment Tag association. Tour and group comment tags have the same timestamp as the
Tour Run timestamp.
Note: If you configure a comment tag for a process value tag, the comment is stored in
the comment tag, as well as PI Annotations associated with the entered value.
During data entry, PI Manual Logger stores comments in the PI Manual Logger database.
After the comments and values are sent to the targeted PI Server, you can set up reports in
Excel (using PI DataLink or other PI client tools) to retrieve process values and the associated
comment entries from the PI Server.
Comment Templates
You can pre-define comments, which users can use during data entry. Pre-defined comments
are called comment templates.
To view or modify the list of pre-defined comment templates, click Tools>Comment
Templates. The Comment Template Builder dialog box appears.
Comment templates are globally accessible. All tours in the same database share the same set
of comment templates.
You can also import existing PI Reason Codes into comment templates.
After you select a node in the reason tree, the node is imported as the template name, and all
its direct sub-nodes are imported as template entries.
70
Comments
The PI Reason Tree can be shared among multiple PI applications that you can edit in PI
SMT version 3.1.2.1 or later.
4. If you have selected Clock Scheduling, click Set. The Recurrence Clock Scheduling
dialog box appears. Set the recurrence pattern for the selected tag, the tag group, or the
entire tour. You can set the recurrence pattern using one of five time spans: hourly, daily,
weekly, monthly, or yearly. Examples of recurrence patterns follow this procedure.
72
Define Data Collection Scheduling
5. After you set the recurrence pattern, click OK to close the Recurrence Clock
Scheduling dialog box.
The Parsed Spec section shows the user-defined recurrence clock scheduling information
in machine-readable text format.
The Descriptions section shows a brief description of the specified recurrence clock
scheduling.
Example: You want to schedule a group of tags to be collected every 4 days on both the day
and night shift on that first day. Given that a tag cannot be included more than once in a
single tour, there are two ways to handle this.
Method 1: Create two separate tours, one for the morning shift and one for the evening shift.
Advantage: It is easier to visibly recognize the hours in which tags need to be collected.
Disadvantage: This can lead to schedules, tag configuration, etc. getting out of sync,
although this may be a desired feature.
Method 2: Use CMDE with Clock Scheduling to control it.
Advantage: You need to maintain only one tour.
Disadvantage: This may appear to be slightly more confusing at first.
To do this scheduling with CMDE, follow these two steps:
1. For the group, define the following CMDE (Conditional Specification):
if( ((TourTime() - "January 1, 2009") % 4) = 0,
ClockSchedule(), Skip())
Note 1: Instead of January 1, 2009, use the date from which the four-day shifts start.
Note 2: The '%' is a Modulus function, which means in this case, that every 4 days,
starting from January 1, 2009, check the clock scheduling to see if the tags are due.
2. Define Clock Scheduling (CS) for the tour along these lines:
Starts from: 1/1/2009 at 4:00:00 AM
Ends on: 8:00:00 AM
Recurrence Pattern: Hourly
Every: 12 hours
Note 1: This Clock Scheduling means that between the hours of 4am-8am and 4pm-8pm,
the tags are to be collected.
The use of CMDE in conjunction with the Clock Scheduling results in the tags within the
group being collected between the hours of 4am-8am and 4pm-8pm every 4th day, starting
from January 1, 2009.
Weekly Scheduling: On weekly schedules, you can specify the week days to collect the data.
You can also specify the weekly frequency of such collection.
Example: You want data to be collected from a point, on Monday and Friday, starting at 6:00
a.m. You give the operator three hours, to collect the data.
Recurrence pattern: weekly
Starts from: 6:00:00 a.m.
Ends on: 9:00:00 a.m.
Recurs every: 1 week
Week days: Monday and Friday.
74
Define Data Collection Scheduling
Monthly Scheduling: On monthly schedules, you can specify your collection schedules in
two ways: By Days or By Weekdays. When By Days is selected, you can specify the
numeric days in the month to collect the data. When By Weekdays is selected, you can
specify the weekdays in the month the data is due for collection. You can also specify the
monthly frequency for both types of monthly scheduling.
Example 1: You want data to be collected from a point, on the first and the 15th day of each
month, starting at 6:00 a.m. You give the operator three hours, to collect the data.
Recurrence pattern: monthly.
Starts from: 6:00:00 a.m.
Ends On: 9:00:00 a.m.
Select the By Days option and choose Day 1 and Day15. To do this every month, in
the Of Every Month field, enter 1.
Example 2: You want data to be collected from a point, on the first Monday and the last
Wednesday of each month, starting at 6:00 a.m. You give the operator three hours, to collect
the data.
Recurrence pattern: monthly.
Starts from: 6:00:00 a.m.
Ends On: 9:00:00 a.m.
Select the By Week Days option. In the The field, select first and Monday and click
. Then repeat to add the last Wednesday. To do this every month, in the Of Every
Month field, enter 1. Click to remove a weekday item from the list.
Yearly Scheduling: Yearly schedules are similar to monthly schedules: you can specify your
collection schedules By Days or By Weekdays. When By Days is selected, you can specify
which days in the month the data is due for collection. When By Weekdays is selected, you
can choose a weekday specification and add it to the specification list by clicking the Add
button . Click the Delete button to remove the selected weekday item from the
specification list. You can also specify the yearly frequency for both types of yearly
scheduling.
The following examples show how tag scheduling priority affects when tag data is due. Note
that tags have priority over tag groups with respect to clock scheduling.
Example 1:
Tour Scheduling Definition:
Group1 - Weekly on Mondays, Wednesdays, and Fridays between 4-6pm
Tag1a - None
Tag1b - Daily between 4-6pm
Group2 - Weekly on Tuesdays between 4-6pm
Tag2a - None
Tag2b - None
76
Define Data Collection Scheduling
The Tour Scheduling Overview dialog box shows all the defined tour, tag group, and tag
schedules in the selected tour. In this dialog box, you can view, modify, and delete schedules.
To open the Tour Scheduling Overview dialog box, click > Schedule Overview.
TARGET: Too much H2S in the lean leads to sour sales gas. Too
little H2S leads to corrosion in the hot lean sections.
78
Insert Operator Instructions
It is possible to insert a hyperlink to a file or an HTTP web site or an FTP site in the operator
instructions. Multiple hyperlinks can appear in operator instructions used for tour runs
executed on a PC, and the operator can choose the hyperlink to open. Operator instructions
for mobile devices can contain only one working hyperlink.
When the operator executing a tour run selects a tag with operator instructions that contain a
hyperlink, the following actions take place:
On a PC: the operator instructions are always visible in the window. The operator can
choose from the hyperlinks, if there are more than one, and open it. Internet Explorer
opens automatically when the link is clicked.
On a mobile device: If the Tour Option "Automatic pop up display of Operator
Instructions..." is True, the operator instructions open automatically and display the
hyperlink. The operator can do the following:
Click Go to Link, accessing the web site if the device has internet access, or opening
the file if the file exists on the device.
Click Cancel if it is not necessary to view the hyperlink.
Note: If the operator enters a value for a tag and then accesses the tag a second
time, the operator instructions do not open automatically. However, the
operator can click to display them again.
Use the standard syntax of a Universe Resource Identifier (URI) for a hyperlink. Refer to the
Uniform Resource Identifier: Generic Syntax
(http://www.ietf.org/rfc/rfc3986.txt) web site for additional information
about syntax.
The following are syntax examples:
http://<host_name> . Example: http://osisoft.com This hyperlink
accesses the OSIsoft main web site.
ftp://ftp.<server_address> Example: ftp://ftp.gimp.org. This
hyperlink accesses the currently valid FTP site at gimp.org.
\<path\file_name> or file:\\\<path\file_name>
Examples: \MY DOCUMENTS\my_file.txt. This hyperlink opens the file called
my_file.txt located in the My Documents folder of the mobile device.
\MY DOCUMENTS\Business\my_file.txt. This hyperlink opens the file called
my_file.txt located in the My Documents\Business folder of the mobile
device.
file:///c:\<file_name> This link opens a file located on a PC. Example:
file:///c:\my_file.txt. This hyperlink opens a file called my_file.txt
located at the root of drive C:
file:///\<path\file_name> Example:
///MY%20DOCUMENTS\my_file.txt. This hyperlink opens the file called
my_file.txt located in the My Documents folder of the mobile device.
80
Define Data Collection Conditional Specification (CMDE)
Note: Since PI Manual Logger supports limits from PI tags, these limits may come from
an external data source. For example, PI tags configured to use RDBMS Interface
or OLEDB COM Connector can access data limits residing in a relational
database.
The delta limit is used to check the rate of change from the last archived value. A tag on
multiple tours may have different limits in each tour. For details about configuring limit
checking behavior, see Limit Checks Tour Options (page 64).
82
Define Trigger Actions
Note: After you define the actions for a limit, the Actions icon appears next to that
limit.
Trigger actions are used on both desktop and mobile device applications. You can combine
those actions and use them for a given limit specification.
On the General tab, specify the following actions when a limit has been violated:
Override Tour Limit Violation Action: Select this check box to override the specified
tour level limit action to either accept or reject the value that violates this limit.
Require Signature on device: Select this check box to prompt the operator to sign the
data before navigating to a different tag on the data entry screen.
Require Comment: Select this check box to require the operator to enter a comment
before the value can be accepted.
Prompt Message: Select this check box to display a dialog box with instructions or
warnings for the operator.
The signature is associated with the manually entered value. If the operator changes the
value, the signature is discarded. If the new value violates the specified limit, the operator
may be prompted to sign the new data.
The signatures are stored as images inside the mobile database on the device.
Note: Frequent use of this feature can have significant impact on your mobile
database size and performance.
The required signature action is currently only supported on Windows Mobile devices.
On Windows XP/Vista Mobile PCs, this action is ignored.
84
Define Trigger Actions
On the Work Request tab, you can select Generate Work Request as a trigger action. This
defines an automatically generated work request if a value violates the specified limit. If
selected, a work request is automatically generated and put into the Work Request queue for
later review.
If you have multiple trigger actions defined in multiple places in a tour, you can view all the
trigger actions defined inside the tour in the Trigger Actions Overview dialog box. To open
this dialog box, in the Tour Configuration dialog box, click and select Trigger Actions
Overview, as shown below.
The Trigger Actions Overview dialog box appears. Double-click any of the listed trigger
actions to edit the selected action.
86
Group Tags Within a Tour
Create, rename, delete, and rearrange tag groups in the Tag Group Editor dialog box.
To assign a barcode to a tag group, select the group you want, click , enter the barcode in
the text box that appears, then click Apply.
To rearrange the tag group structure, drag-and-drop the group icons or use the arrow buttons.
Click in the Tool Definition toolbar at the bottom of the Tour Configuration
dialog box.
Note: If you have not selected a group, the tags are added to the root level of the Tree
View.
Typically the first tag in a tag group represents the status of the equipment. This can be a
digital state, such as on/off, running/out of service, and so forth. To define conditional
specifications on collecting tags within a group based upon the status of a tag using CMDE,
see Appendix see Appendix Conditional Manual Data Entry (page 215).
88
Import Tag Group Hierarchy
2. To import from a PI Module Database, select a PI module in the dialog box. PI Modules
and sub-modules import as tag groups, and PI aliases import as PI tags that are designated
to be manually collected data.
You can also import tags from other tours on different PI Servers. To do this, right-click in
the Tree View tab of the Tag List View pane and select Import from a Tour. More
specifically, follow these steps:
1. Create Tour A with tags from PI Server A.
2. Connect to PI Server B.
3. Create Tour B while connected to PI Server B.
4. Select Import from a Tour to copy Tour A tags into Tour B.
90
Reorder Tags and Tag Groups
You can also drag-and-drop tags and tag groups in the Tree View tab of the Tag List View
pane.
It is possible to reorder the tags as they appear in the Tag List View independent of
membership in tag groups. This allows operators to take readings in a certain walking
sequence based on the order in which the tags appear on the mobile device. Open the List
View tab. Select a tag, then click the number in the Order column as shown in the following
figure. Note that the Manage Tag Order Sequence Manually option must be selected in the
list of Tour Options (section General Tour Options (page 61)) before you can change the
order.
For a PIML 1.4x tour that has been migrated with the Keep tag sequence order and
disregard group order Migration Tool check box selected, the Tour Option ‘Manage Tag
Order Sequence manually’ option is automatically set to True allowing users to manually
sequence tags.
92
Set Tour Digital States
To access SYSTEM States, click on the Tour Configuration dialog box. The Tour
System States dialog box appears.
You can associate digital strings for real and integer tags. For example, consider that during
lab data entry, you need to record digital strings for some real and integer data types. Some
lab tests result in values that range from 0-9, which are good test results, but at the same time
you need to record digital string values (such as bad input, milky, cloudy, turbid) as reason
codes for test failure.
To add digital states to a tour, select one or more states, right-click, and select Add
Selected. You can also double-click a SYSTEM digital state to add the state to the Tour
States List.
To hide digital states from the available digital states list, select the states, right-click, and
select Hide Selected.
To show all available digital states, right-click in the Available States pane and click
Show All.
You can sort the columns in the Tour System States dialog box to make it easier to find
the SYSTEM digital states.
There are two types of digital states that can be included within a tour, SYSTEM and user-
defined (non-SYSTEM). The section above describes how to include SYSTEM digital states.
User-defined digital states are included through a different method.
If a point has been defined as a Digital Point Type with a non-SYSTEM specific Digital Set,
that point can be included within a PI Manual Logger tour, thus providing its values during a
tour run in addition to any SYSTEM digital states that were included in the tour. So, when a
tour is run, the tag value drop-down box displays the user-defined Digital States first, then the
SYSTEM digital states, that were included in the tour.
Within this example tour run, you can see the user-defined digital states first, and then the
SYSTEM digital states, that were included within the tour.
Note: The user-defined states do not show up when the Tour States button is clicked
from within the Tour Configuration dialog box.
94
Set Tour Digital States
They can also be seen by navigating PIML > PI Tags and Digital States > PI Digital
States, but this method does not show the tour with which the digital state is associated.
Display Trends
To display the trend for a tag, in the Tag List View pane select the tag and click , or right-
click the tag and select Show Trend.
Note: Trending does not include data from un-archived tour runs, including the tour run
in progress.
In PI Manual Logger trends, you can show annotations and events, and scroll through time
ranges.
In the figure above, three features are available on the menu bar:
Add Trace: Click to search and add new PI tags to the trend.
Revert: Click to revert the trend displayed to the initial time range.
Version: Click to view the version information of the PI Trend Library.
96
Display Trends
To change the default time span for trends, select Tools > Preferences. In the User Options
dialog box that appears, set the time span in the Trending Options tab.
You can also right-click the trend to view a few additional options.
Choose Change Scale to change the y-axis scaling and time range.
Choose Revert to undo any changes and revert to the original trend settings.
Choose Scroll Bar to enable a scroll bar at the bottom of the trend to scroll the display
through adjacent time ranges.
98
Work Offline
Work Offline
You have the option to disconnect PIML from the PI server and do these selected tasks by
working offline:
On the PIML menu, open the Message log, view PI tags and digital states, switch users,
and view work requests.
On the Tours menu, execute a tour run and collect data on the mobile PC, import a tour
run from a file, view/edit data in existing tour runs.
On the Mobile Devices menu, view device data for those handheld mobile devices that
are running.
On the Tools menu, specify and test a database connection and specify global options.
On the Offline menu, specify the Enterprise SQL Server, choose transfer options for the
mobile PC, and open the Offline Transfer Console.
Status: Shows the current status of the run. The available values are:
In Progress: Data entry has started but is not complete.
Submitted: Data entry is complete and is ready for review.
Archived: All non-empty values in the run have been written to the PI Server.
Completed: The run has been completed but the values have not been archived.
Queued: The run has been completed but contains future data that cannot be sent to
the PI Server yet.
Empty Tags
Note: Click any of the column headers to sort the tour and tour run lists.
The tour list is limited to items for which you have at least Data Entry permission. If you
have PI Manual Logger administrative privileges, you can select all tours. For details about
user permissions and groups, see User Groups (page 183).
The Tour Run tools are:
Tool Description
Toggle the Search Options pane on and off. You can search for tour runs
based on a number of options.
Create a new tour run. When you click this button, a New Tour Run dialog
box appears. Enter the timestamp you want and click OK to go to the Data
Entry Form (page 107).
Delete the selected tour run. If you click Yes at the prompt, PI Manual Logger
permanently deletes entries for all tags in the selected tour run from the
database.
Import a Tour Run data file from an XML file.
Print either a blank data entry sheet or existing tour run data.
Open the selected tour run so you can modify or add values. For details, see
Data Entry Form (page 107).
Close the Tour Run List pane.
102
Create a New Tour Run
To create a new tour run click . The New Tour Run dialog box appears.
Note: You must have at least Data Entry permission level to enter and edit tag values
and timestamps.
104
Enter Values for Tags in a Tour Run
The following functions are available from the Data Entry dialog box toolbar:
Tool Description
Move to the first tag in the sequence that is due for collection.
Move to the previous tag in the sequence that is due for collection.
Move to the next tag in the sequence that is due for collection.
Move to the last tag in the sequence that is due for collection.
Write the completed tour run data to the PI Server. You must have write access to the
PI Server and archive permissions for the tour.
Display or hide panes.
Approve the submitted tour run data and send the approved data to the P ServerI.
106
Enter Values for Tags in a Tour Run
Use the Data Entry Form tab to enter and edit tag events, where an event is defined as the
combination of assigning a value, comment, and a timestamp for a tag.
Note: To do these tasks, users must belong to the Data Entry group. See section
Associate a Tour with a User Group (page 185) for details about specifying user
groups. You must have Send to PI permission level (specified in section General
Tour Options (page 61)) to write values to the PI Server.
Enter the tag value in the Tag Value field. To add additional values for a tag, click
and enter a new value. You can add a comment to associate with this new value as well.
The time stamp defaults to Now when you click . All previous values added for the
tag in this tour run appear in the Added Values tab of the Tag Info pane.
To display a trend for the tag, click . The PI Manual Logger Trending dialog box
displays the live trend of the tag. You can scroll the trend through different time ranges.
See section Display Trends (page 96).
If a signature was entered on a handheld device, click to view signatures for the
tag.
If you specified a trigger action to require signature on device and the data has been
signed on a mobile device, then after the tour run data has been transferred back to the
desktop central SQL database, you can see a Signature icon show up next to the tag value
to indicate that the tag value has been signed. You can either move your mouse over the
icon to see the signature, or click icon to see it.
108
Enter Values for Tags in a Tour Run
Value Comment: A comment associated with the tag. If you are using templates, you
can pick preconfigured comments from the template and add them to the comment text
entry. You can add multiple comments from the template.
Tag Timestamp: A valid absolute PI time. Click the clock icon to insert the current time.
Use of an asterisk (*) is not supported.
If no value is entered, the tour time is used. The value is populated only when Send to PI
is attempted (when the user either clicks Send to PI or closes the window).
Operator Instructions: Shows the operator instructions assigned for the tag.
In the Tag Info pane, the Previous Values tab shows the history of previous values. Several
options are available from the right-click menu.
To use a previous value, comment, or both as the input for a tag, right-click the tag and
select the appropriate option.
To show a trend for a tag, right-click the tag and select Show Trend.
To show the details for a tag, right-click the tag and select Show Details on this value.
The Tag Value Details dialog box (shown in the following figure) shows any additional
annotations (comments) defined for the selected tag value. It also shows any value
attributes that may be set, such as Annotated, Questionable, or Substituted. For example,
the audit record annotation has the following fields for retrieval:
Annotation Name: PIML User Audit
Annotation Description: PIML user who entered the data
Annotation Type: String
Annotation Value: PIML user account who entered the data in PIML
Annotation Creation Date: The timestamp when the value was sent to the PI Server
110
Enter Values for Tags in a Tour Run
Note: Right-click the annotation list to toggle the view between show details or hide
details of the annotation value. Use the pop-up menu to copy any text
annotations to your clipboard.
To add a comment to a tag value, right-click the tag value and select Add comment.
Enter your comment in the Comment/Log Entry dialog box that appears. The additional
comment is stored as a new annotation.
To view the cached values for the current tag, right-click and select Show Cached Data.
To delete a value from the PI server, select the value you want to delete, right-click, and
choose Delete Selected Value from PI.
Note: If you do not have permissions to delete the selected values from the PI
Server, this menu item is unavailable. If multiple values have the same
timestamp, only the first tag value is deleted.
To change the search range of the displayed historical values for the current tag, right-
click and choose Search Criteria. The Search Previous Values dialog box appears.
If you select the Time-based search option, the Start Time and End Time refer to the
time range for which values from the archive are displayed. For the default values (start:
*-1d, end: *), the most recently archived tag values in the past 24 hours appear.
If the Server Time check box is selected, the time is related to the server. If this check
box is not selected, the time is related to the local computer's time.
If you select the Number of Values option, enter the number of values to search. The
default is 25. The number of values retrieved from the PI Server archive is always equal
to or less than this limit, even though there may be more values in the specified Start and
End time range.
By default, values from the PI Server are displayed in reverse chronological order, with
the most recent appearing at the top. To change the display order, click the appropriate
column header.
112
Enter Values for Tags in a Tour Run
After you have entered a tag value in the Tag Value field, you can add additional values for
the tag. This can be useful, when, for example, you need to correct a spurious value, but want
to keep that value for the record. This maintains the integrity of the previously collected
values in the tour run.
To add a value, click and enter a new value. The previously entered value appears in the
Added Values tab of the Tag Info pane and the Tag Value box is cleared, ready for a new
value. You can add a comment to associate with this new value as well. The time stamp
defaults to Now when you click .
All values added for this tag appear in the Added Values tab of the Tag Info pane. These
options are available from the right-click menu:
To add or edit a comment, right-click and select Add/Modify Comment.
To remove an added value, right-click and select Delete Added Value.
In the Data Entry Sheet tab, right-click the data rows and choose from these options:
Refresh or revert changes.
If the digital states are configured in the tour, set the tag status.
Add additional values for a tag in the same tour run. All values added for the tag appear
in the Added Values tab of the Tag Info pane.
Send current collected values for this tour run to the PI Server.
Save or print the tag data.
While editing an individual field, you can press Ctrl+Z or right-click and select the Undo
option to revert to the previous value in the field. You can also enter or edit the value,
comment, and timestamp by clicking an individual cell.
While viewing the Data Entry Sheet page, you can also view a trend of the tag you are
currently working on, as shown on the Previous Values tab in Tag Info pane.
114
Enter Values for Tags in a Tour Run
The Tag Group tab is only available if you have a tag group selected. Use it to set the status
for the tag group for the tour run and enter a comment for the tag group for the tour run.
The symbols associated with tags and tag groups are described in the following table:
Symbol Description
The tag or tag group is not due for data collection.
The tag or tag group is due for data collection and has no data.
The tag has valid data entered or the tag group is collected. Tags that were due for
collection have valid data entered.
The tag or tag group has data that violates its limit specifications.
To set the tag or tag group status from the Tag List pane, right-click a tag or tag group, select
Set Status, and select a status from the drop-down list.
Note: PI Manual Logger cannot import the sample file unless you create the PI points
used in the sample first.
3. Click .
The Data Entry dialog box appears. You can review and modify the data when appropriate,
and then approve and send all the data to the PI Server.
Note: After you send reviewed data to the PI Server, the data is still stored in the SQL
Server database.
OSIsoft recommends that you use PI client tools to retrieve tag values, comments,
and other auditing information from the PI Server.
116
View the History of a Tour Run
3. Click .
The Tour Run History dialog box shows who edited the tour runs, when edits were made,
what the status of the tour was when the edit was completed, and the workstation (or device
ID) when the edit was completed.
Note: If you delete a tour run, you also delete its audit log from the PI Manual Logger
database.
118
View Unapproved Tour Run Data
Note: Only users that are members of the pimladmin administrative group can access
this function.
Note: Approved tour run data is saved in the target PI tags. We recommend that you use
corresponding PI client tools (such as PI ProcessBook and PI DataLink) to view
the approved data available.
Right-click in the Message Logs pane to refresh the display, add a new log entry with the
Comment/Log Entry dialog box, or copy the entire log onto Windows clipboard so you can
paste the text into another application.
120
Chapter 6
122
Before You Start
Note: The number and size of tours is based on the available RAM on the device.
Note: As long as a mobile device is loaded with the appropriate operating systems
(Windows Mobile 6 classic or professional, etc.), the CPU type is not an issue.
124
Before You Start
Pre-Installation Considerations
If you plan to use Windows Mobile devices to manually collect data with PI Manual Logger
Mobile, install the mobile device communication application (ActiveSync or WMDC) that is
appropriate for your system. This must be installed and running on the PC before you can use
a mobile device to collect data.
If you have a previous version of PI Manual Logger Mobile installed on your mobile device,
transfer all remaining data to the desktop then remove the previous version, using ActiveSync
or WMDC.
Windows 2003/XP
This version of PI Manual Logger requires the appropriate version of ActiveSync for your
target operating system and Windows Mobile device operating system. To obtain the latest
version of ActiveSync, see the Microsoft Web site.
Windows Vista/Windows 7/Windows Server 2008
This version of PI Manual Logger requires the appropriate version of Windows Mobile
Device Center for Windows Vista, Windows 7, Windows Server 2008, and your Windows
Mobile device operating system. To obtain the latest version of Windows Mobile Device
Center, see the Microsoft Web site.
Non-Volatile Memory Cards
Non-volatile memory cards vary in performance, reliability, upgradeability, and so forth.
Therefore, carefully evaluate the different options and trade-offs to determine the feasibility
of using a non-volatile memory card when installing PI Manual Logger Mobile components
(.NET Compact Framework, SQL Server Compact Edition, and PI Manual Logger Mobile).
Refer to these web sites for more information:
Microsoft MSDN (http://msdn.microsoft.com/en-us/library/ms838028.aspx)
Microsoft Forums
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3014412&SiteID=1)
Note: If you install PI Manual Logger Mobile, .NET Compact Framework, or SQL Server
Compact Edition in a non-volatile memory location, you must completely reinstall
the .NET Compact Framework and SQL Server Compact Edition runtime in case
of battery loss (except on Windows Mobile 6.0). This is because some required
runtime files are always installed in the \Windows RAM folder, regardless of which
location you choose during installation.
After you start the PI Manual Logger Mobile set-up kit, the dialog box shown in the
following figure appears. If you are using a non-volatile memory card, be sure you
understand the information about these cards, as described in section Pre-Installation
Considerations.
Note: During installation you may receive a message indicating that the publisher
cannot be verified. You can ignore this message, click OK, and complete the
installation.
126
Mobile Device Application Installation
1. Choose the device type: Windows Mobile 2003 or Windows Mobile 5.0 and click Next.
Click Next again to start the installation.
The Microsoft .NET Compact Framework 2.0 and Microsoft SQL Server Compact
Edition 3.1 installers start after you choose where to install device CAB files.
Installation messages for Windows Mobile 2003 appear on the PC desktop, as shown in
the following figure.
Installation messages for a Windows Mobile 5.0 device appear on the device itself.
2. For Windows Mobile 5.0, when the SQL Server installation is finished, click OK (shown
in the following figure) before you click OK in the installation message on the PC.
Otherwise PI Manual Logger Mobile may not be installed on the device even though
installation appears to proceed normally.
3. The PI Manual Logger Mobile installer appears. You can install the application in the
default location (\Program Files\pipc\PimlMobile on the device) or on a non-
volatile memory card.
128
Mobile Device Application Installation
Note: Even if you install PI Manual Logger Mobile in a non-volatile memory location, you
must completely reinstall the .NET Compact Framework and SQL Server Compact
Edition runtime in case of battery loss (except on Windows Mobile 6.0). This is
because some required runtime files are always installed in the \Windows RAM
folder, regardless of which location you choose during installation.
After you start the PI Manual Logger Mobile set-up kit, the dialog box shown in the
following figure appears. If you are using a non-volatile memory card, be sure you
understand the information about these cards, as described in section Pre-Installation
Considerations.
Note: During installation you may receive a message indicating that the publisher
cannot be verified. You can ignore this message, click OK, and complete the
installation.
1. Choose the device type: Windows Mobile 6.0 and click Next. Click Next again to start
the installation.
130
Mobile Device Application Installation
2. When the message appears prompting you to check the device to see if additional steps
are needed, look for a display similar to the following:
3. After you choose where to install PI Manual Logger Mobile, in the default tlocation
(\Program Files\pipc\PimlMobile on the device) or on a non-volatile memory
card, tap Install on the device. Be sure to make your selection and tap Install before
before you click OK in the installation message on the PC. Otherwise PI Manual Logger
Mobile may not be installed on the device even though installation appears to proceed
normally.
4. After installation is finished, look for a display on the device similar to the following
figure:
5. Tap OK on the device, and then click Finish in the installation dialog box on the PC
desktop.
132
Post-Installation Procedures
Post-Installation Procedures
This section describes procedures you need to follow after installation is complete.
Set up the connection management software as appropriate for your application. You can
choose the Guest Only mode or set up a partnership. Use a partnership if you want to
synchronize information, unrelated to PIML, between the device and the computer, such as
calendar, inbox, contacts, files, and so forth. Note that Partnership synchronization is more
time consuming. Also, if a partnership is set up, then you must indicate this in PIML’s
AutoSync, if you are using this application.
The SQL Server Compact Edition files installed in the \PIPC\PimlMobile folder are
intended for mobile devices. If you have selected the Windows XP/Vista Mobile PC option
on the Mobile Device Type Selection dialog box during the PI Manual Logger Mobile setup,
copy the SQL Server Compact Edition files for Mobile PC from the
\PIPC\PimlMobile\SQLMobilePC folder into the \PIPC\PimlMobile folder.
If you want to install PIML Mobile on multiple mobile devices, installation depends on the
type of device.
For Windows XP/Vista Mobile PCs, run the Manual Logger Mobile setup kit on each
Mobile PC, following the steps in section Mobile Device Application Installation (page
126) of the PI Manual Logger User Guide.
For Windows Mobile 2003/5.0/6.0, use the PIML Device Installer application, which is
included on your PC. The PIML Device Installer application can also install or reinstall
SQL Server Compact Edition and .NET Compact Framework. Use the device installer to
install the device applications to multiple devices with the same or different operating
systems.
Note: As long as a mobile device is loaded with the appropriate operating systems
(Windows Mobile 6 classic or professional, etc.), the CPU type is not an issue.
To launch the PI Manual Logger Device Installer, choose Start > All Programs > PI System
> PI Manual Logger > PIML Device Installer. The PIML Device Installer dialog box
appears.
You can install or reinstall the following components on a connected mobile device:
Microsoft .NET Compact Framework
Microsoft SQL Server Compact Edition
PI Manual Logger Mobile
Note: In Microsoft Windows Mobile 6, SQL Server 2005 Compact Edition and the
Microsoft .NET Compact Framework 2.0 are installed into the ROM of the devices,
so there is no need to install these two components if you have a Microsoft
Windows Mobile 6 device.
After you begin the installation of one of the components, Microsoft's Application Manager
will be launched. From there, you can follow the on-screen instructions to complete the
installation of the component on your mobile device.
134
Post-Installation Procedures
Before collecting data with a mobile device, you must create and initialize the device
database using the Device Initialization feature.
Notes: If you abort the initialization process before it is completed, the database is
unusable for PI Manual Logger Mobile.
If you are using a memory card that has a write-protection switch, such as an SD
card, disable the write-protection before using it with PI Manual Logger Mobile.
Before collecting data with a mobile device, you can configure the device with your own
personal settings. This is an optional step since the default settings are acceptable. Verify that
the device is cradled and connected through ActiveSync/WMDC. Then, on the PI Manual
Logger client, select Mobile Devices > Mobile Device Settings. The Mobile Device
Settings dialog box appears.
Note: Use only alpha-numeric letters and spaces to name the Device ID.
On the Device Modes tab of the Mobile Device Settings dialog box, specify whether the
device runs in Single User mode and/or Single Tour mode.
136
Post-Installation Procedures
After you specify the device settings, click OK to save the changes on the device.
You can perform mobile device tasks from the PC client. To access the Mobile Device Tasks
dialog box, choose Mobile Devices > Common Tasks.
Note: The device must be connected through ActiveSync/WMDC before you can
perform these mobile device tasks from your PC.
138
Transfer Data from the PC to a Mobile Device
When transferring data from PI Manual Logger Mobile running on Windows XP/Vista (such
as a tablet PC or data entry desktop), you must wait for PI Manual Logger PC to check for a
cradled handheld device. If it does not find a handheld device, you must specify an alternative
location, which allows you to customize the behavior of PI Manual Logger PC when it
attempts to synchronize. A dialog box will prompt you to either (1) check for connected
Windows Mobile device, (2) check for a database file at <file location>, or (3) prompt for the
location. You can also open this dialog box by clicking Mobile Devices > Mobile Database
Location Setup.
Note: Wait until ActiveSync or Windows Mobile Device Center has recognized that the
device is connected and cradled prior to opening the Device Data Transfer
Console screen, because there can be a slight delay that causes PI Manual
Logger to prompt you for a location if Load from mobile device is first in the list.
PI Manual Logger creates a temporary, transfer folder called PimlMobileData under the
My Documents folder. You cannot change the location of this transfer folder.
The PC Tour List tools are:
Note: When you close this dialog box, the transfer logs are not saved. Any auditing
information, however, such as send to PI events, exceptions, and tour changes,
are logged by the tour run audit trail or the message log system and saved in the
PI Manual Logger database.
Filter by: Enter the string by which you want to filter the tour list.
Apply: Apply the filter to the list.
View: View all tours or only tours available to you (if you are not a PI Manual Logger
administrator).
140
Transfer Data from the PC to a Mobile Device
To download tour data to your mobile device and to upload tour run data from the device to
the PC:
1. Choose Mobile Devices > Device Data Transfer.
2. Select the tour(s) you want to transfer.
3. Click . The tours to be transferred appear in the Device Tour List panel.
4. Click to select the available transfer options from the Device Data Transfer
Options dialog box.
On the Receive Options tab, you can choose from these options:
Whether to import all tour runs.
Whether to import only completed tour runs into the central PI Manual Logger
database. Tour runs that are still in progress remain on the device.
When Update cached PI tag values before transferring is selected, the data transfer
updates the latest PI tag archive values from PI before sending them to a mobile device.
5. Click OK to save changes to the device data transfer options. Otherwise, click Cancel.
6. Click to initiate the transfer.
- Tour run(s) are to be retained on the device based on the number of tour runs
per tour to retain specified on the Send Options tab is greater than zero.
You can start PI Manual Logger Mobile and start collecting data after the tours are
successfully transferred to the device.
Delete Tour Definitions from the Mobile Device
The only way to remove tour definitions from the device is to reinitialize the device database.
After reinitializing the database, you can then transfer new tour definitions to the device.
Note that Unselect button on the Device Data Transfer Console center toolbar only removes
tours from the transfer list if they have never been transferred.
142
Transfer Data from the PC to a Mobile Device
As an alternative to selecting and transferring data manually, use the mobile data transfer
wizard. To use the wizard:
1. Click Mobile Devices > Mobile Data Transfer Wizard.
2. Click Next. Click the type of data transfer you want to start.
3. Optionally, update your mobile device settings. Click Next.
4. If you are using the device for the first time with PI Manual Logger Mobile, create your
device database. Click Next.
5. Click Finish. Now you can specify tours you want to transfer and other transfer options.
Note: As with the desktop application, the username is case insensitive and the
password is case sensitive.
144
Start PI Manual Logger Mobile
If you start PI Manual Logger Mobile before the database is initiated, a welcome screen
appears on the device. The welcome screen displays instructions on how to initialize the
mobile device for its first use.
Main Menus
File Menu
146
Main Menus
Tools Menu
Caution: You cannot recover collected data after deleting it. Verify the collected
data is no longer needed prior to deleting it.
Global Settings: Change the mobile database path, temporary data storage path, device
ID, and PI Manual Logger Web Service URL. Only users in the PIMLADMINS group
can make changes to the global settings.
User Options: Change the tag display and font size. These options are saved individually
for each user.
Device Status: Show the device's memory, battery, and network connection status. When
a wired or wireless network connection is present, the device displays the correct network
IP address followed by the text Connected.
View Menu
148
Main Menus
Help Menu
Note: The device help includes only basic help information. For complete information
on PI Manual Logger, see the PI Manual Logger User Guide.
Barcodes can be used as aliases for individual tags or tag groups for the data collection
points. During manual data collection, when you can scan a barcode, PI Manual Logger
Mobile jumps to the data entry screen for the tag or group associated with the barcode.
Note: Barcode scanning hardware varies. See your device's user manual or consult with
your hardware vendor to learn how to trigger your barcode scanner.
Barcodes are mapped to tag names and groups in the Tour Definition dialog box. You can
configure PI Manual Logger to prompt the operator either to scan or to enter a barcode before
the data entry screen appears.
Barcodes used in PI Manual Logger can be as many characters as the barcode standard and
barcode scanning hardware support. Some common barcode formats used in mobile device
environment are:
Code Length Decode options, comments
UPC-A 12 Transmit check digit enabled
UPC-E0 6
EAN-8 8
Code 39 Variable Verify check digit disabled
Codabar Variable
Code 128 Variable
Note: If the Barcode must be scanned before data entry is allowed option is selected
in the Barcodes Tour Options dialog box in the PI Manual Logger PC
application, users must enter a barcode associated with a tag or tag group before
they can enter data for it.
150
View Tours
View Tours
The main screen in PI Manual Logger mobile is the Tour List screen.
The Tour List screen is organized in a tree view. The top nodes in the tree view are tours and
the sub-nodes are tour runs.
A tour node shows the tour name. A tour run node shows the tour run timestamp and the ID
of the user who created the tour run.
Main Toolbar
Clean up the mobile database by erasing all tour run data on the device.
View or change the current user account by opening the login screen. The current user
cannot be changed if 'Single User Mode' is displayed indicating the Single User Mode
device option is set which automatically logs in the user.
Delete the selected tour run data. You must have Full Access permission to use this tool.
152
Enter Data
Enter Data
To run a tour, select a tour from the tour list and tap . Some tour scheduling options
provide a drop-down list for the Tour Timestamp of selectable timestamps of tours that have
not yet been created.
Tap the OK button to start the new tour run. Note that the operator can disable all conditional
checking (Clock Scheduling and CMDE) on the device in order to collect tour run data
without the automatic display of only tags that are due and without prompts for collection of
empty tags that are still due for collection based upon Clock Scheduling or CMDE. To do
this, the operator taps the Turn all scheduling off check box before clicking OK.
The Data Entry screen shows the tag name and descriptor, tag value, and timestamp.
Depending on the Timestamp Tour Options settings, the default tag timestamp is set to
either the tour's timestamp or the current timestamp, which is read from the mobile device
clock.
To enter tour data:
1. Enter a tag status value in the Value box, or click a preconfigured digital tag status from
the drop-down list. If a barcode represents the tag's value and not the identification of a
tag, then a value can be scanned into a tag value by placing the cursor on the tag value
field on the data entry form and scanning in the barcode.
2. Tap or the keyboard Enter key to process the entry and go to the next due tag. The
navigation toolbar can also be used.
Depending on your barcode scan option setting, either a prompt to scan a barcode or the next
tag in the sequence appears.
Depending on your limit check setting, if you enter a value that violates one or more limits
specified for the tag, the Limit Violation Warning dialog box may appear.
Tour Tools
Tool Description
154
Enter Data
Navigation Tools
The navigation tools in the tour run Data Entry screen are:
Tool Description
Note: Depending on how the tour options are configured, the navigation tools, may (1)
display only the tags that are due for collection, or (2) display all tags, whether
they are due or not. In case 1, as you navigate through tags to enter data during a
tour run, only those tags that are due for collection are listed. To navigate to the
next tag that is due, choose Go > Go to Next Empty Tag, or tap . If you need
to see a tag that is not due, tap the Group tab, select the tag, and tap Go.
In Case 2, all tags are displayed, whether they are due or not.
Indicates that the entry violates a limit, as defined in section Set Data Validation Limits (page
82). Tap this icon to display the details about limit violation.
Indicates that there are operator instructions for this tag. Tap this icon to display the
instructions.
Shows the tag attributes for the current tag.
Indicates that there are comments associated with the current tag.
The tag list view shows all tags and tag groups in a hierarchical tree. To access the tag list
view, tap the Group tab at the bottom of the Data Entry screen.
In the tag list view, you can see the logical organization of tags: tag groups defined for the
current tour. You can also navigate through the tree and jump to data entry for any tag in the
tour, regardless of whether it is due for data collection. The status icons are described in the
following table:
Icon Indicates
There are tags in the group that are due for collection.
All "due for collection" tags in the group have values entered. Even if tags that are not
due for collection exist in the tour, the group status is still the .
The group contains tags with limit violations.
156
Enter Data
When you select a tag group in the list, the toolbar for tag groups also appears at the bottom
of the display. The icons for the group are described in the following table:
Icon Indicates
Select the group and tap to set the status of the group.
Select a tag within the group and tap to display the data entry screen for the tag.
To set the status of a tag group, select a tag in the group and select Value>Set Group
Status. Then select the SYSTEM digital state to associate with all the tags in that group.
The target name and icon displayed in the Set Status window indicate the current target
for which the status is set. The target can be a tag group or the whole tour .
To add a comment to a tag group, select the tag group and tap . The comment will be
associated with all subgroups and tags within the group.
To view the Data Entry screen for a tag, select the tag and tap .
Tag Menu
Note: If there are tags for which no values were entered, a message prompt
appears:
Tap Yes to close the run. Later you can choose File > Edit/Resume Run to
enter more data.
158
Enter Data
Go Menu
Note: You can use the navigation icons instead of these menu items.
Go To Next Empty Tag: Open the Data Entry screen for the next due tag, that is, one
for which a value is not yet entered.
Scan a Barcode: Open the Scan Barcode dialog box. When you enter or scan a barcode,
the tag corresponding to the barcode appears. To select a tag group, tap the Tag Group
List icon. Press Ctrl+B while on the Value field to also open the Scan Barcode dialog
box.
If the tags are grouped by a tag group and a barcode is assigned to the group, when you
scan a barcode, the Data Entry screen appears with the first due tag in the tag group.
Note: If the tour is configured for mandatory barcode entry (page 64), the Data Entry
screen is locked until a user enters a barcode. In addition, if you are using
supported Symbol barcode scanning devices, the Barcode Entry screen is
read-only, as you must scan a barcode into the Barcode Entry text box. For a
complete list of Symbol devices with integrated mandatory barcode scanning
support, see section Supported Scanning Devices.
Add a comment: Opens the Comments page for the current tag.
160
Enter Data
Value Menu
Time Menu
View Menu
Note: Any changes you make take effect when you navigate to a different tag.
Device Status: Show the current device memory usage, battery power, and network
connectivity status.
162
View Tag History
To show the detailed historical value and comments for a tag, select the value you want
from the list and tap .
To apply the selected historical comment as the current comment, select the value from
the list and tap , or choose Value > Use Previous Comment.
To apply the selected value and comment as the current value and comment, select the
value from the list and tap , or choose Value > Use Previous Value and Comment.
The tilde character indicates the values that have been added for a tag on the same tour run, as
shown in the following figure.
164
View Message Logs
From the Log Entry screen, the following functions are available:
To save your entry, tap .
To cancel your entry, tap .
To select an entry from a predefined list of templates, tap .
166
View the Audit Log
Note: If you delete a tour run, you delete the audit log for the tour run as well.
Tap OK to save the signature and associate it with the current tour run edit event. If you tap
Cancel, the signature is not saved with the tour run.
Note: After you save the signature image and transfer the tour run to the PI Manual
Logger database, you can view the signature later in the Tour Run History dialog
box.
168
Comment on Tags, Tag Groups, and Tours
The comment tag shows the target with which the current comment is associated. The target
can be an individual tag listed with the icon, a tag group with the icon, or the whole
tour with the icon.
170
View Trends on Mobile Devices
If you do not have enough archived data on your mobile device for trending, an error appears
that says Too few data to display trend and no trend is displayed.
172
Transfer Data
Transfer Data
You can initialize a data transfer from the PC or mobile device. To download new tours onto
the mobile device, you must initiate the data transfer from the PC. For details, see
Transferring Data from the PC to a Mobile Device (page 139).
Note: Before downloading data to the device or uploading data from the device, you
must set up ActiveSync for file transfers between the mobile device and the PC.
Set up the connection management software as appropriate for your application.
You can choose the Guest Only mode or set up a partnership. Use a partnership if
you want to synchronize information, unrelated to PIML, between the device and
the computer, such as calendar, inbox, contacts, files, and so forth. Note that
Partnership synchronization is more time consuming. Also, if a partnership is set
up, then you must indicate this in PIML’s AutoSync, if you are using this
application.
To transfer data wirelessly from the mobile device to the PC, you must have an active
network connection on the device to the target server running PI Manual Logger Web
Services.
To initiate bi-directional transfer from the mobile device, tap . After a confirmation
dialog box, the device sends your collected data to the host, and downloads any updated
tour definitions, global options, and/or user database changes.
To send collected data from the mobile device to the server only, choose File > Send
Data to Host.
To receive tours from the PI Manual Logger PC application only, choose File > Update
Data from Host.
Caution: PI Manual Logger Mobile erases all existing tour data during the Update
Data from Host step. If there is previously collected data on the mobile device
that has not yet been sent to the PI Manual Logger desktop database or to the PI
Server directly, it is erased if you tap the Yes button. To transfer collected data
prior to re-initializing your mobile's database, tap the No button and use the Send
Data to Host feature.
You can manually synchronize the time and clock on the device with the target Web server
running PI Manual Logger Web Services. To synchronize the device clock, choose Tools >
Sync Date/Time. After the device is connected to the Web server, PI Manual Logger
retrieves the current date and time from the Web server and adjusts the device time
accordingly.
This feature is helpful in situations where the device clock is out of sync due to battery power
loss or other hardware failure.
174
Transfer Data
Configure AutoSync
When AutoSync is enabled, PI Manual Logger synchronizes data with the mobile device
anytime it is cradled. Synchronized data includes uploading tour run data from the device,
sending updated tour information to the device, and updating previous values from PI Manual
Logger onto the device.
Note: AutoSync does not update the tag attributes or digital state sets.
To configure AutoSync, select from the Windows Start menu > All Programs > PI System
> PI M anual Logger > PI M L AutoSync Setup.
Note: If Dialog timeout is 0, the confirmation dialog box does not time out.
Note: OSIsoft recommends that you use the Mobile Database Location Setup dialog
box in order to streamline the sync process when using a Windows XP/Vista
Mobile PC to run PI Manual Logger Mobile.
With PI Manual Logger Mobile, Windows XP or Vista Mobile PCs are supported to run PI
Manual Logger Mobile in disconnected mode. Under this mode, the Mobile PC does not have
to connect to the target PI Server nor the central PI Manual Logger database in order to run
the application.
The shortcuts to run PI Manual Logger Mobile are created by default on Windows under
Start > All Programs > PI System > PI M anual Logger.
To configure your Mobile PC for data collection using PI Manual Logger Mobile:
1. Create the tours in the PI Manual Logger client.
2. In the M obile Devices menu in PI Manual Logger, select I nitialize Device Database.
Since no mobile device is connected, the output includes the line Running in
disconnected mode to file: followed by a file path.
3. Copy this file to a desired location, then specify this location in the M obile Database
Location Setup dialog box.
When transferring data from PI Manual Logger Mobile running on Windows XP/Vista
(such as a tablet PC or data entry desktop), you must wait for PI Manual Logger
Windows to check for a cradled handheld device. If it does not find a handheld device,
you must specify an alternative location, which allows you to customize the behavior of
PI Manual Logger Windows when it attempts to synchronize.
176
Transfer Data
In the M obile Database Location Setup dialog box, follow these steps:
a. Click to browse for the folder to store your mobile database file
(Pi ml Mobi l e. sdf ). After selecting a folder, click Ok on the Browse for Folder
dialog box.
The following items now appear in the M obile Database Location dialog box:
Load from mobile device
Prompt for location
Load from file at <your selected folder>\ Pi ml Mobi l e. s df
b. Move the last entry, which you have just created, to the top of the list using the up
arrow button in the Priority group at the right side of the dialog box.
c. Click Save at the bottom of the dialog box to save your work and close the dialog
box.
Note: Wait until ActiveSync or Windows Mobile Device Center has recognized that
the device is connected and cradled before opening the Device Data
Transfer Console window. This is because there can be a slight delay that
causes PI Manual Logger to prompt you for a location if Load from mobile
device is first in the list.
4. On the Device Data Transfer screen in PI Manual Logger, transfer the tours to the
database file from the above steps.
5. Copy the file specified in step 3 to the Mobile PC. It is located in the directory specified
in the pi ml mobi l e. xml file. By default, this is \ Pr ogr am
Fi l es\ PI PC\ Pi ml Mobi l e\ .
After the application is launched, it will look similar to what you would see on a Windows
Mobile device.
After you have manually collected data on your Windows XP/Vista Mobile PC, you can copy
the database file (pi ml mobi l e. sdf ) back to a host system and run PI Manual Logger on
the host system to synchronize data back to the central PI Manual Logger database.
Click on the Device Tour List panel to choose the local database file you are using for
data transfer.
Note: Specify the location of the local database file in the Mobile Database Location
Setup dialog box. See Transfer Data from the PC to a Mobile Device (page 139)
for more information about specifying a mobile database location.
178
Chapter 7
6. Click in the center Tool Strip. You are now ready to execute a tour run.
To execute a tour run, on the mobile PC open PI Manual Logger. Then follow these steps:
1. Select Tours>Tour Run List (M anual Data Entry and Review).
2. Select a tour from the Tour List.
3. To execute the tour run, either double-click the selected tour in the Tour List or click
2. If you have partial tour runs, click in the center Tool Strip and select the appropriate
option on the Send Options tab.
MobilePC database, use the buttons in the center Tool Strip and click
180
Chapter 8
When you first install and configure PI Manual Logger, there is one user defined with the
user name piml and password piml. You can change the password after installation.
By default, the default user piml belongs to the PIMLADMINS user group and has full access
rights to all PI Manual Logger features.
Note: To change the default designated administrative group, choose Tools > Global
Options > Security Settings.
Types of Users
The default user, piml, belongs to the default administrative group PIMLADMINS. Any user
belonging to this administrative group has full access to all tours in the PI Manual Logger
database.
The options available in the Users pane are:
182
Manage the User Database
Note: If the Log user group membership changes check box is selected in the Global
Options dialog box (choose Tools > Global Options > Message Logging) PI
Manual Logger records all changes made to the user database in the message
logs.
If you are using Windows Mobile devices to collect manual data, you can set up the device to
be single-user mode, which disables the Login dialog box on the device. For details about
single-user mode on a mobile device, see Configure a Mobile Device (page 135).
User Groups
After PI Manual Logger is installed, the default user group PIMLADMINS is created. By
default, this is the administrative group.
New users can be assigned to one or more user groups. Users have access only to the tours
that are assigned to the user groups they belong to, unless they belong to the administrative
group.
The options available in the Permissions Groups pane are the following:
To change the list of users belonging to a group, click the User M embership tab.
184
Manage the User Database
PI Server Security
PI Manual Logger communicates with and stores all information for a tour in a single PI
Server. When PI Manual Logger opens initially, it uses the default PI Server. You can change
this default server to another if necessary.
Both the PI Manual Logger Windows client and the PI Manual Logger Windows Services use
the PI SDK to communicate with PI Servers. All users require read access to the PI Server.
The users who send tour run data to the PI Server require full write access to the relevant
tags. Therefore, a PI Mapping or a PI Trust connection is required. Before you start loading
tags to PI Manual Logger, configure the server connection to use a PI Trust login or a PI
Mapping.
To configure a PI Trust, refer to the documentation for the PI Trust Editor SMT3 Plug-In.
The name for the online help file is PI Tr ust s. chm. This help file provides details for
configuring server trust connections and adding and removing PI Servers from a server list.
The following figure shows some configured trusts for a system.
PI Mapping requires PI Server version 3.4.380 or later and PI SDK 1.3.6 or later. OSIsoft
recommends using Windows security through PI Mappings. Windows security provides the
strongest authentication and full Windows account traceability in the PI Server log and audit
trail records. To configure a PI Mapping, refer to the PI Server documentation for details.
You can obtain the manual Configuring PI Server Security at the OSIsoft Download Center.
186
PI Server Security
Server Security
In addition to the security at the PI Manual Logger application level, the PI Server allows you
to set up security at the level of the point. A PI Manual Logger user must have write access to
write tag values to the PI Server.
PI Manual Logger also provides support to ensure your data is secure. The additional security
features are:
PC-side data persistence security
Data communication security
User login on the device
PI Server security
Auditing
This section describes the auditing features of PI Manual Logger.
Security on the PC application is integrated with PI trusts or PI Mapping. When users log in
to a PC workstation and start PI Manual Logger, they are authenticated against the
established PI trust or PI Mapping on the currently connected PI Server. After they are
authenticated to this PI Server, they can access data in the PI Server. Furthermore, if they
enter data into the PI Server, the changes made to tag values are audited in the PI audit
database.
Administrators can audit changes in the user database, such as user password changes and
user group relationship changes. Click Tools>Global Options and select the Message
Logging tab. Select from these options:
Log user group membership changes.
Log user password change events.
Log Admin user group changes.
You can audit tour definition creation and deletion events. Click Tools>Global Options and
select the Message Logging tab. Select from these options:
Log tour definition creation events.
Log tour definition deletion events.
All successful data transfers from PI Manual Logger to PI Server is audited and logged into
the PI Manual Logger database. To view these logs, use the Message Log Viewer (page 120).
If a user makes changes to an existing tag value, its timestamp, or its comment, the action is
audited and saved in the tour run audit trail. You can view the audit trail in the Tour Run
Audit Log (page 118).
188
Appendix A
Message Logs
The following activities and events are saved in the message log for auditing purposes:
Successful or failed tour creation, modification, and deletion, including the details on
which tour and which user made the change.
Successful or failed archive action for tour run data, including details on which user was
involved in the action.
Other failed access events.
In addition, PI Manual Logger logs summary information for each user session at the
beginning and end of the session. The information includes:
The user logged on or off the PI Manual Logger system and when.
The tours were created and changed.
The number of tags that failed to archive or were overwritten during the user session.
When data is added through a mobile device, PI Manual Logger Mobile also records
messages and user session activities. After the mobile device is connected to the host (a PC or
Web Services Server), PI Manual Logger downloads the message log from the device and
saves it in the database. For details about message logging in PI Manual Logger Mobile, see
Message Log Page (page 165).
To view the history of the PI Manual Logger message log, select PI M L > M essage Log.
In the M essage Log Viewer dialog box, you can view logs in Grid View and Plain Text
View by clicking the corresponding tabs. To view all logs in the PI Manual Logger database,
click Show Saved Logs.
Note: Show Saved Logs displays 30 days at a time. Continue to press the Show Saved
Logs button to view additional days.
Double-click View Logs. In the M essage Log Viewer dialog box, you can view the logs in
Grid View or Plain Text View by clicking the corresponding tabs.
190
Appendix B
Note: You must manually run Update Tag Attributes whenever tag attributes or digital
states are modified on the PI Server, or use the PIML Windows Service to update
them automatically.
In the PI Tags and Digital States dialog box, you can update tag attributes, keep digital
states used in PI Manual Logger in sync with the target PI Server, update cached tag values in
the PI Manual Logger database, and send queued data to the PI Server.
To update tag attributes for individual tags, select the tag(s) you want to update, right-
click, and select Update Tag Attributes for Selected Tags.
To update tag attributes for all tags, right-click in the PI Tags page, and select Update
Tag Attributesfor All Tags. This may be a time-consuming process, depending on the
number of tags in the database.
To remove tags from PI Manual Logger, select the tag(s), right-click and select Remove
Selected Tags from PI M L. Use this to remove:
Tags that were removed from the PI Server since they were added to PI Manual
Logger
Tags that are no longer in use in PI Manual Logger.
To update digital states, click the PI Digital States tab, right-click anywhere in the page,
and select Update Digital States. Always update digital states before running a tour.
Tab Relevant Actions
PI Tags Displays all tags within all tours currently defined.
PI Digital States Displays the digital states included in all tours.
Queued Data
Displays all queued (future) data waiting to be sent to the PI Server. Click to
send the data.
Cached Values Displays the cached values for the selected tags on the PI Tags tab when you click
on the toolbar of the PI Tags tab. You can also right-click in the PI Tags tab and
select Show Cached Value.
Archive Values Displays the archived values for the selected tags on the PI Tags tab when you
click on the toolbar of the PI Tags tab. You can also right-click in the PI Tags
tab and select Show Archive Data.
Concordance Displays all tours in which a tag is used for tags selected in the PI Tags tab when
you click on the toolbar of the PI Tags tab. You can also right-click in the PI
Tags tab and select Show Tour Tag Concordance.
You can display trending for any selected tag on the PI Tags tab when you click on the
toolbar or right-click in the PI Tags tab and select Show Trend for Selected Tags.
192
Archive Values
Archive Values
The Archive Values page displays the archived values for a PI tag. To display these values,
select PI M L > PI Tags and Digital States, and in the PI Tags tab, right-click a tag and
select Show Archive Data.
In the Archive Values tab that appears, you can display trends, show annotation details, add
a comment to an existing tag value, or delete selected values from the PI Server.
Note: If your user account does not have permission to delete PI tag values from the PI
Server, the menu item is unavailable. For details about account permissions, see
Configure Global Options (page 43).
Queued Data
To send queued data to the PI Server, select PI M L>PI Tags and Digital States and click the
Queued Data tab. Then, right-click anywhere on the page, and select Send to PI . This action
sends all queued data that is now viable (less than 10 minutes into the future), not merely the
selected data.
In addition to this feature, PI Manual Logger Windows Services also sends queued data to the
PI Server automatically on a scheduled basis after the timestamp of the queued data becomes
current.
194
Appendix C
Tour Migration
The PI Manual Logger Tour M igration Tool is an add-on application for PI Manual Logger
2.x that allows you to migrate existing PI Manual Logger 1.4.x tour data to the PI Manual
Logger 2.x database format.
Note: If you are running PI Manual Logger version 1.3 or earlier, you must use PIML
1.4.x to migrate to the 1.4 database format first, and then migrate to 2.x.
After you know the location of your database file, save the database file to a back-up storage
location, such as a separate backup server, a network share, or a different folder on your PC.
You can upgrade the tour definition backups later to the new version and the new data store
using the PI Manual Logger Tour M igration Tool.
Note: Not all information in tour definitions is migrated into the new database format. For
details, see What is Not Migrated (page 200).
Note: Before importing tour data into the PI Manual Logger 2.x database, you must set
up the correct SQL connection to your SQL Server database. For details, see
section Configure SQL Server (page 18).
2. The PI Manual Logger 2010 Tour Migration Tool allows you to maintain the tag
sequence order as defined in tours migrated from PIML 1.4. Select check box, Keep tag
sequence order and disregard group order if you want to preserve tag sequence order.
3. Click Browse to locate your PI Manual Logger 1.4.x Access database. The database file
must have the . mdb extension.
198
Migrate Tour Data
4. Click Start to begin the tour migration process. The Assign Permission Groups dialog
box appears.
5. Choose the appropriate full permission and data entry permission groups for all tours that
are being migrated. For details about permission groups, see section Manage the User
Database (page 181).
The Tour M igration Tool window shows the migration process details.
PI Manual Logger 2.x records all tour migration events in its Message Logs. Use the PI
Manual Logger Message Log Viewer (page 120) for auditing or reviewing purposes.
After a tour has been migrated with the Keep tag sequence order and disregard group
order check box selected, users can manually sequence tags. See section Reorder Tags and
Tag Groups (page 91) for details.
What Is Migrated
The following tour information is migrated to the PI Manual Logger 2.x database format:
Tour name
Tour description
All tags defined in the tour
All comment tags
Tag limit specifications
All equipment defined in the tour (migrated as Tag Group Names)
All barcodes defined in the tour
All location text defined in the tour (migrated as Operator Instructions)
All system states (digital states) associated with the tour
200
Appendix D
Note: A restart of the IIS services may be necessary after installation and configurations
are complete.
After the IIS configuration is complete, follow these additional steps in section Post-IIS
Configuration Procedures (page 209). They are not dependent on your operating system.
202
Configure IIS in Windows XP/2003
7. Set the authentication methods. To access the Authentication M ethods dialog box, click
the Directory Security tab on the PimlWebServices Properties dialog box and then
navigate Anonymous access and authentication control > Edit.
2. Open Internet Information Services (IIS) Manager from Start > Control Panel >
Administrative Tools for Vista or Start > Control Panel > System and Security >
Administrative Tools for Windows 7.
3. If you plan to use Application Pools, then open the Application Pools and configure
appropriately for your environment. We recommend that you refer to the Microsoft IIS
documentation.
204
Configure IIS in Windows Vista/Windows 7
206
Configure IIS in Windows Server 2008
8. After the Web Application creation is complete, select the Manual Logger Web Services,
for example, PimlWebServices) to view the different configuration areas.
9. Verify the settings for the PimlWebServices. Take special note of the Authentication
and Handler M appings areas.
208
Post-IIS Configuration Procedures
2. Double-click SetUp Connection. The Database Connection Setup dialog box appears,
as shown in the following figure.
3. In the SQL Server Name field, enter the computer name and SQL Server Name
(Instance Name), if necessary. In the figure, the computer name is Weathertop. Since this
example uses SQL Express, the default Instance Name also appears: SQLExpress.
4. Make sure the Database Name is PIMLWindows, as shown in the figure.
5. If Windows Authentication mode is configured for your SQL Server instance, then check
the Use my Windows credentials check box in PI M anual Logger’s Database
Connection Setup dialog box. Microsoft recommends using Windows Authentication
when possible. Otherwise, deselect this check box and provide the appropriate SQL
Server login information.
6. Click Test to verify the connection and click OK in the message box that appears.
7. Click Apply to close the PI M anual Configuration Tools dialog box.
8. Test the Web Services by entering the following URL in a Web browser
http://<YourWebServer>/PimlWebServices/PimlWebServices.asmx
9. Click Test Connection to verify your connection to the database and PI Server.
210
Appendix E
System Requirements
Download and install the following components before installing SQL Server Express:
The latest service packs on your Windows operating system
Microsoft .NET Framework 2.0
You can download SQL Server Express from the Microsoft Web site. In addition, OSIsoft
recommends that you download Microsoft SQL Server Management Studio Express, which
provides a graphical interface to manage basic database administration tasks.
4. If you install SQL Server Express using Advanced Options, the I nstance Name screen
appears. The default SQL Server path is:
Ser ver Name\ SQLEx pr es s
You can specify the database server to a different path, such as
Ser v er Name\ PI MLSQLExpr es s
Note: Refer to the Microsoft documentation if you choose the Named Instance
button instead of using the default Instance.
In the Authentication M ode screen, we recommend that you refer to Microsoft security
recommendations.
5. Make a note of the database server path, as it is the path that the PI M anual Logger SQL
Server Configuration dialog box uses.
212
Use SQL Server Management Studio Express
Log in to the SQL Server database. Note that the Server Name field contains the computer
name + \SQLEXPRESS because the Default Instance was selected during installation of the
database. To attach or manage the PI Manual Logger SQL Server database, you must have
administrative permissions to the server.
Refer to the post-installation procedure Attaching Template Files for SQL Server 2008 / 2005
(SQL Express) (page 19) for steps to attach the PI Manual Logger database template file.
After you attach the database file, refer to the Microsoft SQL Server documentation for
adding users to access the PI Manual Logger database.
Set the client connections to Local and remote connections. In addition, set SQL Browser
Services Startup type to Automatic and set Service status to Running.
214
Appendix F
For group conditional specification, select a group from the Tree View and then select the
Tag Group Configuration tab.
After the conditional specification is entered, always verify your formula by clicking .
Note that if you use an invalid function, the function is displayed in red font.
An invalid formula elicits an error or warning. For example, if you use a PI tag that does not
exist within tour, you receive a warning. A warning is displayed because you can add the tag
to the tour at a later time (prior to running the tour) and revalidate the conditional
specification.
To activate the editor's IntelliSense feature, use these key combinations:
Ctrl + Shift. Prompts with a list of CMDE functions along with their descriptions.
Ctrl + t. Prompts with a list of tags in the tour.
Ctrl + o. Prompts with a list of CMDE operators.
216
Data Types
Data Types
Data Type Description and Examples
Double A floating point number
Integer An integer number
String Must be surrounded by double quotes.
Example: "ML Tag 101"
Note: CMDE has a 1000 character limit.
Date When dates are combined with numbers, they are
treated as doubles. 1.0 = 24 hours.
Example: TourTime() - 15
This means 15 days (360 hours) before the tour
time.
Example: TourTime() + 3.0 /24.0
This means 3 hours after the tour time.
Boolean Either True or False
Unknown Represents an indeterminate value
Supported Operators
The table below lists the operators that can appear in the CMDE in order of operation
precedence, with the highest precedence operators listed first. Operators are evaluated left to
right.
Operator Name Examples
() Parenthesis (A+ B)
F(a,b,c,…) Function CurrentValue("Tag101")
^ Power A^B
* Multiplication A*B
/ Division A/B
% Modulus A%B
+ Addition A+B
- Subtraction A-B
== Equality A == B
!= Inequality A != B
|| Logical OR A || B
218
Supported Functions
Supported Functions
This section lists the functions that are supported in the CMDE, along with a short description
and example(s) about each function.
ClockSchedule
Use any defined clock scheduling. If no clock scheduling is defined, it will have the same
effect as Col l ect Now.
Format
Cl ock Schedul e( )
Parameters
None
CollectNow
Returns Col l ec t Now value. Used in conjunction with the I F function as a return value.
Format
Col l ec t Now( )
Parameters
None
CurrentTime
Returns the current time stamp for the value collected in the tour for the TagName argument.
The tag must be part of the current tour. If the timestamp cannot be determined, unknown is
returned.
Format
Cur r ent Ti me( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the current tour.
Example
Cur r ent Ti me( " Pi ml DemoTag" )
This example returns the timestamp for the current value for the tag named
Pi ml DemoTag. If the timestamp for the current value for the tag cannot be found,
Unknown is returned.
CurrentValue
Returns the current value collected in the tour for the TagName argument. The tag must be
part of the current tour. If the value cannot be determined, Unknown is returned.
Format
Cur r ent Val ue( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the current tour.
Example
Cur r ent Val ue( " Pi ml DemoTag" )
This example returns the current value for the tag named Pi ml DemoTag. If the current
value for the tag cannot be found, Unknown is returned.
DigCode
Returns the digital code for the digital state passed. If only one argument is passed, the digital
state must be defined as part of the Digital States for the tour. If a second argument is passed,
the digital state must be one of the states for the tag passed as the second argument. The tag
passed as the second argument must be a digital tag (PointType = "Digital")
Format
Di gCode( Di gi t al St at e, [ TagName] )
Parameters
Argument Data Type Description
DigitalState String The name of any tour digital state in the current tour.
TagName String Optional argument. A digital tag name included within
the tour that belongs to the user-defined digital state
set to which the DigitalState argument belongs.
TagName is not required when the DigitalState
argument is a SYSTEM digital state that is
specifically included in the tour.
TagName is required when the DigitalState argument
is a digital state from a user-defined digital state set.
Examples
Example 1
Di gCode( " Uni t Down" )
This example returns the digital code for the tour digital state "Uni t Down".
220
Supported Functions
Example 2
Di gCode( " Of f " , " Pi ml Di gi t al DemoTag" )
This example returns the digital code for the Of f digital state of the
Pi ml Di gi t al DemoTag digital tag.
Example 3
I f ( Cur r ent Val ue( " T2002. ML" ) == Di gCode( " Manual " ,
" Di gi t al ModesTag" ) , Ski p( ) , Col l ect Now( ) )
OR
I f ( Cur r ent Val ue( " T2002. ML" ) == Di gCode( " Manual " , " T2002. ML" ) ,
Ski p( ) , Col l ec t Now( ) )
where T2002. ML and Di gi t al ModesTag are digital tags included in the tour and are
associated with the "Modes " digital state set that includes the "Manual " state.
Example 4
I f ( Cur r ent Val ue( " T1001. ML" ) == Di gCode( " Uni t Down" ) , Sk i p( ) ,
Col l ec t Now( ) )
where "Uni t Down" is a SYSTEM digital state that is included in the tour.
Note that typically the first tag in a group represents the status of the equipment. This can be
a digital state, such as on/ of f , r unni ng/ out of ser vi ce, and so forth. If this status
shows the equipment is off, no other tags need to be collected.
Assume the following Tag and Group structure in your Tour, where R- 200 is a group and
T1001. ML, T1002. ML, and T1003. ML are tags within this group:
R- 200
- T1001. ML
- T1002. ML
- T1003. ML
If the first tag in the group, T1001. ML, represents the status of the equipment for the whole
group, then the above CMDE formula can be assigned at the group level, R- 200. In this
case, remember:
No CMDE is applied to the first tag, so T1001. ML is always due for collection.
If the tag T1001. ML is assigned the SYSTEM digital state ‘ Uni t Down’ during a tour
run, then tags T1002. ML and T1003. ML will be skipped. Otherwise, they will be due
for collection.
Another alternative is to create a subgroup, R- 200a, within group R- 200 such as:
R- 200
T1001. ML
R- 200a
- T1002. ML
- T1003. ML
where the above CMDE formula is assigned to subgroup R- 200a. In this case, remember:
No CMDE is applied to the first tag, so T1001. ML is always due for collection.
If the tag T1001. ML is assigned the SYSTEM digital state ‘ Uni t Down’ during a
tour run, then the tags within subgroup R- 200a, which include T1002. ML and
T1003. ML, will be skipped. Otherwise, they will be due for collection.
An additional alternative is to associate the CMDE formula with each tag within the group to
which its collection status is dependent.
If
Returns the value of the Tr ueResul t argument if the Condition argument is "true", and
returns the value of the El s eRes ul t argument if the Condition argument is "false."
Format
I f ( Condi t i on, Tr ueRes ul t , El seRes ul t )
Parameters
Argument Data Type Description
Condition Boolean Valid expression that will evaluate to True or False.
TrueResult Any Any expression that will be returned when Condition
argument evaluates to True.
ElseResult Any Any expression that will be returned when Condition
argument evaluates to False.
Example
I f ( Cur r ent Val ue( " TI 001. ML" ) < 32, Col l ect Now( ) , Ski p( ) )
This example prompts for data collection when the current value of the TI 001. ML tag is
less than 32; otherwise the tag is not prompted for collection.
222
Supported Functions
IsUnknown
Returns "true" if the expression cannot be evaluated due to missing or unknown data,
otherwise returns "false."
Format
I sUnk nown( Expr es si on)
Parameters
Argument Data Type Description
Example
I sUnk nown( Pr ev i ousTi me( " TI 001. ML" ) )
This example returns "true" if the previous time of the tag TI 001. ML is unknown, that
is, could not be found, otherwise it returns "false."
LastArchivedTime
Returns the timestamp of the last archived value for the TagName argument. This TagName
argument can be any PI tag in the PI Server and does not necessarily need to be in the tour. If
the last timestamp cannot be determined, Unknown is returned.
Format
Las t Ar chi v edTi me( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the PI Server. The tag
does not necessarily need to be in the tour.
Example
Las t Ar chi v edTi me( " Pi ml DemoTag" )
This example returns the timestamp for the last archived value for the tag named
Pi ml DemoTag. If the timestamp for the last archived value cannot be found for the tag,
then Unknown is returned.
LastArchivedValue
Returns the last archived value for the TagName argument. This TagName argument can be
any PI tag in the PI Server and does not necessarily need to be in the tour. If the last value
cannot be determined, Unknown is returned.
Format
Las t Ar chi v edVal ue( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the PI Server. The tag
does not necessarily need to be in the tour.
Example
Las t Ar chi v edVal ue( " ML Tag 101" )
This example returns the last archived value for the tag named ML Tag 101. If the last
archived value cannot be found for the tag, then Unknown is returned.
PreviousTime
Returns the time stamp of the last collected value from previous tours for the TagName
argument (for the timestamp of the tag in the current tour, use the Cur r ent Ti me function).
The tag must be part of the current tour. If the last timestamp cannot be determined,
Unknown is returned.
Format
Pr evi ous Ti me( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the current tour.
Example
Pr evi ous Ti me( " TI 001. ML" )
This example returns the timestamp for the latest previous value of the tag named
TI 1001. ML. If the timestamp for the previous value cannot be found for the tag,
Unknown is returned.
224
Supported Functions
PreviousValue
Returns the last collected value from previous tours for the TagName argument (for value of
the tag in the current tour, use the Cur r ent Val ue function). The tag must be part of the
current tour. If the last value cannot be determined, Unk nown is returned.
Format
Pr evi ous Val ue( TagName)
Parameters
Argument Data Type Description
TagName String The name of any PI tag in the current tour.
Example
Pr evi ous Val ue( " TI 001. ML" )
This example returns the previous value for the tag named TI 001. ML tag. If a previous
value cannot be found, Unk nown is returned.
Skip
TourTime
Sample Usage
The following provides examples using the CMDE formula for conditional data entry.
Example
I f ( I s Unknown( Cur r ent Val ue( " Tag1" ) ) , Ski p( ) ,
I f ( Cur r ent Val ue( " Tag1" ) >175, Cl oc kSc hedul e( ) , Ski p( ) ) )
If the value of Tag1 is not filled in for the tour yet then skip data collection, otherwise, if
the current value is greater than 175, use the Clock Scheduling to determine the tag due
status, if the current value is not greater than 175, then skip data collection.
Example
I f ( Cur r ent Val ue( " Tag1" ) +Cur r ent Val ue( " Tag2" ) <=100, Col l ec t Now( ) ,
Ski p( ) )
If the sum of current values for Tag1 and Tag 2 is less than or equal to100, then collect
the data, otherwise, skip data collection.
Example
I f ( Cur r ent Val ue( " Tag1" ) ==Di gCode( " OPEN" , " Tag1" ) | |
Cur r ent Val ue( " Tag2" ) ! = Di gCode( " St opped" , " Tag2" ) , Col l ect Now( ) ,
Ski p( ) )
If the current value of Tag1 is OPEN or the current value of Tag2 is not St opped, then
collect the data; otherwise, skip data collection.
Example
I f ( Cur r ent Val ue( " Tag1" ) <=Di gCode( " St at e50" , " Tag1" ) &&
Cur r ent Val ue( " Tag1" ) >= Di gCode( " St at e10" , " Tag1" ) ,
Cl ock Schedul e( ) , Sk i p( ) )
If the current value of Tag1 is between St at e10 to St at e50 inclusive, use the Clock
Scheduling to determine the tag due status; otherwise, skip data collection.
Example
I f ( Tour Ti me( ) - Las t Ar c hi v edTi me( " Tag1" ) >7, Col l ect Now( ) ,
Ski p( ) )
If Tag1 has no archive values in the last 7 days then collect the data; otherwise, skip data
collection.
Example
I f ( Tour Ti me( ) - Pr ev i ousTi me( " Tag1" ) >7, Col l ec t Now( ) , Sk i p( ) )
If Tag1 has not been collected for a previous tour in the last 7 days then collect the data;
otherwise, skip data collection.
226
Limitations
Limitations
The total number of characters (including spaces) of a CMDE formula cannot exceed 1000 to
save database space. If a formula has more than 1000 characters, PIML displays a validation
error message, automatically truncates extra characters, and validates against only the first
1000 characters of the formula.
CMDE is not case-sensitive and spaces are optional.
7. Compression Specifications
PI Manual Logger data will be subject to compression if the value being written is the
newest value for the tag. Compression does not apply when writing values older than the
current snapshot of the tag, such as historical values. See the section on compression
specifications in the Introduction to PI Server System Management documentation for
more information on compression.
8. Point Value Range: Zero, Span and Typical Value
PI Manual Logger does not use the Zero, Span, or Typical Value, but they are shown in
PI Manual Logger to help the data entry user.
9. Configuring Shutdown Events: Shutdown
The shutdown attribute controls whether the PI Server writes a value of Shutdown to the
PI tag whenever the server is shut down. Although it has no direct effect on PI Manual
Logger, you may set it according to your preferences for your PI Manual Logger tags.
10. Point Security: PtOwner, PtGroup, PtAccess, DataOwner, DataGroup, DataAccess
PI Manual Logger must have read and write access to data for all the tags it is configured
to use. For more information on configuring PI tag security, see the section on point
security in the Introduction to PI Server System Management documentation.
230
Appendix H
For details about configuring the SQL Server connection for the PI Manual Logger Windows
client and Windows Service, refer to the PIML Windows Services and SQL Server (page 19)
section.
For details about configuring the SQL Server connection for the PI Manual Logger Web
Service, refer to Appendix Custom Web Service Access (page 201), section Post-IIS
Configuration Procedures.
The first time you run the new version of Manual Logger, the user must have db_owner
privileges to upgrade the SQL Server schema for the PI Manual Logger database instance.
To remove PI Manual Logger Mobile from multiple devices, use the Remove Programs
feature on each device. Click Start > Settings > System > Remove Programs and
remove OSIsoft PI Manual Logger Mobile.
For Windows Mobile 5 or earlier devices, repeat these steps to remove Microsoft SQL
Server 2005 Compact and Microsoft .NET CF 2.0.
232
Note: On Pocket PC 2003 devices, a hard/cold reset on each mobile device
removes PI Manual Logger Mobile components, including SQL Server
Compact Edition and .NET Compact Framework, in addition to other custom
installed applications. Windows Mobile 5 and greater devices provide the
concept of persistent storage, which means these devices do not lose data if
the device experiences a cold boot or power loss.
4. Install the new version of PI Manual Logger Mobile with SQL Server Compact Edition
and .NET Compact Framework 2.0. Note that Windows Mobile 6 devices are pre-loaded
with SQL Server Compact Edition and .NET Compact Framework 2.0, so there is no
need to install these two components. For information about installation on additional
devices, see section Install on Multiple Devices (page 133).
You can contact OSIsoft Technical Support 24 hours a day. Use the numbers in the table
below to find the most appropriate number for your area. Dialing any of these numbers will
route your call into our global support queue to be answered by engineers stationed around
the world.
Office Location Access Number Local Language Options
San Leandro, CA, USA 1 510 297 5828 English
Philadelphia, PA, USA 1 215 606 0705 English
Johnson City, TN, USA 1 423 610 3800 English
Montreal, QC, Canada 1 514 493 0663 English, French
Sao Paulo, Brazil 55 11 3053 5040 English, Portuguese
Frankfurt, Germany 49 6047 989 333 English, German
Manama, Bahrain 973 1758 4429 English, Arabic
Singapore 65 6391 1811 English, Mandarin
86 021 2327 8686 Mandarin
Perth, WA, Australia 61 8 9282 9220 English
Support may be provided in languages other than English in certain centers (listed above)
based on availability of attendants. If you select a local language option, we will make best
efforts to connect you with an available Technical Support Engineer (TSE) with that language
skill. If no local language TSE is available to assist you, you will be routed to the first
available attendant.
If all available TSEs are busy assisting other customers when you call, you will be prompted
to remain on the line to wait for the next available TSE or else leave a voicemail message. If
you choose to leave a message, you will not lose your place in the queue. Your voicemail will
be treated as a regular phone call and will be directed to the first TSE who becomes available.
If you are calling about an ongoing case, be sure to reference your case number when you call
so we can connect you to the engineer currently assigned to your case. If that engineer is not
available, another engineer will attempt to assist you.
Search Support
From the OSIsoft Technical Support Web site, click Search Support.
Quickly and easily search the OSIsoft Technical Support Web site's support solutions,
documentation, and support bulletins using the advanced MS SharePoint search engine.
[email protected]
When contacting OSIsoft Technical Support by e-mail, it is helpful to send the following
information:
Description of issue: Short description of issue, symptoms, informational or error
messages, history of issue.
Log files: See the product documentation for information on obtaining logs pertinent to
the situation.
From the OSIsoft Technical Support Web site, click Contact Us > M y Support > M y Calls.
Using OSIsoft's Online Technical Support, you can:
Enter a new call directly into OSIsoft's database (monitored 24 hours a day)
View or edit existing OSIsoft calls that you entered
View any of the calls entered by your organization or site, if enabled
See your licensed software and dates of your Service Reliance Program agreements
236
Remote Access
From the OSIsoft Technical Support Web site, click Contact Us > Remote Support.
OSIsoft Support Engineers may remotely access your server in order to provide hands-on
troubleshooting and assistance. See the Remote Access page for details on the various
methods you can use.
On-Site Service
From the OSIsoft Technical Support Web site, click Contact Us > On-site Field Service
Visit.
OSIsoft provides on-site service for a fee. Visit our On-site Field Service Visit page for more
information.
Knowledge Center
From the OSIsoft Technical Support Web site, click Knowledge Center.
The Knowledge Center provides a searchable library of documentation and technical data, as
well as a special collection of resources for system managers. For these options, click
Knowledge Center on the Technical Support Web site.
The Search feature allows you to search Support Solutions, Bulletins, Support Pages,
Known Issues, Enhancements, and Documentation (including user manuals, release
notes, and white papers).
System Manager Resources include tools and instructions that help you manage archive
sizing, backup scripts, daily health checks, daylight saving time configuration, PI Server
security, PI System sizing and configuration, PI trusts for interface nodes, and more.
Upgrades
From the OSIsoft Technical Support Web site, click Contact Us > Obtaining Upgrades.
You are eligible to download or order any available version of a product for which you have
an active Service Reliance Program (SRP), formerly known as Tech Support Agreement
(TSA). To verify or change your SRP status, contact your Sales Representative or Technical
Support (http://techsupport.osisoft.com/) for assistance.
240
Work Offline • 99
Work Requests • 98