esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

TURBOSCAN.MAC
See other macros in category: All
Description:
    Turbo scan macros
Documentation:
    DESCRIPTION
    This macro cntset uses a scan server allowing simultaneous multiple read (encoders and vct6 channels at the same time).

    With minimum network load, fastest read time is around 40 msec.



    SETUP
      turbosetup [<Scanserv-devname> <0|1> <Vct6-devname>]
      First parameters is scan server device name.
      Second parameter is nevether you want to save or not (1=save).
      Third parameter is vct6 device name.
      Fourth parameter has to be set to 1 until program advises to change it.



      OVERVIEW
      The following macros are provided:
      turboscan
      one motor continuous scan.
      turboscan2
      two motors continuous scan.
      turbosplot
      turboscan special splot.



      EXAMPLE
      turboscan om 0 1 1 50
      this will scan at 1deg/s speed between position 0 and 1
      with a readcnt every 50 msec
      turboscan2 om 0 1 2 theta 5 9 60
      motor om drives from 0 to 1 at 2 deg/min
      theta goes at the same time from 5 to 9.
      theta's speed is adapted for that the 2 motors reach
      their final point together
      reads are performed every 60 msec


Macros:
    turbosetup
    Usage: turbosetup [<Scanserv-devname> <0|1> <Vct6-devname> <Sleep-time>]


    turboscan
    Usage: turboscan <motor mne> <from> <to> <deg/min> [ms read]
    one motor continuous scan.

    turboscan2
    Usage: turboscan2 <motor1> <from> <to> <deg/min> <motor2> <from> <to> [ms read]
    two motor continuous scan

    turborplot
    Usage: turborplot
    rplot (plot during acquisition) designed for turboscan

    turbosplot
    Usage: turbosplot
    splot designed for turboscan

Internal Macros:
    _turbo_check
    Usage: _turbo_check
    Parameter check for the macros turbo

    _turbo_init
    Usage: _turbo_init
    Initialisations for the macros turbo

    _turbo_oldspeed
    Usage: _turbo_oldspeed
    Saves the old speed for the continuous scan.

    _turbo_set_speed
    Usage: _turbo_set_speed
    Sets the new speed for the continuous scan.

    _turbo_init_group
    Usage: _turbo_init_group


    _turboscan
    Usage: _turboscan


    _turbo_fastfill
    Usage: _turbo_fastfill(noval,arr)
    optimized version

    _turbo_cleanup
    Usage: _turbo_cleanup


    _turbo_end
    Usage: _turbo_end


    _turbo_stop
    Usage: _turbo_stop


    _turbo_save_header
    Usage: _turbo_save_header
    Called by _turbo_init

    _turbo_prepfprintf
    Usage: _turbo_prepfprintf
    Called in turbosetup and config_mac prepares macro _turbo_fprintf

    _turbo_prepfprintflocal1
    Usage: _turbo_prepfprintflocal1
    reduces code size of _turbo_prepfprintf warning : uses local variable of _turbo_prepfprintf

    _turbo_fastsave
    Usage: _turbo_fastsave(no_val)
    Writes the scan data of one point to the data file. optimized version

    _turbo_cntconfig
    Usage: _turbo_cntconfig
    Called by turbosetup

    _turbo_ppoint
    Usage: _turbo_ppoint
    Called by _turboscan and turbosplot

    ts_res1
    Usage: ts_res1


    ts_res2
    Usage: ts_res2


    TS_FWHM
    Usage: TS_FWHM


    TS_CFWHM
    Usage: TS_CFWHM


    TS_xMAX
    Usage: TS_xMAX


    TS_MAX
    Usage: TS_MAX


    TS_COM
    Usage: TS_COM


    ts_define_empty_stubs
    Usage: ts_define_empty_stubs


Filename: turboscan.mac
Author: TURBOSCAN.MAC J.K - R.P 9-96
Last mod.: 08/08/2002 14:37 by berruyer