EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: IoC support for Rohde & Schwarz SMA100A
From: Benjamin Franksen <[email protected]>
To: Vitor Finotti <[email protected]>, <[email protected]>
Date: Tue, 15 Mar 2016 16:01:39 +0100
On 03/09/2016 05:20 PM, Vitor Finotti wrote:
> I need to control a SMA100A signal generator through EPICS. Have anyone
> already done the respective IoC? Thanks!

I am attaching the protocol file that we use. (The include line is
resolved by an extra make rule, you can delete it.)

Cheers
Ben
-- 
"Make it so they have to reboot after every typo." ― Scott Adams
Terminator = CR LF;
ExtraInput = Ignore;

include "../SCPI.proto"

setupSweepMode {
    out "SOUR:SWE:FREQ:MODE STEP";
    out "SOUR:SWE:FREQ:SPAC LIN";
    out "TRIG:FSW:SOUR EXT";
}

inFrq {
    out "FREQ?";
    in "%f"
}
outFrq {
    out "FREQ %f";
    @init { inFrq; };
}

inStartFrq {
    out "FREQ:STAR?";
    in "%f";
}
outStartFrq {
    out "FREQ:STAR %f";
    @init { inStartFrq; };
}

inStopFrq {
    out "FREQ:STOP?";
    in "%f";
}
outStopFrq {
    out "FREQ:STOP %f";
    @init { inStopFrq; };
}

inStepFrq {
    out "SWE:FREQ:STEP:LIN?";
    in "%f";
}
outStepFrq {
    out "SWE:FREQ:STEP:LIN %f";
    @init { inStepFrq; };
}

inLvl {
    out "LEVEL?";
    in "%f"
}
outLvl {
    out "LEVEL %f";
    @init { inLvl; };
}

inFmFrq {
    out "FM?";
    in "%f"
}
outFmFrq {
    out "FM %f";
    @init { inFmFrq; };
}

inRfOn {
    out "OUTP?";
    in "%i";
}
outRfOn {
    out "OUTP %{OFF|ON}";
    @init { inRfOn; };
}

# phase continuous frequency setting
inPhasCont {
    out "FREQ:PHAS:CONT:STAT?";
    in "%i";
}
outPhasCont {
    out "FREQ:PHAS:CONT:STAT %{OFF|ON}";
    @init { inPhasCont; }
}

inFrqMode {
    out "FREQ:MODE?";
    in  "%{CW|SWE|LIST}";
}

outFrqMode {
    setupSweepMode;
    out "FREQ:MODE %{CW|SWE|LIST}";
    @init {
        setupSweepMode;
        inFrqMode;
    }
}

Attachment: signature.asc
Description: OpenPGP digital signature


References:
IoC support for Rohde & Schwarz SMA100A Vitor Finotti

Navigate by Date:
Prev: Re: appropriate version of sequnecer jun-ichi.odagiri
Next: Re: Scan problem when the ioc behave as client Tasaddaq Khan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: IoC support for Rohde & Schwarz SMA100A Eric Norum
Next: In search of BIC 1000C current integrator manual Brian McAllister
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·