07-26-2010 03:40 PM
I need a botton or a path to save the data. What I have done is that it can save data, but every time after I running the program, it will pop out a dialog to save the data. What I want to do is that using a botton that I can save the data only if I want to save it. Meanwhile, in this program, I have to assign a path before running if I want to save the data. Thanks for answering this question for me.
Solved! Go to Solution.
07-26-2010 04:14 PM
You need to select your file path before you run your VI.
07-26-2010 08:47 PM
Yes, I want to save the data after I running the program, do you know how to do it? Thanks so much for you attention.
07-26-2010 09:57 PM
You are saving the data. If you want the option to not save, place a case structure around the Write to Spreadsheet File.
p.s. Do you know you are throwing away all timing information and cannot reconstruct the waveforms?
07-27-2010 10:13 AM
Actually, I want to see the diagram first, and then decide whether to save the data. i do not know whether there are others ways to save the data other than write to spreadsheet?
07-27-2010 10:19 AM
Do you mean you want to see the graph first? The diagram is the code. To look at the graph, just place the print/case statement inside a loop.
You can use any of the functions on the file i/o palette. You can also save to Excel, Word, a database, etc, etc.
07-27-2010 10:32 AM
Dear Dennis,
What you mentioned above is exactly what I want to do. While I do not know how to place the print/case statement inside a loop. What is print/case statement. Could you show me this loop in a VI. Thanks so much for your kind help.
07-27-2010 10:39 AM - edited 07-27-2010 10:40 AM
You really need to spend some time first with the basic tutorials.
Drop a while loop on a diagram. Place a case statement inside the loop. Place a Write to Spreadsheet inside the true case. Right click on the case structure's selector terminal (the '?') and select Create>Control. Right click on the while loop's conditional terminal and select Create>Control.
07-27-2010 10:41 AM
Dear Dennis,
Thanks so much for your help!!
07-27-2010 10:48 AM
Wow, thanks so much, I have spend two days on this and you help me to solve it. Thanks so much, and I have another minor problem. I do not know how to creat a start button. When I push it, it will run, instead of pushing the small run button on the top of the front pannel. Thanks for your answer.