11-18-2009 02:24 PM
11-18-2009 02:39 PM
You have not provided enough information. What function are you using to read the DMM and how is it configured? For example, if you are using niDMM Read Waveform, you can select to return a 1D array or waveform data type. What do you mean by XY value?
p.s. You should also be aware that the Write to Spreadsheet function does not create an Excel file. It creates a text file that Excel can import.
11-18-2009 03:10 PM
sorry about that!
I'm using the PXI 4072 to measure the voltage. and I also found there is a example in the example finder in LabView is provide the function that I want. so that I would like to add a additional function into the program that it can export the data. the example is "Cont Acq&Chart Multiple Samples.vi"
I also attach the picture about the program example, I hope it helps to understand.
11-18-2009 03:50 PM
You are only exporting the very last iteration of the while loop. Right click on the exit tunnel and select ' Enable Indexing'. This will create a 2D array and you will have to change your wiring. Or, place the Write to Spreadsheet function inside the loop. With it outside, the array allocation will cause the VI to run slower and slower the longer you run the loop. If you have it inside, you will slow down each iteration by a fixed amount of time - the time it takes to write all of the samples with each run. You should look at the consumer/producer design pattern.
The niDMM Read can also return a waveform data type. If you need the timing information (t0 and dt), you should be using this mode. The Export Waveforms to Spreadsheet File can be used for this.