Jump to content

Read .csv file to XY graph help needed


Recommended Posts

I've been struggling with what should be very easy. I have a comma seperated value file from another instrument. I need to plot this data for analysis and prefer to use LabView over excel, sigmaplot, etc...

When I open the file with the read from spreadsheet file function I get a 2x10000 dimensional array. In order to use the graph XY function I need to separate the array to two different 1x10000 arrays and then bundle them together and send the bundle to the XY graphing funtion.

Can anyone help me either spit my 2D array into two 1D arrays or give me a different way to go about the problem?

Thanks

Link to comment
I've been struggling with what should be very easy. I have a comma seperated value file from another instrument. I need to plot this data for analysis and prefer to use LabView over excel, sigmaplot, etc...

When I open the file with the read from spreadsheet file function I get a 2x10000 dimensional array. In order to use the graph XY function I need to separate the array to two different 1x10000 arrays and then bundle them together and send the bundle to the XY graphing funtion.

Can anyone help me either spit my 2D array into two 1D arrays or give me a different way to go about the problem?

Thanks

On the Array Palette look for (or search for) the Decimate 1-D Array function. It does what you need by "dealing out" the elements of your big array into two or more smaller arrays.

Link to comment
On the Array Palette look for (or search for) the Decimate 1-D Array function. It does what you need by "dealing out" the elements of your big array into two or more smaller arrays.

It's the 2D array that I need to split. I need a 1D array of "column 0" and another 1D array of "column 1". It looks like the decimate function is only to split a 1D array into smaller subarrays. Am I missing the point?

Thanks!

Link to comment
It's the 2D array that I need to split. I need a 1D array of "column 0" and another 1D array of "column 1". It looks like the decimate function is only to split a 1D array into smaller subarrays. Am I missing the point?

Thanks!

Oops! My Bad!

You simply need the index array function, assuming the data has some reasonable distribution within the 2D array. See the attached VI.

Download File:post-2800-1135039549.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.