I have an encoder that measures crank angles on engines at 360 ticks per rev or 720 ticks per rev. I need to take a reading at every tick and store that data in a buffer. The built in triggered acquisition requires a number of samples and a sample rate. If you only run that aquisition once, it is easy to grab the data, but if it has to run a several thousand Hz and only needs to take ONE reading per tick you run into a problem of how to get data.
I need some sort of triggered interrupt where some code executes when a digital channel goes high OR I need some way to take one reading at every clock pulse and store that data to an array or a file.
What is the best way to do this?
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI