02-11-2008 07:05 AM
Hi Gerd,
As advised me, I've created a seperate VI for loading my txt files. For that I used "System Exec.Vi. It works perfectly.
I'm still having problems with my txt file creator VI. The solution you proposed me last time is creating "Batch File: 2.0" before every section.
I wanted it just one time. Just at the top of the file. A kind of a header. I've tried to modify my VI to reach my goal but I'm not succeding. Any idea?
I have a another question which is related to txt files. I searched in the Forum but all the answers I found don't correspond to what I need.
Suppose a txt file with 5 columns of data (numerics or strings). If we use "Write to Text File" to save data, how to create first, a main header (name of the file, date creation, name of the author and version) and, second, a "secondary" header (Column1, Column2,......,Column5) on top of each column?
Thank you very much for your help. I appreciate it.
Kabanga
02-11-2008 07:15 AM
02-11-2008 07:51 AM
Hi Gerd,
thanks a lot for your help. Everything is working perfectly !!!!!!!!!!!!!!
Best regards
Kabanga
02-12-2008 03:25 AM
Hi gerd,
Thank you for making this topic so interesting for me. I have a question about your batch file sub vi.
You are using the "write to text file" block to create the desired txt file. When i using the same method as you, i can't accompish the same result.
I can see only the first value of the array in my txt file. I want to write to whole array in txt file. Can you help me please?
Thanks,
Jeroen
02-12-2008 04:30 AM
02-12-2008 05:04 AM
Hi Jeroen.
You could just wire the Array directly to the write text file.vi hence you do not need the for loop. This will give you all the elements of the array in the same file. What is your application? do you need this as a sub vi whereby it will be called from many places throught the program?
Craig
02-12-2008 05:08 AM
Hi phuzionz
what is your application?
Have a look at the attached VI.
Is it what you want?
Best regards
Kabanga
02-12-2008 05:58 AM