06-10-2013 11:24 AM
sure, here is the current vi and data
06-10-2013 11:50 AM - edited 06-10-2013 11:52 AM
I can't run your vi to see if this would work, but attached is a snapshot that shows changes - I believe that will produce the results that you're looking for.
-DP
06-10-2013 12:30 PM
Yes! That has seperated the cycle count from the rest of the channels! Any way to make the cycle count appear as the first column in the data file?
06-10-2013 12:35 PM - edited 06-10-2013 12:39 PM
Yes, very simple - you just have to move the cycle count connection to top of the build-array as shown in green in the attached image. (By the way, I have made a mistake- you could convert cycle counts I32 array to DBL array to fix that coercion red-dot which appears in connection to build-array)...
-DP
06-10-2013 12:39 PM - edited 06-10-2013 12:40 PM
Worked! You're a genius! Can you explain what you did there and why I need what you suggested?
06-10-2013 12:45 PM
Thank you, but it was actually quite simple. You were having problems because all attempts you were making were close but just little bit incorrect:
When you write an array of wavefoms to a file using your method, it simply writes each waveform as a column. I simply converted your cycle count to a waveform keeping # of elements in it same as all your other waveform lengths - and then I appended this new "waveform" to your existing array of waveforms. That essentially made your cycle counts as a new column. Earlier I had shown a connection to append "cycle-count waveform" at the end of the array (which showed that column at the end) and then since you wanted that column at the beginning, all you had to do was to append it at the beginning of the array.
Reading back this note, seems like I started rambling here... but hopefully you sort of get the idea!
Good luck...
-DP
06-10-2013 12:53 PM
great info! thank you so much!