Home

Documentation

Project Support

Changes in Version 4 of GraspSwDemoVideo

Author:
isani
Timestamp:
Thu Mar 29 17:58:09 2012

Legend:

Unmodified
Added
Removed
Modified
  • GraspSwDemoVideo

    v3 v4
    1 1  '''[wiki:GraspSwDemoScripts video]''' 
    2 2  [[TracNav(GraspContents)]] 
    3 3  ||Command:||'''video'''|| 
    4 4  ||Contexts:||Director console or command port|| 
    5 5  ||Function:||Acquire sequential raw frames and deliver them to the video server|| 
    6 6  ||Required Parameters:||none.|| 
    7 7  ||Optional Parameters:|| || 
    8 8  ||'''nframes='''||![16] Number of raw frames/cycles|| 
    9 9  ||'''etime='''||*[0.005] Seconds of integration time per frame|| 
    10 10  ||'''intstart='''||*[0.005] Seconds after end of readout to start integration|| 
    11 11  ||'''width='''||[det-dependent] Width (columns) of readout per output|| 
    12 12  ||'''height='''||[det-dependent] Height (rows) of readout per output|| 
    13 13  ||'''videodest='''||[from-config] Video server destination IP, port, and feed name|| 
    14 14  ||'''keep='''||*[TRUE] If FALSE, read frame but discard the data|| 
    15 15  ||'''shutter='''||*[FALSE] If TRUE, SHUTTER TTL output goes high at intstart, and low at end of etime.|| 
    16 16  ||'''mod='''||Number of cycles after which to repeat pattern (must be < nframes)|| 
    17 17  ||'''ncpus='''||![2] The default enables multi-threaded operation for best performance. "1" disables.|| 
    18 18  ||'''dreg='''||*|| 
    19 19  === Frame-based options === 
    20 20  (*) Options etime= intstart= dreg= and keep= take optional extensions to change to a new value on a given frame number.  For example, to 
    21 21  perform on reset and then readouts after: 
    22 22  {{{ 
    23 23    dreg=<regval_with_reset>,2:<regval_no_reset> 
    24 24  }}} 
    25 25  Without whitespace a comma, a frame number, a colon, and new value. 
    26 26  === nframes === 
    27 27  The nframes option actually specifies the number of video "cycles" to complete.  The video cycle goes in this order: 
    28 28   * Program dreg 
    29 29   * Perform a readout (possibly with integration starting during readout in low gain mode if intstart is negative.) 
    30 30   * Integrate 
    31 31  During the integration phase, the device's master clock is currently not operated.  (This appears not to cause any adverse effects.) 
    32 32  The integration ends at the start of cycle n+1.  The first cycle may also often request a "reset" rather than a readout for IR devices.  For these reasons, nframes is often 1 or 2 greater than the actual number of desired video frames.  (See the "keep" option for syntax to throw away data produced by these initial cycles.) 
    33 33  === etime === 
    34 34  The exposure time is specified in seconds.  As of this writing, the controller pays attention to up to 3 decimal places (milliseconds) but a future upgrade will increase the precision to microseconds. 
    35 35  === intstart === 
    36    For devices with an electronic shutter, a time in seconds after the readout ends can be specified as the "start of integration."  If it is desired to have integration overlap with readout, a negative number of seconds can be used (up to but not greater than the readout time, and also never greater than the etime.)  No attempt is made to enforce the validity of integration during readout based on dreg.  I.e., the user  
      36  For devices with an electronic shutter, a time in seconds after the readout ends can be specified as the "start of integration."  If it is desired to have integration overlap with readout, a negative number of seconds can be used (up to but not greater than the readout time, and also never greater than the etime.)  No attempt is made to enforce the validity of integration during readout based on dreg. 
    37 37  === width, height === 
    38 38  These parameters default to the full (per output) detector size.  If a window readout mode has been selected (see dreg) then width and height should be adjusted accordingly. 
    39 39  === keep === 
    40 40  When keep=false is used, no data will be transmitted.  This is useful for a reset frame which should be discarded, or pipelined data which does not need to be kept.  The default is keep=false.  This option can be changed on a given frame (cycle) number using the extended syntax described under Frame-based options above. 
    41 41  === shutter === 
    42 42  Depending on the application, a the shutter output could drive a real physical shutter, or could be connected to GPS timestamping hardware.  The controller records its own high precision timestamps, but at least one external timestamp should be recorded to relate these to an absolute time.  Use "shutter=true" to trigger on all cycles.  Use "shutter=<same-value-as-keep>" to trigger the shutter signal only on those frames which will be passed along to grasp_vidgrab. 
    43 43  Suppose two "reset" readouts were requested followed by a number of non-destructive readouts (IR).  And suppose only one shutter signal was required, on the first real readout.  This would be cycle 3, so the syntax for the single trigger would be: 
    44 44  {{{ 
    45 45  video ... shutter=false,3:true,4:false 
    46 46  }}} 
    47 47  Note that if the "mod=" option is used, it applies to all cycle-based options including shutter=, so another shutter signal would occur every "mod" frames in that case. 
    48 48  === mod === 
    49 49  All of the frame based options can be set to repeat on a given number of cycles.  For example, if "mod=5" is given, the 6th cycle will operate with the settings that were applied to the first cycle. 
    50 50  === dreg === 
    51 51  This option sets a device-specific data register.  It can also be set to change on any cycle, but options which affect width and height (windowing) should remain the same.