Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Writning OPC arrays

I am using the data socket in measurement studio 6 to read and write to OPC servers, In my current project i want read and write arrays from OPC servers, reading arrays is no problem but when trying to connect and write to an OPC array i always get an datatype error. Is it possible to write OPC arrays with data socket? If it is possible what is the differernt setup that must be done for writing OPC arrays that is not necessary for writning normal OPC tags.
0 Kudos
Message 1 of 2
(5,885 Views)
I found the solution in a posting from Asko, it is necessary to set the data before connecting. Dim a correct size array and put dsWrite.Data.Value = myVal there myVal is the array before executing ConnectTo.

Thank you Asko for the solution.
0 Kudos
Message 2 of 2
(5,885 Views)