public class TestScpi
extends org.lsst.ccs.drivers.ascii.TestAscii
| Constructor and Description |
|---|
TestScpi()
Constructor.
|
TestScpi(Scpi scpi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears saved status.
|
void |
enableOpc()
Enables operation complete reporting.
|
double |
readDouble(String command,
String... args)
Writes a command with error checking and reads the double response.
|
float |
readFloat(String command,
String... args)
Writes a command with error checking and reads the float response.
|
int |
readInteger(String command,
String... args)
Writes a command with error checking and reads the integer response.
|
String |
readString(String command,
String... args)
Writes a command with error checking and reads the string response.
|
void |
reset()
Resets to power-on state.
|
int |
selfTest()
Runs the self test.
|
void |
setEse(int value)
Sets the event status enable register.
|
void |
setSre(int value)
Sets the service request enable register.
|
String |
showError()
Displays the first error item.
|
String |
showEse()
Displays the event status enable register.
|
String |
showEsr()
Displays the event status register.
|
String |
showIdentification()
Displays SCPI device identification.
|
int |
showOpc()
Displays the operation complete state.
|
String |
showSre()
Displays the service request enable register.
|
String |
showStatus()
Displays the status byte.
|
void |
waitComp()
Waits for command completion.
|
void |
writeCommand(String command,
String... args)
Writes a command with error checking.
|
protected final Scpi scpi
public TestScpi()
public TestScpi(Scpi scpi)
scpi - The SCPI device to use@Command(name="writecommand",
description="Write command")
public void writeCommand(@Argument(description="Command word")
String command,
@Argument(description="Arguments")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - The command wordargs - The command argumentsorg.lsst.ccs.drivers.commons.DriverException@Command(name="readstring",
description="Write command and read string response")
public String readString(@Argument(description="Command word")
String command,
@Argument(description="Arguments")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - The command wordargs - The command argumentsorg.lsst.ccs.drivers.commons.DriverException@Command(name="readinteger",
description="Write command and read integer response")
public int readInteger(@Argument(description="Command word")
String command,
@Argument(description="Arguments")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - The command wordargs - The command argumentsorg.lsst.ccs.drivers.commons.DriverException@Command(name="readdouble",
description="Write command and read double response")
public double readDouble(@Argument(description="Command wprd")
String command,
@Argument(description="Arguments")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - The command wordargs - The command argumentsorg.lsst.ccs.drivers.commons.DriverException@Command(name="readfloat",
description="Write command and read float response")
public float readFloat(@Argument(description="Command word")
String command,
@Argument(description="Arguments")
String... args)
throws org.lsst.ccs.drivers.commons.DriverException
command - The command wordargs - The command argumentsorg.lsst.ccs.drivers.commons.DriverException@Command(name="clear",
description="Clear saved status")
public void clear()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="reset",
description="Reset to power-on state")
public void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="enableopc",
description="Enable operation complete reporting")
public void enableOpc()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setese",
description="Set event status enable register")
public void setEse(@Argument(description="Value to set")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The value to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="setsre",
description="Set service request enable register")
public void setSre(@Argument(description="Value to set")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The value to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="wait",
description="Wait for previous command completion")
public void waitComp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showesr",
description="Display the event status register")
public String showEsr()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showese",
description="Display the event status enable register")
public String showEse()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showopc",
description="Display the operation complete state")
public int showOpc()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showsre",
description="Display the service request enable register")
public String showSre()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showstatus",
description="Display the status byte")
public String showStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="selftest",
description="Run the self test")
public int selfTest()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showerror",
description="Display the first error item")
public String showError()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showident",
description="Show SCPI device identification")
public String showIdentification()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2019 LSST. All rights reserved.