LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Clock Edge Interrupt Function (?)

Hello Labwindows community, 

 

Currently using Labwindows CVI 2012. 

 

I wanted to see if there was a function, in particular with the NI-DAQmx library (but not limited to), that allows for the detecting of the falling or rising edges of a pulse that occurs in microseconds. Is there an interrupt function or something similar that I can use to detect this and if the event occurs, to call a callback function?

 

Thanks,

Vincent

0 Kudos
Message 1 of 4
(2,583 Views)

Did you try Help >> Find Examples... ?

Maybe ReadDigChan-ChangeDetectionEvent.prj could be a starting point.

 

(Just guessing, I never used such a function.)

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 2 of 4
(2,552 Views)

^ that example should show what you're trying to do.

Also, make sure your hardware is supported by change detection. You can take a look at this document to check:

Digital Change Detection in NI-DAQmx

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 3 of 4
(2,543 Views)

Thank you for the response CVI-User and francine.p. 

 

I took a look into the project description for the ChangeDetection.prj and noted that it wasn't something I was looking for. My project ran out of room for additional digital input signals. I wanted to see if there was a way we can measure the event change with a digital output signal, but scrolling through the functions, it seems limited to digital inputs only. 

 

Thank you both for the feedback, I think I can use those resources to research further. 

 

Regards,

Vincent

0 Kudos
Message 4 of 4
(2,535 Views)