03-27-2014 01:41 PM
Hello,
My question is probably easily answered. I am using hardware timing on a cDAQ to measure analog data, and plotting the results on a waveform chart. Being that it is hardware timed, and set to "Continuous Samples" it is a buffered communication. The waveform chart displays all data in the buffer, but a number indicator seems to display only the last piece of data in the buffer (correct me if I'm wrong). That's all fine, but my question is, if I use the integral function to sum the data over time, will it integrate across all of the data points in the buffer, or will it use only the piece of data at the end of the buffer? I would hope not the later, as this would mean the integral function is dependent on the software loop time, and has much lesser resolution than if it uses all the data.
Thanks!
Ryan Kelly
03-27-2014 01:50 PM
03-27-2014 02:14 PM
Sorry, I have attached the VI. It is dynamic data..This VI was only made to test this concept. I currently have it set for 100 samples at 1kHz sample rate continuous. There is also a button to reset the integral to 0, which works fine, you can disregard that part.
Thanks,
Ryan
03-27-2014 02:17 PM
Please attach the actual VI. If you are using Express VIs (the big, blue, configurable functions), then a picture just won't work in telling us what is happening.
03-27-2014 02:21 PM
03-27-2014 02:30 PM
Where did that Integral Reset.vi come from? Can you attach it as well. It's really hard to figure out what is happening without all of the code.
03-27-2014 03:04 PM
Excellent I figured that it was, just thougt I'd make sure. I think I see why dynamic data could be evil.
The integral reset came from: http://forums.ni.com/t5/LabVIEW/reseting-integral-function/td-p/434517 so it's the normal time domain function, all i did was the right click, show front panel, and add the link on the connector pane.
Thanks guys, this was helpful.
-Ryan