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.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Import REAL48 (binary) into an external application

Hello,
 
I need to import binary REAL48 data into an external C++ program. What is the best way of doing this ?
In case of having to write a conversion - What is the layout of the bits involved ?
 
Best Regards,
 
Moke
0 Kudos
Message 1 of 5
(4,591 Views)
Hello Moke,

I am attatching a PDF with the Data Set Description. It will give you an idea how to interpret the header and the binary data.

regards
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 5
(4,579 Views)

Hello IngoS,

having read your response, I realized how bad my initial description of the problem was Smiley Sad. I  know the document you refer to.

By using this specification I am importing succesfully 4 Byte and 8 Byte floating point values. The issue is to convert the 48 bit values into

floats /doubles in C++.

Thanks a lot for your quick response anyway.

Best Regards,

Moke.

0 Kudos
Message 3 of 5
(4,576 Views)
Hello Moke,

The data types used in the DIAdem DAT format correspond to those that were common in Pascal programming. Have a look at this link to learn a bit more about the Pascal data types.

I am hoping you find this information a bit useful.

Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 4 of 5
(4,571 Views)
Hello Moke,

you can find an example here.

Stefan
0 Kudos
Message 5 of 5
(4,562 Views)