10-15-2008 12:58 AM
HI guys i am working with express table and displaying some data using express table. What i want to do is that when i press the save results button the data in the express table must be written in a text file. I am able to write the text file but only data is written. Is there any possiblity that i can also write the Row and Column headers along with the data in the text file. Kindly guide me about this as soon as possible. I am attaching the image also. kindly look at this and guide me.
Regards Ehtisham Safdar.
Solved! Go to Solution.
10-15-2008 01:38 AM
10-15-2008 11:22 PM
Sorry i forgot to attach that vi with my question i am attaching it right now please take a look at this and tell me. Although i have found out a way to do it but that is very cumbersome. I am indexing the string array which i get from the express table and then with each row i have to concetenate the row header and this will not b a good option but as i dont have any other solution right now so i have to work with it.
Kindly tell me if there is any other simple way of doing it.
Regards Ehtisham safdar.
10-16-2008 01:24 AM
10-20-2008 12:35 AM
10-20-2008 01:38 AM
Hi,
1. Is to the same text file you want to writedata column by column ?If it is so use index array and specify the row or column you wish.
2. As it is 1d array there is no use of using transpose array
3. To write only 2column with headers means, as told in 1st point use index array write it in text fle as shown in the previous Vi.
Hope this helps you.
10-20-2008 02:24 AM
10-20-2008 02:45 AM
Thanks again for a quick response but one most important thing i missed to mention is that i am using labveiw 8 so kindly post the solution competible to this version i will be very thankful.
The problem is not with indexing i know i can index all the columns but the problem is when i convert this array to spread sheet string it does not remain a column it becomes a row when i write it to the file it shows it as a row so this is the issue. Can you tell me how can i solve this issue? I couldnot check the solution you put coz i have labview 8 so kindly post it in this version if possible otherwise post the snapshot of the block diagram.
Regards Ehtsiham Safar
10-20-2008 03:10 AM
10-22-2008 02:28 AM
Thanks for your kind reply i am very much thankful to you for all your help. Your solution has worked 100% i just had to modify it a lil bit. Thanks again for taking out time and providing the solution.
Kind regards.
Ehtisham Safdar