Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

PIAPI C example program

$
0
0
Hi !
Good morning everyone! This is my first post on this forum and I am a new user of PI, so I hope that you will understand my problem...
We have PI system running on a Windows server. We are trying to compile and run the C sample program given in the directory C:\Program Files\PIPC\EXAMPLES\C>, we could build the this C sample but while running we get an error as follows
 
C:\Program Files\PIPC\EXAMPLES\C_new\Debug>apisnap.exe
 
PI-API version 1.6.1.17
 Attempting connection to Default homenode
 Error -1, connecting to Default homenode
C:\Program Files\PIPC\EXAMPLES\C_new\Debug>
 
I do get same error while running with the hostname as a parameter for this sample  'apisnap hostname'. I am running this program where the PI server is installed and running. I could get the tags and values through "PI System management tool"pi1.png
 
 
Q1) Do we have to add any information on the PI system to run a program (apisnap.exe) like adding any credential or trust. If so, where and how we can add the same.
 
Thank you in advance.
Raju
 

Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>