LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Control (.ctl) to VB Structure

I created a control in LabView.  My LabView code writes data of that type to a binary file.  I want to read this data into a VB Structure.

 

Can I do this programmatically, or do I need to manually create a corresponding structure?

0 Kudos
Message 1 of 3
(2,992 Views)
One end or the other will have to do some translation of the data. Are you saving clusters? If the data type is a simple type such as an integer or a double or an array of this type you should be able to read it directly. If it is a cluster than you will have to do some translation. Which side you do that on is up to you. Also, the write to binary VIs can place some header information (namely the array or string size) so you either have to not write this data or account for it in your VB program if you will perform the translation on that end.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,968 Views)

It is considered rude to cross post, as it makes people waste their time. If you do cross post, include a link to the other discussion, so people can see which answers you already got.

 

Incidentally, I suggest you continue the discussion here, as this board gets a lot more LV-related traffic than SO.


___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(2,952 Views)