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

Getting Historic Values and Text-boxes Options · View
Big
#1 Posted : Monday, February 08, 2010 6:40:59 PM
Rank: Member
Groups: Member

Joined: 1/19/2010
Posts: 11
Location: Baton Rouge
This is actually two different questions.

First, what is used to pull historic values? I want to pull a value of a point 10 hours ago, 24 hours ago, etc. I've been attempting to use the "timedvalue" function but the code has not sucessfully executed.

Second, how do you create a text-box in a Processbook Display where a user can enter values? I've been copying and pasting the textbox from the VBA Examples for use in my displays. I have been unable to find how to create one otherwise.

Also (guess this is three question), is it possible to get pull-down boxes in processbook displays? It would be great to have one to populate and the user can select options from.
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 : Monday, February 08, 2010 7:30:48 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Three questions in one thread, I will have to charge you triple BigGrin Tongue

If you just want a value via PISDK for a time in the past, just use ArcValue method using the appropriate Retrieval Type Constant (e.g. Interpolated, AtOrBefore).

For a TextBox/Dropdown just use the "Microsoft Forms" objects via the add object menu option in ProcessBook in build mode, then you can access them via VBA (remember to set EnableScripting). Then manipulate them to your hearts content.

Let me know if you need any examples...

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Big
#3 Posted : Tuesday, February 09, 2010 4:20:04 PM
Rank: Member
Groups: Member

Joined: 1/19/2010
Posts: 11
Location: Baton Rouge
Thanks again!

Now my Processbook doesn't list the Microsoft Forms in the "insert object" menu. This is from the FM20.DLL file, correct? I have that file on my computer so I'm not sure why it is not being seen by Processbook.

If you have time for an example with ArcValue, then that would be greatly appreciated as I'm unsure of when I'll have time to play with it.
RJK Solutions
#4 Posted : Tuesday, February 09, 2010 6:19:57 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Sure, I have an example on here already from some time ago.
Here is the link: http://www.rjksolutionsl...and-Archive-values.aspx

Enjoy!
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Big
#5 Posted : Thursday, February 11, 2010 6:00:58 PM
Rank: Member
Groups: Member

Joined: 1/19/2010
Posts: 11
Location: Baton Rouge
Thanks! Got it working quickly with that example.
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.