08-22-2011 02:23 PM - edited 08-22-2011 02:25 PM
I'm using a PXI-6527 digital input, and I want to count edges of a ~500Hz signal. Can I do this using an interrupt routine in CVI (non-RT PXI box)? What functions are needed to do this? Or do I need to use a more capable card (such as a 6259)? If I count only rising edges, my interrupt will occur ~ every 4 msec.
08-23-2011 04:28 PM
The 6527 is capable of change detection, so I would suggest using the change detection example loacated in the CVI Help>>Example Finder…>>Hardware Input and Output>>DAQmx>>Digital Measurements>>ReadDigChan-ChangeDetectionEvent.prj. You can use the event detection to increment a count each time the digital signal goes high. Take a look and let me know if you have any further questions.