From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(1,919 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
(1,912 Views)