From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set file position within a for loop, error 1

Solved!
Go to solution

Hi, I'm reading from a .sxm file consisting of a large chunk of text followed by binary data for 512x512 images with 4 bytes per pixel

 

I’ve managed to successfully identify the start of the binary and read the first image from the file and view it using  "flatten pixmap.vi", so I’m doing something right, however when i try to read the next chunk of image data in the .sxm file using a for loop, set file position keeps churning out ERR (1).

 

im at a loss as to whats causing this

Download All
0 Kudos
Message 1 of 2
(2,375 Views)
Solution
Accepted by topic author AllDayBreakfast

 I closed the file in the loop, doh! ... another morning well spent Smiley Embarassed

0 Kudos
Message 2 of 2
(2,361 Views)