LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to read structure variable from a binary file

Hi Everyone,

 

Iam having a binary file created by c++.It contains structure  like this one...

struct

{

      char name[2];

      unsigned short num;

      char identity[4];

      double date;

      union

      {

          byte id[4];

          int sizeconst;

          int size;

      }

}

 

I want to read this struct file in labview. How can i do that?

0 Kudos
Message 1 of 2
(2,279 Views)

Once I had the same problem, I've asked NI-support and they said to me because of different kind of reading method that that operation is impossibile to do, so the solution to solve the problem has been to create a C++ library that reads the structure from the file and makes disponible the data. After, I've called the library by "Call by library function" in my Labview software.

Ricky
Italian Developer engineer
www.www.selt-sistemi.com
0 Kudos
Message 2 of 2
(2,272 Views)