02-23-2007 04:45 PM
02-23-2007 04:57 PM
If you right click on the exit tunnel of the 1D array, select Enable Indexing, This will automatically create a 2D array of all results from every iteration. You would have to change where you have wired into the Write to Spreadsheet File. This will save the data when the while loop finishes. If you want to save as you go, you have to wire a True to the append to file? input of Write to Spreadsheet. Otherwise, you will get a new file each time. Wire a constant or front panel control to the file path input so you don't get asked for it each time the function is called.
The loop rate is pretty much defined by how fast the meter can respond, though if you put the file save inside the loop, that will slow it down even more. There may be settings on the meter that you need to change. I can't make out what model of meter you're using so if you can provide that information, maybe someone who has experience with it can suggest something.
02-23-2007 05:04 PM
thanks, the index enabling worked perfectly. :3
it's a yokogawa wt130 meter, and i don't believe its the fault of the equipment speed. Like another thread I read, when i first load and start the VI it is fast/realtime speed, but after I run it a few more times it becomes much slower.
02-26-2007 08:45 AM