LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt daraiven instead of polled

I have a 6025E card. Is there a way that when a digital line changes I get
an interrupt or callback instead of having to constantly poll for changes?

Thanks

LV

I currently do this:


int CVICALLBACK SafetyTimerCntDwn (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{

switch (event)
{
case EVENT_TIMER_TICK:
// 1.- Emergency Button
iStatus = DIG_In_Line (DAQ_Board1, PortC, ChanPanicSW, &PanicStatus);
ErrorCheck ("On func: DIG_In_Line PortC ChanPanicSw Query", iStatus,
GetDAQErrorString Status));
if (PanicStatus == 1){
DoCancelCntDown(2);
break;
}
....etc...
0 Kudos
Message 1 of 2
(3,006 Views)
There is no way to have the 6025 board generate an interrupt when a digital line changes. One option you may want to consider is using a 6333 or 6534 board. These are both digital boards that can use change detection, which would generate an interrupt when ever a line changes.

Brian
0 Kudos
Message 2 of 2
(3,006 Views)