• halcon 相机软触发


    *
    * 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)

  • 相关阅读:
    python读取csv数据(添加列名,指定分隔方式)
    loc_survived
    数据预处理
    hadoop 指令
    pd.concat
    DataFrame
    SQL左连接
    mysql mysql之把查询的结果保存到新表(小知识点)
    啦啦啦啦 mysql 授权
    ArrayList和LinkedList的区别以及优缺点
  • 原文地址:https://www.cnblogs.com/QuincyYi/p/13164597.html
Copyright © 2020-2023  润新知