Discussion:
Re-Displaying Data
(too old to reply)
Cory K
2008-08-06 19:40:09 UTC
Permalink
Heres the most recent of my endevours....
 
I collected data, and wrote that data to a spreadsheet file (tab delimeted, .txt)
The data is written in the following format:
1) Column Headings
2) Many rows of data
3) A few rows of comments
 
I'm trying to come up with the easiest way to read these data files, and re-graph them, so I can print them out if necessary.
The problem I run into is the headings and comments appear as all 0's.
So instead of being disregarded, they are graphed as 0's.
Is there a way around this?
 
Also, when I am graphing these, how would format the graph so that it reads the first column of data as time?
Cory K
2008-08-06 20:40:06 UTC
Permalink
Well, i figured out the latter of my 2 questions, but not the first.
Do you think I can put a "greater?" function in,so that only the values greater than 0 will be graphed?
GerdW
2008-08-06 20:40:08 UTC
Permalink
Hi Cory, read in the spreadsheet data as 2d array of strings. Then use array subset to get only the data part and now use any conversion function you like.Or (even easier) use the array subset on your array after loading in to strip the rows with zeros in it...
Cory K
2008-08-07 19:10:07 UTC
Permalink
The data reads as a "signal".
Can i convert a signal to a 2d array?
GerdW
2008-08-07 19:40:06 UTC
Permalink
Hi Cory,why don't you just attach example code and example data? And which LV version do you use?From your question I conclude you're using an Express vi to read you spreadsheet. I wouldn't go that way (my personal opinion)...I prefer this:<img src="Loading Image..."> Message Edited by GerdW on 08-07-2008 09:39 PM


spreadsheet.png:
http://forums.ni.com/attachments/ni/170/347649/1/spreadsheet.png
Cory K
2008-08-07 20:10:11 UTC
Permalink
OK,&nbsp;I see what you did.Yeh, I think I will give that a try.

Continue reading on narkive:
Loading...