Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

get the datasocketdata.value actual type

Hello everybody,

 

When using datasoket lib under C# to read OPC server items,
how can I retrieve the OPC item actual type (i.e Word, DWord, string , array of ... )
to convert the datasocketdata.value wich is of type object to the OPC item type ?

 

thank you for your support.

 

B.Williot

0 Kudos
Message 1 of 3
(3,173 Views)

Hello.

 

Here's a C function to get datasocket data type.

 

Best regards

0 Kudos
Message 2 of 3
(3,161 Views)

Thank you for your reply, it will be usefull for me when using datasockets with labwindows,

but is there the equivalent function in C# ?

 

Regards

 

B.Williot

0 Kudos
Message 3 of 3
(3,156 Views)