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,210 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

832 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