LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV 8: Read from Text File function looses refnum when ERROR = TRUE

hi there
 
i'm using LV 8.0 PDS.
 
When calling the "Read from Text File" of "Write to Text File" functions with an error and a refnum <> NULL the functions set the refnum to NULL. see attachment.
 
The Binary File IO functions seem to work properly.
 
could someone please confirm this?
 
 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 1 of 9
(4,259 Views)

Chris

I see the same behaviour on LV8. Binary doesn't loose the refnum but Text does.

David

0 Kudos
Message 2 of 9
(4,253 Views)
No bug with LV 8.2
 
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 9
(4,241 Views)
Or 8.0.1
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 9
(4,219 Views)

thanks for the information

well, its updatetime!

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 5 of 9
(4,184 Views)
Well, you could also downgrade, since the bug doesn't seem to happen in 7.1.  Smiley Very Happy


0 Kudos
Message 6 of 9
(4,168 Views)

oh no, i prefer to improve.....

to be honest, the app was written originally in 7.1 with the old school File IO functions, but the upgrade to 8.0 transformed it to the new functions, and then the bug appeared. i read text files in chunks of 4KB, then the EOF error should occur at the last chunk which i catched, but the errorcode was 1 because the refnum turned to NULL.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 7 of 9
(4,152 Views)
Chris,

To make it official, this was reported to R&D and was fixed in LabVIEW 8.0.1. Here is a link to the LabVIEW 8.0.1 maintenance release and here is a link to the current evaluation software download for LabVIEW. Thanks!

Andy F.

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 8 of 9
(4,012 Views)

thanks also

i arrived at 8.20.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 9 of 9
(4,002 Views)