esrf

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

stanford_SR570.mac
See other macros in category: All
Description:
    %B%stanford_SR570.mac%B% - macros to control the Stanford Research Systems SR570 Low-Noise Current Preamplifier
Documentation:
    DESCRIPTION
    The RS232 serial interface allows remote control. The parameters of the serial line are:
    - 8 bits
    - none
    - 2 stop bit
    - 9600 bauds
    - raw (in the SPEC config)
    - terminators CR(0xd) and LF(0xa)
    The interface is configured as listen only (ser_put only) ??? EX: st_setup 2

Macros:
    st_setup
    Usage: st_setup [sl_number]
    Set the serial line sl_number to be used, as in the config of SPEC.

    st_range
    Usage: st_range <nb> <range> (<nb2> <range2> ...)
    Possible ranges : 1,2,5,10,20,50,100, 200, 500 pA/V or nA/V or uA/V and 1 mA/V. The input is in pA/V. If nb not specified, all the connected instruments will be red. If range not specified, the current range will be printed. If the range does not exeed 1mA/V but is not an exact Stanford range the next lowest one is choosen.

    _st_range
    Usage: _st_range <nb, range>
    Set the sensituvity range for the nb amplifier. The range is in pA/V, nb starts from 1. If the range does not exeed 1mA/V but is not an exact Stanford range the next lowest one is choosen. Return the current range, 0 if instrument not configured, -1 if error to send the command -2 if range is out of limits.

    st_offset
    Usage: st_offset <nb, offset>
    Possible offset current level : 1,2,5,10,20,50,100, 200, 500 pA or nA or uA and 1, 2,5 mA. The input is in pA. If nb not specified, all the connected instruments will be red. If offset not specified, the current offset will be printed.

    _st_offset
    Usage: _st_offset (nb,offset, noff)
    Set the offset current level for the nb amplifier. The offset is in pA, nb starts from 1. If the offset does not exeed 1mA but is not an exact Stanford offset the next lowest one is choosen. Return the current offset, 0 if instrument not configured, -1 if error to send the command -2 if offset is out of limits. If noff set, set the amplifier to uncalibrated input offset vernier, else set to calibrated mode.

    st_bias
    Usage: st_bias <nb, bias>
    Possible bias voltage : [-5V ; +5V] If nb not specified, all the connected instruments will be set. If bias voltage not specified, the current bias voltage will be printed.

    _st_bias
    Usage: _st_bias (nb, bias)
    Set the bias voltage for the amplifier <nb>. Returns the current bias (saved in SPEC variable). Returns 9999 in case of serial communication error.

Internal Macros:
    st_value_to_scale
    Usage: st_value_to_scale(value)


    st_urange
    Usage: st_urange


    st_uoffset
    Usage: st_uoffset


    st_offset_on
    Usage: st_offset_on


    st_offset_off
    Usage: st_offset_off


    st_bias_setup
    Usage: st_bias_setup


    st_bias_on
    Usage: st_bias_on


    st_bias_off
    Usage: st_bias_off


    SR570_config
    Usage: SR570_config ()
    Macro motor implementation

    SR570_cmd
    Usage: SR570_cmd ()
    Macro motor implementation

Filename: stanford_SR570.mac
Author: A.Beteva/BLISS
$Revision: 1.7 $, $Date: 2018/06/14 07:04:36 $
Last mod.: 14/06/2018 09:04 by guilloud