You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, could it be like this:
let v_errors = new winax.Variant([], 'long');
opc_items.Validate(tagList.length, tagList, new
winax.Variant(v_errors, 'byref'))
"ByRef Errors() As Long" not Optional and not RetVal
сб, 10 дек. 2022 г. в 21:24, Jason Serafin ***@***.***>:
I am getting this error:
let errors = opc_items.Validate(tagList.length, tagList)
^
Error: DispInvoke: Validate Type mismatch.
on last line of following code:
From this code:
let winax = require('winax');
let con = new winax.Object('Graybox.OPC.DAWrapper');
con.Connect('Matrikon.OPC.Simulation.1', 'localhost')con.ClientName = 'OpenOPC';
let groups = con.OPCGroupsgroups.DefaultGroupUpdateRate = -1let opc_group = groups.Add()opc_group.IsSubscribed = 1opc_group.IsActive = 1let opc_items = opc_group.OPCItemslet tagList = ['Random.Real8']let errors = opc_items.Validate(tagList.length, tagList)
Specification for the function:
Validate (Count As Long, ItemIDs() As String, ByRef Errors() As Long,
Optional
RequestedDataTypes As Variant, Optional AccessPaths As Variant)
other object methods work with no problem. AddItem method of OPCItems
object cause nodejs to exit with no error.
Attached is the library docs
OPC DA Auto 2.02 Specification.pdf
<https://github.com/durs/node-activex/files/10200656/OPC.DA.Auto.2.02.Specification.pdf>
—
Reply to this email directly, view it on GitHub
<#117>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEMMNILPRCCNYPCY4QMV6LWMTDHFANCNFSM6AAAAAAS2NIBLY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
I am getting this error:
From this code:
Specification for the function:
Validate (Count As Long, ItemIDs() As String, ByRef Errors() As Long, Optional
RequestedDataTypes As Variant, Optional AccessPaths As Variant)
other object methods work with no problem. AddItem method of OPCItems object cause nodejs to exit with no error.
Attached is the library docs
OPC DA Auto 2.02 Specification.pdf
The text was updated successfully, but these errors were encountered: