08-13-2009 11:06 AM
When the VI begins to run, the waveform graph creates one graph, then it stops, and the "save" button ony saves the one waveform. What I intended the save button to do was; save the waveform graph every n amount of miliseconds. (And save both of the wave forms, there are two.)
On a side note, the waveform data, when opened in Microsoft Excel, is a horizontal X Y chart, I dont know if this is possible, but could I make it vertical somehow?
08-13-2009 11:11 AM
When the VI begins to run, the waveform graph creates one graph, then it stops, and the "save" button ony saves the one waveform. What I intended the save button to do was; save the waveform graph every n amount of miliseconds. (And save both of the wave forms, there are two.)
1) I would recommend using 'write to spreadsheet file' instead of write to text file.
This way, it will maintain a tab (or any other) delimited text format, for easy conversion to Excel.2) What is the point of having the case structure if you have identical code in each case?
3) Along the lines of suggestion 1, you can remove the 'convert to spreadsheet string', and directly wire the array data to 'write to spreadsheet file'.
On a side note, the waveform data, when opened in Microsoft Excel, is a horizontal X Y chart, I dont know if this is possible, but could I make it vertical somehow?
Since you have a 2D array of data, just use 'transpose array', to move from vertical to horizontal or visa versa.
08-13-2009 11:13 AM
08-13-2009 11:14 AM
08-13-2009 11:15 AM
Nick B. wrote:
By "convert to spreadsheet string" did you mean "arrary to spreadsheet string"?
Yes, that is what I was referring to. I'm assuming you used that function so you could use the 'write to text file'.
If you use 'write to spreadsheet file', this function will not be necessary, you can just pass the array directly to it.
08-13-2009 11:15 AM
08-13-2009 11:18 AM
Nick B. wrote:
I get 1000 points of data, which is the entire waveform. (I was going to ask if it was possible to only recieve data from a single X value, but I figured I already asked about fifteen questions.)
I'm not sure I understand what you mean by 'recieve data from a single x value'?
Can you please explain.
08-13-2009 11:22 AM
I think you are only displaying 1 waveform because of your 'index array' function.
Since you have the index unwired, it will assume index 0.
This will index only the first column, so it will not look at the second waveform.
08-13-2009 11:25 AM
So I did the spreadsheet thing, and it seems to have worked. But it gives me entirely different values than the write to measurement did.
By a single X value I meant;
X Y
1 12
1 13
1 12
1 11
1 10
1 9
and so on...
But I think this can be accomplished by setting the "min record length" to 1.
But then I would have to make a new file for each single point, is there a way I can have the data be on the same file? (If this is too much to ask, dont worry.)
08-13-2009 11:43 AM
On 'write to spreadsheet file' there should be something that says 'append to file?'.
Switch this to True. This will add each new point to the existing file instead of overwriting.
Try that