09-24-2008 04:58 AM
I have a table (with numbers and strings in it) and I want to save the content of the table into a file and read it back later.
I managed to write the content into a file but I have problems reading it out. I use the "Write File.vi" with the Open and Close vis. Or should I better use the "write characters to file.vi"?
All the examples, which I found on ni.com, I cannot open, because I am using LabVIEW 7.1. I would be pleased if you could tell me where I can find an example for LabVIEW 7.1.
Greetings
Johannes
09-24-2008 05:01 AM - edited 09-24-2008 05:01 AM
09-24-2008 06:22 AM - edited 09-24-2008 06:23 AM
Hi,
I don't mind what type of file it is to which I am writing the data. Currently I use a text-File, but if it makes things easier, I could also use an excel-file.
I attached my first try. Writing to file is more or less ok, but I don't know how to read it from the file. Just connecting the Read from File.vi to a local variable of the table (Sequence) does not work (Error says Connection not possible ... The type of the source is string. The type of the sink is 2-D array of string.)
Greetings
Johannes
09-24-2008 06:51 AM
Do you want to labview should create a file or you can create a file and then perform your task...? Is it OK for you to first create a file & then perform task...?
09-24-2008 06:54 AM
Hi,
yes both is ok.
Best would be, if LabVIEW creates the file, if it does not exist. And if it exists, LabVIEW may overwrite it.
09-24-2008 07:07 AM
Hey I have attached VIs where you have to create file first & then you can perform the task... Just have a look & try to modify it.. If you still have any problem let me know.. 🙂
Best luck.. 🙂
09-24-2008 07:14 AM
Hi,
thank you very much for your help.
Unfortunately my LabVIEW does not find some Subvi's in your example. Do I have to install something first? Do I need some specific dlls?
I've found another thread which is very similar to my problem: http://forums.ni.com/ni/board/message?board.id=170&message.id=232440&query.id=4057#M232440
I used the attached example and modified my program. Now it is very simple. Have a look!
Greetings Johannes
09-24-2008 07:24 AM
09-26-2008 11:27 PM - edited 09-26-2008 11:27 PM
Hello.. 🙂
So you got the answer... That's great.. 🙂
Best luck.. 🙂
08-08-2011 01:12 PM
luck? where i'm going i don't need luck