AnsweredAssumed Answered

Check if PISDK Buffering is Enabled via VBA

Question asked by MaxStrueverWipro on Aug 28, 2017
Latest reply on Aug 29, 2017 by MaxStrueverWipro

I have a ProcessBook with some VBA that allows writing a value to a tag

I want to ensure that buffering is enabled, so that the value makes it to all collective members, and to avoid the error:

[-11414] Buffered point not accepting new events.

http://techsupport.osisoft.com/techsupport/nontemplates/KB/article.aspx?id=KB00093

 

I found a way to programmatically check if PISDK buffering is enabled for a given

 

Dim MyPISDK As Object
Dim ExtPISDK As PISDK.IPISDKOptions
Set MyPISDK = CreateObject("PISDK.PISDK")
Set ExtPISDK = MyPISDK
Dim buffering As Integer
buffering = ExtPISDK.GetEnvironmentOptions("NOPISDKBUFFERING").Value

 

according to the PISDK help file, these are the options

NOPISDKBUFFERING valueEffect
1(default) Disables PI SDK buffering
0Enables PI SDK buffering

 

however, I am getting a value of -1

I have the slightly newer PISDK that includes Buffering Manager.

 

and no matter if I enable or disable the PISDK Buffering from the PISDK utility, I always get a -1 value.

so it seems it may not be possible to check if buffering is enabled if you have the newer PISDK and Buffering Manager, is this right??

Outcomes