LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one extra data when write to the binary file

Solved!
Go to solution

Hi,

 

I modified the "Multi-Function-Ctr Retrigg Pulse Train Generation for AI Sample Clock" example to sample and store data into the binary file.

 

The attached code can work. But when I open the stored file, I found for every 1000 correct samples, there is one extra small vualue, like "

-2.12e-311" in front of them, and this is obvious an error value. There should be only 1000 samples for each iteration. Where does this extra data come from?

 

By the way, the DAQ in this application is PXIe-6358.

 

Thanks!

0 Kudos
Message 1 of 2
(1,908 Views)
Solution
Accepted by topic author bluerunner

Your Write Binary Data does not have anything written to the input for Prepend Array or String Size, so that means it defaults to true.  Those extra bytes you see are the ones that define the size of your array.

Message 2 of 2
(1,902 Views)