11-13-2006 10:01 AM
11-15-2006
10:44 AM
- last edited on
08-11-2026
01:20 PM
by
Content Cleaner
Hi schlew,
Unfortunately your initial suspicions are correct. There is no direct way to read a cluster data type in a C++ environment using Measurement Studio data sockets. There are a couple of different options to read the cluster in. Probably the easiest is the one you mentioned of creating a client within LabVIEW that reads that data from the data socket connection and parses the data into the individual elements. It would be possible to build a dll out of the LabVIEW code so you could call this directly within your C++ code. Here is a link to a KB that explains how to call a LabVIEW dll from C++. As far as creating the dll itself, it is very similar to creating an executable, but in your build options you select to build a dll.
The other option that requires a little more work would be to modify the original LabVIEW code so that it is sending a byte array, and then parse the byte array on the receiving end in the C++ code. Hope this helps!
11-15-2006 12:08 PM