LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting XY graph + spreadsheet

Hi,
I have this code attached -- as you cam see I am trying to get the data graphically but I am unable to see it on the XY-graph , I dont know what I am doing wrong and why I am unable to see continous line or points.
I also want to write the sama data to spreadsheet and again it is not letting me do so ,
what all options do I have for these.

Thanks in advance for help
0 Kudos
Message 1 of 5
(2,830 Views)
If you want the graph to update while the loop is running, the graph terminal must be inside the while loop.

Think dataflow! Anything outside the loop that depends on data from the while loop will only receive data once the while loop finishes. Use execution highlighting for a demonstration.
Message 2 of 5
(2,823 Views)
Hi,
I tried that and now I can see the back ground of the graph moving but no lines or graph,
also I have tried to make spread sheet and it prompts me continously for new file name I want it to go completely in the file and gather data in one file and stop once I tell it to stop.
How can I do that.
Thanks
0 Kudos
Message 3 of 5
(2,808 Views)
Double-click the "Build XY graph" node and uncheck "Clear on each call".
0 Kudos
Message 4 of 5
(2,797 Views)
And to answer your question about writing to the file, you need to provide a file name to avoid the dialog asking for one. Put a file path control on the front panel, put it outside the while loop, and wire it in to Write to Spreadsheet. You also need to set Append to File to true. The other way is to autoindex your measurements out through the while loop and save the data when you stop the while loop. This will actually be much more effecient as every time Write to Spreadsheet is called, it does an open and close file.
0 Kudos
Message 5 of 5
(2,793 Views)