Afternoon...
Yes you can use VBScript, you just need to remember no Intellisense etc
So a little tip is to just use VB6 to check syntax for PISDK calls then remove the type declarations for variables.
I bet you want an example too, here is a basic one:
Code:
Dim mySDK
Set mySDK = CreateObject("PISDK.PISDK")
Dim myServer
Set myServer = mySDK.Servers("localhost")
Dim myPoint
Set myPoint = myServer.PIPoints("sinusoid")
wscript.echo myPoint.Data.Snapshot.Value
Set myPoint = Nothing
Set myServer = Nothing
Set mySDK = Nothing
Same things apply as normal, security, error handling etc but I will leave those parts up to you to sort out
Cheers,
Rhys.
OSIsoft PI System SpecialistsPI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!