Erik, Thank you for the reply.
 
Actually, I just want to use the DAQ card to detect the pulse signal from spindle motor. The signal will happen once per cycle of the spindle rotation. I want to use this signal to synchronize the action from other hardware. That is to say, let the DAQ to detect the pulse and doing nothing else, just return to my program so that I can send command to other hardware to do something.
 
My friend told me there is a DIG_In_line function in old DAQ function to do the job, but he doesn't know whether the DAQmax has the same or similar function like that?
 
I tried to browse through the examples you mensioned and tried the CHANGE DETECTION example. But it comes out error and can not run. I was wondering whether 6115 support the CHANGE DETECTION?
Regards,
YeKD