LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to set up an interrupt in CVI..Is there something wrong with my codes

I would like to set up an interrupt in CVI/LabWindows..
This is what I have written so far... but it did not work.. somebody please help?

The problem is, it does not want to do the interrupt routine.. it just freeze there.. please help...
Init_DA_Brds(1, &BOARD);
err = ContinuousPulseGenConfig (1, "0", 1, 0.5,UNGATED_SOFTWARE_START,POSITIVE_POLARITY, &actFreq, &actDC,&ID);
/******* Configure PCI-6023 to trigger off internal clock ************/
err = DAQ_Config (1, 0, 0);
/******* Configure PCI-6023 for Double Buffering ************/
DAQ_DB_Config (1, 1);
/******* Initialize PCI-6023 to operate with interrupts ************/
err = Set_DAQ_Device_Info (1, ND_AI_FIFO_INTERRUP
TS, ND_INTERRUPTS);

/******* Register Interrupt when Voltage on AI3 rises above 4.0V ************/
err = Config_ATrig_Event_Message (1, 1, "AI3", 4.0, 0, 1, 0, 0, 0,BOGUS_EventHandle,BOGUS_EventMessage,HomeFla
0 Kudos
Message 1 of 2
(2,951 Views)
Sugus

Since you only want to set the interrupt when the signal rises above 4.0V, 6th parameter from 0 to 1. As it is now, it should set the interrupt when the signal does not equal 4.0V, which would be all the time. This may be causing your system to freeze. Let me know if this helps.

Brian
0 Kudos
Message 2 of 2
(2,951 Views)