public class TestDcs
extends org.lsst.ccs.drivers.scpi.TestScpi
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TestDcs.onOff |
| Constructor and Description |
|---|
TestDcs()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrent()
Shows the set current.
|
double |
getCurrentLimit()
Shows the soft current limit.
|
Dcs.StatusBlock |
getStatusBlock()
Shows the source status block.
|
double |
getVoltage()
Shows the set voltage.
|
double |
getVoltageLimit()
Shows the soft voltage limit.
|
void |
open(org.lsst.ccs.drivers.ascii.TestAscii.ConnType type,
String ident)
Opens connection to a device.
|
void |
open(org.lsst.ccs.drivers.ascii.TestAscii.ConnType type,
String ident,
int param)
Opens connection to a device.
|
double |
readCurrent()
Reads the actual current.
|
double |
readVoltage()
Reads the actual voltage.
|
void |
setCurrent(double value)
Sets the current.
|
void |
setCurrentLimit(double value)
Sets the soft current limit.
|
void |
setLocal(TestDcs.onOff mode)
Turns local mode on or off.
|
void |
setOutput(TestDcs.onOff state)
Turns the output on or off.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltageLimit(double value)
Sets the soft voltage limit.
|
String |
showLocal()
Shows the local mode.
|
String |
showOutput()
Shows the output state.
|
clear, enableOpc, readDouble, readFloat, readInteger, readString, reset, selfTest, setEse, setSre, showError, showEse, showEsr, showIdentification, showOpc, showSre, showStatus, waitComp, writeCommandprotected final Dcs dcs
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type: net, serial or ftdi")
org.lsst.ccs.drivers.ascii.TestAscii.ConnType type,
@Argument(name="ident",description="Device identifier")
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
type - The connection typeident - The device identificationorg.lsst.ccs.drivers.commons.DriverException@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type: net, serial or ftdi")
org.lsst.ccs.drivers.ascii.TestAscii.ConnType type,
@Argument(name="ident",description="Device identifier")
String ident,
@Argument(name="param",description="Device parameter")
int param)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.TestAsciitype - The connection typeident - The device identificationparam - The device parameterorg.lsst.ccs.drivers.commons.DriverException@Command(name="setvoltage",
description="Set the voltage")
public void setVoltage(@Argument(name="value",description="Voltage to set")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="showvoltage",
description="Show the set voltage")
public double getVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readvoltage",
description="Read the actual voltage")
public double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setvoltlim",
description="Set the soft voltage limit")
public void setVoltageLimit(@Argument(name="value",description="Voltage limit to set")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage limit to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="showvoltlim",
description="Show the soft voltage limit")
public double getVoltageLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setcurrent",
description="Set the current")
public void setCurrent(@Argument(name="value",description="Current to set")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrent",
description="Show the set current")
public double getCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readcurrent",
description="Read the actual current")
public double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setcurrlim",
description="Set the soft current limit")
public void setCurrentLimit(@Argument(name="value",description="Current limit to set")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current limit to setorg.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrlim",
description="Show the soft current limit")
public double getCurrentLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setoutput",
description="Turn output on or off")
public void setOutput(@Argument(name="state",description="Output state: on or off")
TestDcs.onOff state)
throws org.lsst.ccs.drivers.commons.DriverException
state - The output state to set: on or offorg.lsst.ccs.drivers.commons.DriverException@Command(name="showoutput",
description="Show the output state")
public String showOutput()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setlocal",
description="Turn local mode on or off")
public void setLocal(@Argument(name="mode",description="Local mode: on or off")
TestDcs.onOff mode)
throws org.lsst.ccs.drivers.commons.DriverException
mode - The local mode to set: on or offorg.lsst.ccs.drivers.commons.DriverException@Command(name="showlocal",
description="Show the local mode")
public String showLocal()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showstatusblock",
description="Show the source status block")
public Dcs.StatusBlock getStatusBlock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2014 LSST. All rights reserved.