10-15-2014 03:16 AM
How do I read/convert the data type "VT_CY" using the "DataSocket Read.vi"?
10-15-2014 03:42 AM
10-15-2014 03:48 AM
When I try reading it as a string it returs an empty value
10-20-2014
08:10 AM
- last edited on
05-06-2025
04:40 PM
by
Content Cleaner
Hi RasmusVistisen,
Thank you the post. Apologies for the delay in the reponse of the post.
I am unfamilar with the "VT_CY" data type, but I think it does represent a currency string. How are you trying to pass the data type through the dataSocket read vi? Can you post a vi snippet?
VI snippet:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US
Ive attached examples of how to pass a string through the dataSocket Read.
Regards,
DanC12
10-20-2014 08:21 AM
Hi Dan,
thanks for the reply. I have more or less solved the problem by some reverseengineering. I found a OPC client that could read the data to compare with. I read the data as a variant (think it was 64 bytes....) and looked for the hexadecimal values that gave the right value and converted those. its not pretty, and a little shaky, since i don't know if it will work in all cases.