11-26-2008 08:47 PM
Roziela,
If you would like to convert a 2D array to a 1D array, you can use the Reshape Array.vi found on the array pallet. When you use this vi to make the conversion, it will append each row (0 through n) into one 1D array. I attached a picture and a vi to try.
Cheers
-cb
11-26-2008 09:39 PM
04-16-2012 11:37 PM
Genius!!!!!!
04-17-2012 12:42 AM - edited 04-17-2012 12:57 AM
Aleizor wrote:You guyz give me ideas and ways to do it.
p/s: altenbach, you're good in simplifying code, any ideas on how to do it?
Yes, here's code that does exactly the same as your "mostrosity", using about 20% of the code. 😄
(note that everything except the code needed for the xy graph can be deleted. All stuff marked in red is not really needed)
Some comments regarding your original code:
04-17-2012 08:55 AM
Also note that you only need an xy graph if the x values are not spaced equally. If they are spaced equally as in your example, a plain waveform graph is sufficient and all you need is set x0 and dx, simplifying the code even more.