LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from Binary not coming out correctly

Solved!
Go to solution

Hello all,

 

I have recently been experimenting with binary read and write to file VIs.

 

I created a program based on the example VIs available and was able to write some random numbers to a binary file. But when i read from the same file, the numbers are not replicated.

I am not able to figure out why.

 

I have attached the screenshots. can someone help me understand what the issue could be?

 

 

 

Download All
0 Kudos
Message 1 of 4
(349 Views)
Solution
Accepted by topic author Silverfang-

We cannot debug pictures. Please attach the VI so we can fully inspect what's connected to where.

 

What happens if you wire a FALSE to the "prepend" input when writing or, alternatively, read it as a 1D array of DBL?

 

(Also note that your sequence structure is completely pointless because execution order is already fully determined by dataflow. If you want to read an entire flat binary file, things can be simplified much more)

Message 2 of 4
(341 Views)

Hi altenbach.

 

Prepend to False seemed to fix it. Thanks!

0 Kudos
Message 3 of 4
(337 Views)

@Silverfang- wrote:

Prepend to False seemed to fix it. Thanks!


More importantly, make sure to fully understand why that is 😄

0 Kudos
Message 4 of 4
(318 Views)