def METHOD_NAME():
    cam = ifm3dpy.Camera()
    idx = cam.active_application()
    config = cam.to_json()
    config['ifm3d']['Apps'][idx-1]['TriggerMode'] = \
        str(int(ifm3dpy.Camera.trigger_mode.SW))
    cam.from_json(config)
    fg = ifm3dpy.FrameGrabber(cam)
    buff = ifm3dpy.ImageBuffer()
    # waiting for an image should now timeout
    assert not fg.wait_for_frame(buff, 1000)
    # now, get image data by explicitly s/w triggering the device
    for i in range(10):
        fg.sw_trigger()
        assert fg.wait_for_frame(buff, 1000)
    # set the camera back into free-run mode
    config['ifm3d']['Apps'][idx-1]['TriggerMode'] = \
        str(int(ifm3dpy.Camera.trigger_mode.FREE_RUN))
    cam.from_json(config)