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.
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
|1||(default) Disables PI SDK buffering|
|0||Enables 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??