10-13-2011 01:00 PM
Hi,
i have problem aligning all the data in coloumn wise. the output is this(see the attached file). i am trying to fix this but seems to be difficult. help please...
Solved! Go to Solution.
10-13-2011 01:11 PM
You are doing this way more complicated than it needs to be. Just use the Write to Spreadsheet File VI. This will eliminate all of your String Concatenation functions, which is almost certainly where the problem is. It has an "append" input that you can use inside the loop.
10-13-2011 01:17 PM
i tried that but it ask me to write file again and again
have alook on this one please
10-13-2011 01:27 PM - edited 10-13-2011 01:28 PM
You are still making it way too complicated. I would simply do this:
You don't need any of that junk you got for date/time either. Add a shift register for the file name or use a front panel control to eliminate being prompted each time.
p.s. Neatness really does count. Please clean up your block diagram. You are making it too hard for other people to read your code and you want to make it easy to get help.
10-13-2011 01:27 PM - edited 10-13-2011 01:29 PM
@Hussain01 wrote:
i tried that but it ask me to write file again and again
have alook on this one please
You still have the Format Into File function in your loop.
10-13-2011 01:34 PM
Yes i removed it now but still it prompt for the file again and again.
Dennis i can use "Export waveform to file" but need to append headers on that file too. i don't know how it will work with "Export waveform to file"
10-13-2011 01:38 PM
I cleaned all unwanted mess. one more thing i also need to have date and time append in my file too.
but how to append that in this vi.?
10-13-2011 01:39 PM
sorry here is the vi
10-13-2011 01:55 PM
Well, as I said, my solution has the date/time automatically included.
10-13-2011 01:57 PM
still i need to multiply the values of each channel with 1000. for that i need to convert it to array. do you think in your proposed solution i can do that?