Chapter 8
Interrupt Control
©
National Instruments Corporation
8-7
DAQ-STC Technical Reference Manual
/* to the DAQ-STC in order to clear this interrupt condition*/
}
}
Else if (Soft_Copy(Pass_Thru_0_Interrupt_Enable) is 1) then
{
If (Pass_Thru_0_Interrupt_St is 1) then
{
/*The interrupt was caused by signal entering DAQ-STC through the
IRQ_IN0 pin*/
Service the external interrupt 0;
/*You cannot explicitly acknowledge a pass-through interrupt. You must
perform an action*/
/*external to the DAQ-STC in order to clear this interrupt condition.
Normally, board hardware*/
/*should be designed so that you can cause this action*/
/*To enable this interrupt, set AI_Pass_Thru_0_Interrupt_Enable = 1*/
}
}
Else if (SoftCopy(G0_TC_Interrupt_Enable) is 1) then
{
If (G0_TC_St = 1) then
{
/*The interrupt was caused by general-purpose counter 0 TC*/
Service the general-purpose counter 0 TC interrupt;
/*To clear this interrupt, set G0_TC_Interrupt_Ack = 1*/
/*To enable this interrupt, set G0_TC_Interrupt_Enable = 1*/
}
}
Else if (G0_Gate_Interrupt_St is 1) then
{
/*The interrupt was caused by appropriate event that occurred on gate of
general-purpose counter 0*/
Service the general-purpose counter 0 gate interrupt;
/*To clear this interrupt, set G0_Gate_Interrupt_Ack = 1*/
/*To enable this interrupt, set G0_Gate_Interrupt_Enable = 1*/
}
Else if (Soft_Copy(AI_SC_TC_Interrupt_Enable) is 1) then
{
If (AI_SC_TC_St is 1) then
{
/*The interrupt was caused by AI SC_TC signal*/
Service the AI SC_TC interrupt;
/*To clear this interrupt, set AI_SC_TC_Interrupt_Ack = 1*/
/*To enable this interrupt, set AI_SC_TC_Interrupt_Enable = 1*/
}
}
Else if (Soft_Copy(AI_START1_Interrupt_Enable) is 1) then