*
* Example for the usage of a Matrox frame grabber board based on MIL-Lite
* (external triggering)
*
*
* open the board with the desired camera configuration file
info_framegrabber ('MilLite', 'info_boards', Information, BoardList)
MyDevice := BoardList[0]
MyCameraType := 'M_DEFAULT'
MyPort := -1
SoftwareTrigger := 1
* SoftwareTrigger := 0
*
open_framegrabber ('MilLite', 1, 1, 0, 0, 0, 0, 'default', -1, 'default', -1, 'default', MyCameraType, MyDevice, MyPort, -1, AcqHandle)
get_framegrabber_param (AcqHandle, 'trigger_signal', TriggerSignal)
get_framegrabber_param (AcqHandle, 'trigger_source', TriggerSource)
*
if (SoftwareTrigger)
set_framegrabber_param (AcqHandle, 'external_trigger', 'true')
set_framegrabber_param (AcqHandle, 'trigger_source', 'software')
endif
*
grab_image_start (AcqHandle, -1)
while (1)
if (SoftwareTrigger)
set_framegrabber_param (AcqHandle, 'do_force_trigger', 1)
wait_seconds (0.01)
endif
grab_image_async (Image, AcqHandle, -1)
endwhile
*
if (SoftwareTrigger)
set_framegrabber_param (AcqHandle, 'trigger_source', TriggerSource)
endif
close_framegrabber (AcqHandle)