Re: read csv file to graph?



A few pointers for your last code:

- The only time you need an xy graph is in situations where the x-values are NOT equally spaced. So all that song and dance to generate the xy data is useless.

- Whenever the x-data is equally spaced, you should use a waveform graph. You can scale the x-axis any way you want using the x0 and dx property.

- Anyway, to build the xy array, you should use an autoindexing output tunnel instead of using "built array".

Attached shows a quick cleanup. As mentioned, all you really need is the array subset and waveform graph. Isn't LabVIEW cool?  :)


csv_to_xy_graphMOD.vi:
http://forums.ni.com/attachments/ni/170/272651/1/csv_to_xy_graphMOD.vi
.