LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Count edges in software (CVI) with PXI-6527

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.

0 Kudos
Message 1 of 2
(2,699 Views)

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.

Regards,

Chris L
Applications Engineer
National Instruments

Certified LabVIEW Associate Developer
0 Kudos
Message 2 of 2
(2,682 Views)