APX-3302 User's Manual (OM110000019A)
-34 -
Chapter 5 Programming guide
This chapter describes the programming procedure using AcapLib2 is shown below.
5.1
AcapLib2 flow chart
Processing procedure using AcapLib2
Figure5-1: Flow chart
// Get the board information AcapGetBoardInfo function
// Open device AcapOpen function
// Reading ini file AcapSelectFile
- Open frame-grabber, get information and initialize using ini file.
(1)
Initialization
(2)
Settings
// Get the setting value of the board AcapGetInfo function
// Board setting AcapSetInfo function
- Set up shutter trigger(CC) or external interface(encoder).
The setting specified with setting ID.
(3)
Buffer registration
(5)
Setting reflection
(4)
Event registration
// Buffer registration AcapSetBufferAddress function
- Set up the buffer to transfer of acquired image.
// Setting reflection AcapReflectParam function
- Reflect the settings from (2)-(4) into hardware or driver.
// Event registration AcapSetCallbackEvent function
// Callback registration AcapRegistCallback function
- Resist the event or callback function when the system receiving
the interrupt notification which related image acquisition.
(6)
Acquisition
// Start image acquisition AcapGrabStart function
// Stop image acquisition AcapGrabStop function
- Transfer to the buffer after input the image data from a camera.
(7)
End processing
// Close board AcapClose function
Close AcapLib2 after opening each resource.
Summary of Contents for APX-3302
Page 1: ...APX 3302 User s Manual ...