This VI redefines the dimensions of the preview window's client rectangle to match those of the camera ROI and pixel addressing value.


..................................................................................................................................................................................................................................................................................


Controls and Indicators


            hCamera IN is the camera handle. This value is returned by Initialize.vi and is passed between PixeLINK VIs as a reference.


              hCamera OUT has the same value as hCamera IN.    


Details


For this function to operate properly, the SetPreviewState VI must be invoked prior to this function call and the preview must currently be set to START_PREVIEW or PAUSE_PREVIEW.


To affect a reset on a change to ROI of pixel addressing perform the following steps in sequence:


  • Pause the preview with the SetPreviewState VI and uPreviewState IN set to PAUSE_PREVIEW.


  • Stop the stream with SetStreamState VI and set uStreamState IN to STOP_STREAM.


  • Change the ROI or pixel addressing value with SetFeature as required.


  • Start the stream with SetStreamState VI and set uStreamState IN to START_STREAM


  • Restart the preview with the SetPreviewState VI and uPreviewState IN set to START_PREVIEW..


  • Call ResetPreviewWindow to affect the change in the preview window's client rectangle.


Note: See Error Handling for error input and output information and error codes.