LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue reading a binary file.

Solved!
Go to solution

@Bob_Schor wrote:

  Note the use of the "And Array" functions to return a single Boolean if the Arrays are the same.

2D Real Test.png

 

Bob Schor 


You can delete the for loop after the equal node. 'And Array Elements' will work on a 2D-Array and return a single boolean.

Message 11 of 14
(542 Views)

@UliB wrote:
You can delete the for loop after the equal node. 'And Array Elements' will work on a 2D-Array and return a single boolean.

Or just right-click on the Equals and choose the comparison type to "Aggregates".

 

Also, I tend to use "Create or Replace" for the Open/Create/Replace File option.  If the file already exists and you have it to just "Create", you will get an error.  By using "Create or Replace", I know I will have the latest data in that file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 12 of 14
(533 Views)

@crossrulz wrote:

@UliB wrote:
You can delete the for loop after the equal node. 'And Array Elements' will work on a 2D-Array and return a single boolean.

Or just right-click on the Equals and choose the comparison type to "Aggregates".


I learned something new, thanks.

Message 13 of 14
(511 Views)

Hello Bob, 

 

There was indeed something fishy in my Write Binary VI that I didn´t detect before. It is now working as intended!

Also, your example introduced me to some new functions that I was completely unaware before, but that seem quite handy to deal with file paths. Thanks!

0 Kudos
Message 14 of 14
(493 Views)