DAQ Triggers in Matlab
- by RidePlanet
I'm writing a program that detects the speed of a object by hall effect sensors that are run into MATLAB through a DAQ (MCC USB-1408FS)
The problem that has arisen is that I'm using a non-stop scan technique to detect the state of one of 3 sensors. Unfortunately this means that unless the object is rotating past each sensor at the exact rate the program runs, I will see an instantaneous speed (done by comparing the time between two sensors) of zero.
I need the sensors to signal the program to count when they are hit, instead of constantly scanning for the signal. How can this be done?