YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

_PIValues.Load ? Options · View
mrmot
#1 Posted : Friday, June 05, 2009 2:27:44 PM
Rank: Newbie
Groups: Member

Joined: 6/5/2009
Posts: 4
Location: Serbia
Hi all.

Does someone know how to use this function.
void Load(int Count, ref Array Values, ref Array Times, ref Array nvAttribs);
It's defined in _PIValues interface. I've tried to define some arrays, but with no positive results Brick wall
What should be types of arrays, or is there any other way to load values for point?

Next function doesn't help me ...
oVals = myPIPoint.Data.RecordedValues(startTime, endTime, PISDK.BoundaryTypeConstants.btInside, "", PISDK.FilteredViewConstants.fvShowFilteredState, null);
where: PISDK.PIValues oVals;, PISDK.PIPoint myPIPoint;,

I wanto to "oVals.Load()"
Or, is there any other way to get values(like double, string, int, etc.)


I'm working with AF SDK also, and there is everything ok. There is this function:
AFValues afValues = attribute.GetValues(afTimeRange, 0, null); and this one retrieves all of data...



Thanks in advance
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Friday, June 05, 2009 10:51:02 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello and welcome!

Just to calrify, you have a PIPoint object for which you want to retrieve PIValues object?
Why does "myPIPoint.Data.RecordedValues(StartTime, EndTime)" not do what you require? This will retireve PIValues between specified timerange.

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
mrmot
#3 Posted : Monday, June 08, 2009 8:51:28 AM
Rank: Newbie
Groups: Member

Joined: 6/5/2009
Posts: 4
Location: Serbia
I've found it Smile
RecordedValues does return values. I had some code issues.

Thanks for fast reply

Djuro
RJK Solutions
#4 Posted : Monday, June 08, 2009 8:58:37 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
No problem! Smile
Glad you got it working...

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.