LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Who can fix my VI to work in LV8? please help...

Don't let yourself be confused by the VI name. Everything is "binary" in one way or another. If you want it as readable ASCII (e.g. comma seperated), you simply need to format your values accordingly before writing them to the file.

See attached code excerpt. See if this help. The result opens fine in excel. 🙂

(Note that even if you call the file *.xls, it is NOT an excel file, which is a proprietary microsoft format, it is just a tab separated ASCII file. Excel is simply smart enough to read it properly if you force it to open it by using an xls extension.)

Message Edited by altenbach on 11-21-2005 08:30 AM

0 Kudos
Message 11 of 27
(1,736 Views)
Sorry missed that one.  This should be OK.  I assume you are writing text at the beginning and then writing binary data after?

Whoops,  I see you don't want binary at all.  This should do OK then.


Message Edited by rpursley8 on 11-21-2005 11:34 AM

Randall Pursley
0 Kudos
Message 12 of 27
(1,725 Views)
No, I have never ever had write binary data in the vi ever, It used to be "Write to file.vi" which used to write tab delimited text. I installed LV8 on a brand new computer, loaded the VI written in LV7 from my network onto the new computer, and the computer with LV8 replaced all instances of "write to file.vi" with "write to binary file.vi" That is the problem. Now i need the VI repaired so it writes a tab delimited file that any excel user can open. I hope this helps.
0 Kudos
Message 13 of 27
(1,720 Views)
Try this one.  This should put it in columns.  Forgot a CR/LF in the last one.
Randall Pursley
0 Kudos
Message 14 of 27
(1,718 Views)
Write to file is the same as write to binary file! 😉
 
Somehow it seems you also want columns for date and time, as well as appropriate column headers. The attached modification seems to do this just fine. See output  as opened in excel.
 

Message Edited by altenbach on 11-21-2005 08:47 AM

Download All
0 Kudos
Message 15 of 27
(1,714 Views)
Thanks guys for all the help, I am operational again.
0 Kudos
Message 16 of 27
(1,689 Views)
I'd love for you to post the original VI. If, you had a 1D numeric array wired to the old Write File, it should have written binary then and I don't see how it could have ever worked.
0 Kudos
Message 17 of 27
(1,679 Views)
I dont see what your getting at? It worked.
0 Kudos
Message 18 of 27
(1,677 Views)
I translated what you had in your LabVIEW 8 program to what it would have been in your LabVIEW 7 program. In every version of LabVIEW, that would have resulted in the 1D array being written as binary - not comma separated data.
0 Kudos
Message 19 of 27
(1,671 Views)
Yeah but too bad you did something wrong because NO it didnt write a binary file, ive never seen a binary file in my life. let it go. Put the keyboard down.
0 Kudos
Message 20 of 27
(1,669 Views)