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