I’m trying to use an analog accelerometer to measure impacts.
To do that, I’m using an interrupt on an Analog Trigger to wait for an impact, and Direct Memory Access to acquire the data.
However, there appears to be an issue with DMA carrying over data from the last acquisition, despite my “read” telling me there is no more data.
Here’s a screenshot of my VI:
The vertical line in the graph about 0.2 seconds in is what I’m referring to. (Please ignore the incorrect date in the timestamp)
In addition to this issue, I was wondering if there was a good way to capture the moment of the impact. Continuously acquiring with DMA doesn’t sound very efficient (though it would remove the need for an interrupt).
I’ve uploaded the VI for your review. It’s not neat or documented at the moment, but I can improve that if you would like.
High speed DAQ.vi (36.4 KB)
High speed DAQ.vi (36.4 KB)