Omega Engineering OME-A826PG 사용자 설명서

다운로드
페이지 60
OME-A-826PG Software Manual [Win 95/98/NT] 
 
3.5.7 
Diagram of Interrupt Mode  
 
 
 
The 3.5.1 to 3.5.6 are functions to perform the A/D conversion with 
interrupt transfer. The flow chart to program these function is giver as follows: 
 
 
 
 
A826_DriverInit 
       
      CreateEvent(…) 
 
      A826_InstallIrq( … ) 
       
      ……… 
 
      A826_AD_INT_Start( … ) 
 
      …… 
 
  
WaitForSingleObject( …. ) 
   
               ……….. 
 
 
              A826_GetBuffer( …. ) 
 
      …… 
 
      A826_AD_INT_Stop 
 
      CloseHandle( hEvent ) 
 
A826_DriverClose 
 
 
 
 
 
 
 
 
 
 
                
 
 
 
 
 
 
 
 
 
 
 
 
 
 
            
object. 
Close the Device-Driver 
Initialize the Device-Driver 
Stop the interrupt transfer and  
remove the interrupt handler.
Waiting for the signaled event 
Start the Interrupt Transfer 
Install the IRQ 
To copy data into user's buffer 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Date: Aug-15-2000             Ver: 2.2                                                                                         Page  47