in reply to Re: Win32::OLE error
in thread Win32::OLE error

Since most OPC servers are pretty good at doing the type conversions, try changing the VT_R4 described previously to VT_BSTR. That should take your scalar value as a number or string and pass it to the OPC Server as a string. The OPC server should then be able to decode it back to whatever it needs. It worked with my OPC Server that expected VT_R4 data.