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,193 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 36

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now