Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling DIO Interrupts with 6602

Hi,
 
I'm looking for the easiest way to check if one of the DIO changed its state, without continuously checking.
I thought about using interrupts but I can't find any thing about it, programming in C++.
 
Thanks,
Amit
 
0 Kudos
Message 1 of 4
(3,965 Views)

Amit,

Have you considered using change detection? Change detection essentially acts as a trigger on digital channels and allows you to trigger certain tasks such as a read or a write from the digital port. Here is a DevZone document that describes how change detection works. There is also a shipping example for ANSI C that shows how you can setup change detection.

 

 

Hope this helps!

 
Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 4
(3,946 Views)

Thanks for you quick reply, Abhinav.

I'll only be able to check it only on wednesday.

Are you sure "change detection" is supported by 660x Cards ?

(It seems every card but the 660x has that feature - http://zone.ni.com/devzone/cda/tut/p/id/3288 )

0 Kudos
Message 3 of 4
(3,943 Views)
Amit,

I apologize for not seeing that previously but unfortunately your card's digital input does not support triggering. You can only trigger the counter operations.


Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 4 of 4
(3,933 Views)