Solved

How would you debug an application that retrieves data via PI-SDK without access to an OSIsoft PI Server?

Posted on 2008-06-16
2
1,216 Views
Last Modified: 2013-11-15
I would like to know whether there are any practical software options or development approaches  for debugging applications that integrate with the OSIsoft PI Server without purchasing a licence for the complete product, e.g., test bed.

We have a data management application written in Delphi 7 which retrieves data from the PI server via the OSIsoft PI Software Development Kit version 1.3.2.  The API is imported via a type library.  The key interface used for our data access is IPICalculation using the Calculate and ExpressionSummaries methods.  We also obtain the values from the object model using the RecordedValues method of the PIData object for a given point.

Our basic approach is to retrieve the values for a given tag, called a "trigger", over a period beginning from when the server was last queried through to the current time.  This period is divided into time intervals based on when this tag changes value.  The values for each expression are then evaluated over each of these intervals.  The data is then written to a CSV file.
0
Comment
Question by:dogbert8
2 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 21810794
if you want to debug, you usually have an error or some erroneous behaviour ...

if you don't want to buy a license consider writing messages to a log file
if you can create csv files, it should be just as easy to create a simple txt file.

it is a lot more tedious than debugging

maybe add a compiler directove like {$DEFINE WITHLOG} also possible in Delphi Ide (Project options)

and then in code
{$IFDEF WITHLOG}
  AddLog('Parameter = ' + ParameterValue);
{$ENDIF}

You can then recompile without the compiler directive to have the version without logs ...

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question