I've constructed a VI that captures analog data from two channels on the AD2. I can successfully collect data, but for some reason, if the number of samples exceeds the sample rate, the data is truncated to only 1 second of data. This occurs for various sample rates (10 samples @ 1 Hz or 10,000 samples @ 1000 Hz, etc) - see attached for more details.
I've timed the execution of the "Analog Read" function, and it executes in multiples of 1 second (i.e. 250 samples and 300 samples at 100 hz, both execute in 3 seconds), but I only get one second of data.
Questions:
Shouldn't this function be able to provide the complete set of data, as long as buffers aren't overrun?
I don't see any terminals on the sub-VI's that allow the data buffers to be altered. Is there a way to modify the sub-VI to provide a complete set of data?
Question
byro3227
Hello,
I've constructed a VI that captures analog data from two channels on the AD2. I can successfully collect data, but for some reason, if the number of samples exceeds the sample rate, the data is truncated to only 1 second of data. This occurs for various sample rates (10 samples @ 1 Hz or 10,000 samples @ 1000 Hz, etc) - see attached for more details.
I've timed the execution of the "Analog Read" function, and it executes in multiples of 1 second (i.e. 250 samples and 300 samples at 100 hz, both execute in 3 seconds), but I only get one second of data.
Questions:
Any help is appreciated
Timing Issue.pdf
AD2 - Multiple Samples.vi
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.