LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new data column

Solved!
Go to solution

sure, here is the current vi and data

Download All
0 Kudos
Message 11 of 17
(1,157 Views)
Solution
Accepted by topic author glskinner

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

 

tempp.png

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


Message 12 of 17
(1,142 Views)

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?

0 Kudos
Message 13 of 17
(1,132 Views)

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)...

 

tempp.png

 

-DP

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 14 of 17
(1,128 Views)

Worked! You're a genius! Can you explain what you did there and why I need what you suggested?

0 Kudos
Message 15 of 17
(1,121 Views)

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

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 16 of 17
(1,115 Views)

great info! thank you so much!

0 Kudos
Message 17 of 17
(1,107 Views)