LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why is set file position control not working

Solved!
Go to solution

aldenfuchs_0-1668634664263.png

aldenfuchs_1-1668634874724.png

 

The set file position is supposed to modify the file read according to the help file, but it doesn't 😞 

Read from Binary File Details. Use the Deny Access function to ensure no other users change the file while you read from it. Use the Set File Position function if you need to perform random access.

aldenfuchs_2-1668634901916.png

aldenfuchs_3-1668634958520.png

 

 

0 Kudos
Message 1 of 4
(805 Views)
Are you sure that case is ever running?
0 Kudos
Message 2 of 4
(784 Views)
Solution
Accepted by topic author alden.fuchs

Most of your code makes little sense, especially because all we see are truncated pictures.

Why would the file position even matter since (according to the diagram comment #5) you exit the loop on EOF (assuming "this" loop and not some other loop!), then close the file ref, so the file position is forgotten anyway.

 

All I can say that the file position has always worked flawlessly in my own code, so something else is going on. No way to tell from your pictures.

0 Kudos
Message 3 of 4
(759 Views)
Solution
Accepted by topic author alden.fuchs

hi It seems that the code for whatever reason did not execute but when I saved all, and closed and reopened the VI everything works as expected. 😐 

0 Kudos
Message 4 of 4
(683 Views)