[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
1,255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 750 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

656 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