APCI-/CPCI-1500
b) Example in C for DOS
void main (void)
{
int
unsigned char
if (Initialisation (&b_BoardHandle) == 0)
{
if (i_APCI1500_SetBoardIntRoutineDos
{
i_ReturnValue = i_APCI1500_InitTimerInputClock
printf ("\nTimer input clock initialisation return value = %d", i_ReturnValue);
i_ReturnValue = i_APCI1500_InitTimerCounter1
printf ("\nTimer initialisation return value = %d", i_ReturnValue);
i_ReturnValue = i_APCI1500_StartTimerCounter1
printf ("\nTimer start return value = %d", i_ReturnValue);
do
{
printf ("\nTimer interrupt counter = %d", b_TimerCounterCpt [0]);
}
while (!kbhit());
getch ();
i_ReturnValue = i_APCI1500_StopTimerCounter1
printf ("\nTimer stop return value = %d", i_ReturnValue);
i_ReturnValue = i_APCI1500_ResetBoardIntRoutine (b_BoardHandle);
printf ("\nReset board interrupt return value = %d", i_ReturnValue);
i_ReturnValue = i_APCI1500_CloseBoardHandle
printf ("\nClose board handle return value = %d", i_ReturnValue);
}
else
{
printf ("\nInterrupt initialisation error");
i_ReturnValue = i_APCI1500_CloseBoardHandle
printf ("\nClose board handle return value = %d", i_ReturnValue);
}
}
else
{
printf ("\nBoard initialisation error");
}
104
i_ReturnValue;
b_BoardHandle;
Technical description
(b_BoardHandle, v_InterruptRoutine) == 0)
(b_BoardHandle,
APCI1500_1_8_KHZ);
(b_BoardHandle,
APCI1500_TIMER,
1UL,
APCI1500_CONTINUOUS,
APCI1500_ENABLE);
(b_BoardHandle);
(b_BoardHandle);
(b_BoardHandle);
(b_BoardHandle);
Chapter 10
Need help?
Do you have a question about the ADDINUM CPCI-1500 and is the answer not in the manual?
Questions and answers