LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make the "abort" button show? (I cannot click "stop" in the operations pull-down.)

Solved!
Go to solution

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?

0 Kudos
Message 11 of 40
(1,425 Views)


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.

Cory K
Message 12 of 40
(1,416 Views)
By "convert to spreadsheet string" did you mean "arrary to spreadsheet string"?
0 Kudos
Message 13 of 40
(1,414 Views)
Also, what data are you getting back?
Are you only seeing a single point at a time? Or are you seeing all of the data?

You may need to build an array of your data with shift registers so you collect each data point instead of overwriting the 1D array each iteration.
Cory K
0 Kudos
Message 14 of 40
(1,413 Views)

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.

Cory K
0 Kudos
Message 15 of 40
(1,409 Views)
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.)
0 Kudos
Message 16 of 40
(1,408 Views)

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.

Cory K
0 Kudos
Message 17 of 40
(1,404 Views)

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.

Cory K
0 Kudos
Message 18 of 40
(1,396 Views)

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.)

 

 

0 Kudos
Message 19 of 40
(1,387 Views)

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

Cory K
Message 20 of 40
(1,360 Views)