LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What type of data type does the Write to Binary File function output?

When using the Write to Binary File function to make a bin file, what type of data does it save it as?  I noticed that there were no properties or options you can change to see how much significant digits your data can have.
0 Kudos
Message 1 of 7
(3,528 Views)
It saves the data as whatever data type you wire in. Wire in SGL, DBL, I32, U32, etc and thats the type that is saved. Significant digits is meaningless with the Write to Binary. The precision is exactly the same as the data type. If you want to reduce the precision, you could do something like convert DBL to SGL before saving.
0 Kudos
Message 2 of 7
(3,524 Views)

To counter act the next question, here is described how LabVIEW stores data in memory.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 7
(3,511 Views)
Above link will explain u everything regarding the LabVIEW data save functionality.. and as already said u can wire in any type of data to save, But if u r looking for file extension for binary data save, u can perform *.Dat ..
0 Kudos
Message 4 of 7
(3,506 Views)

Thus, if I used ie NI 9233 A/D converter (24 bit IEPE analog input), the output of the data acquisition into the write to binary file would be in single precision (32 bits)?  This site specifing how LabVIEW stores data, https://www.ni.com/docs/en-US/bundle/labview/page/how-labview-stores-data-in-memory.html, does not list 24 bits as a common format.

0 Kudos
Message 5 of 7
(3,479 Views)
It will save data as SGL if you convert the data from the DAQmx Read to SGL. Have you looked at how you are acquiring data? The DAQmx Read can be set to return DBL, waveform, or unscaled integer. You are the one who has written the program and you have not attached it for someone to look at. Right at the bottom of the DAQmx Read is a description of the data type (i.e. Analog DBL NChan NSamp).
0 Kudos
Message 6 of 7
(3,473 Views)
OHH.. I see.. Smiley Surprised I got it.. Thx..
0 Kudos
Message 7 of 7
(3,468 Views)