Skip to main content

Decrease frame rate on Chameleon3

Answered

Comments

2 comments

  • Official comment
    TDY_Demos
    Community team
    Expert (Gold)

    To summarize this issue in case it helps others, there were a couple of possible causes here:

    1.  Old firmware and new firmware have some different naming conventions.  For example, AcqusitionFrameRateEnabled was called AcqusitionFramerateEnable in older firmware.

    2.  Another possible cause of the example code not working is that there were multiple versions of Spinnaker installed on the same PC, and there was likely a library conflict.

    Below is python code example on how to disable auto framerate, enable framerate control, and manually setting a framerate:

    ### Disable FrameRateAuto ###
    node_frame_rate_auto = PySpin.CEnumerationPtr(nodemap.GetNode("AcquisitionFrameRateAuto"))
    if not PySpin.IsAvailable(node_frame_rate_auto) or not PySpin.IsWritable(node_frame_rate_auto):
    print('Unable to turn off Frame Rate Auto (enum retrieval). Aborting...')
    return False
     
    node_frame_rate_auto_off = node_frame_rate_auto.GetEntryByName("Off")
    if not PySpin.IsAvailable(node_frame_rate_auto_off) or not PySpin.IsReadable(node_frame_rate_auto_off):
    print ('Unable to set Frame Rate Auto to Off (entry retrieval). Aborting...')
    return False
     
    frame_rate_auto_off = node_frame_rate_auto_off.GetValue()
     
    node_frame_rate_auto.SetIntValue(frame_rate_auto_off)
     
    print ('Frame Rate Auto set to Off...')
     
     
    ### Enable AcquisitionFrameRateControlEnable ###
    node_acquisition_frame_rate_control_enable = PySpin.CBooleanPtr(nodemap.GetNode("AcquisitionFrameRateEnabled"))
    if not PySpin.IsAvailable(node_acquisition_frame_rate_control_enable) or not PySpin.IsWritable(node_acquisition_frame_rate_control_enable):
    print ('Unable to turn on Acquisition Frame Rate Control Enable (bool retrieval). Aborting...')
    return False
     
    node_acquisition_frame_rate_control_enable.SetValue(True)
     
    print ('Acquisiton Frame Rate Control Enabled...')
     
     
    ### Set AcquisitionFrameRate to 10 FPS ###
    if cam.AcquisitionFrameRate.GetAccessMode() != PySpin.RW:
    print ('Unable to set Frame Rate. Aborting...')
    return False
     
    cam.AcquisitionFrameRate.SetValue(10.0)
     
    print ('Acquisiton Frame Rate set to 10 FPS...') 
  • TDY_Manuel
    Community team
    Expert (Gold)

    Hello Josephine, 

    This should be possible. Could you please open a support ticket on https://flir.custhelp.com/app/ask ? Then we can take a look in a remote session. 

    Best regards,

    Manuel 

    0

Please sign in to leave a comment.

Powered by Zendesk