11-17-2005 01:22 PM
11-17-2005 11:48 PM
Hi,
Try this
Keep saving the the data from start to stop in a file using suitable file writing functions
since u seem to be working with daq assistant, start with something simple like 'write waveforms to file.vi' found in in functions tools palette waveform-> waveforms file i/o select append to file option as true in this vi.
after stop, use the vi i have attached to read the waveform, get the voltage array and find min, max and the amplitude which you want to measure
hope this helps
regards
dev
11-18-2005 12:17 AM - edited 11-18-2005 12:17 AM
Hi Emily,
Having read devchander's (excellent) idea, it almost seems imprudent to post another. Disk-storage sounds like a good idea - unlimited post-processing opportunity! Still the shift-register idea (below) is pretty simple, and the history-buffer might work for you as well...
1) It sounds like there's a loop running, and array max/min is returning values for segments of data. Use "shift register"s to hold the current max and min. After calculating max for the current segment compare them to the max/min of previous iteration. See pic.
2) For "smaller" data-sets, a Strip Chart might be a nice way to both, observe the data as it comes in, and collect the data for final max/min calc. As data is added to the Strip Chart, it's appended to a "History" buffer (it's just an array) which can be examined any time. You'll probably need to increase the length of the Chart's history-buffer, which is fixed at run-time. Multiply DAQ frequency (Hz) by max-expected-duration (sec) to get max expected samples. Right-click on the chart and select "Chart History Length" to set the value. Of course available computer RAM will be a consideration. Assuming your AtoD is 24-bit or less, use SGL data-type! (SGLs are 4-byte floats.)
Message Edited by Dynamik on 11-18-2005 12:20 AM
11-18-2005 11:19 PM
Hi Dynamik,
Thank you for your compliment!
Your even your solution is superlative.
Emily, hope this discussions have answered your query
regards
Dev
11-21-2005 11:53 AM