LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reopen File workaround in Read From Measurement File

I wrote a bit of code in LabVIEW 8.6 where I connected the 'EOF?' output of a Read From Measurement File to its 'Reopen File' input.  This prevents an end-of-file error from occurring when the program runs.  I need to re-implement the code in LabVIEW 7.1, but the Read LabVIEW Measurement File object does not have the 'Reopen File' input!

 

Does anyone know of a way around this problem? (Upgrading to LabVIEW 8.6 is not an option on this machine.)

0 Kudos
Message 1 of 2
(2,460 Views)

Hi There,

 

Good Morning and I hope your well today.

 

I am a little unsure about your issue, mainly because my Express VI in LabVIEW 7.1 has an EOF output.

 

But basically, the VIs work this out by testing for the error code, and when you reach it, stop reading the file and clean up the error using custom error handling. 

 

If you use an unbundle on an error cluster you get Status, Code and Description. Test code = to EOF error code, if true then replace the cluster with a default cluster (Status - False, String - blank, Code - 0).


I hope this makes sense, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 2
(2,443 Views)