public class TestDL34970
extends org.lsst.ccs.drivers.scpi.TestScpi
| Constructor and Description |
|---|
TestDL34970()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configCurrent(double range,
int... chans)
Configures for reading a current.
|
void |
configTC(DL34970.TcType type,
int... chans)
Configures for reading a thermocouple.
|
void |
configVolts(double range,
int... chans)
Configures for reading a voltage.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident)
Opens connection to a device.
|
String |
readData(int... chans)
Reads channels.
|
void |
setScanList(int... chans)
Sets the scan list.
|
clear, enableOpc, readDouble, readFloat, readInteger, readString, reset, selfTest, setEse, setSre, showError, showEse, showEsr, showIdentification, showOpc, showSre, showStatus, waitComp, writeCommandclose, makeCommandString, open, open, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, read, read, setCmndTerm, setConnTimeout, setDefaultParm, setOptions, setRespTerm, setTerminator, setTimeout, showConnTimeout, showTimeout, write@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type")
org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
@Argument(name="ident",description="Identification")
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.TestAsciiconnType - The type of connection: ftdi or serialident - The identification: serial no. (ftdi) or port name
(serial)org.lsst.ccs.drivers.commons.DriverException@Command(name="configtc",
description="Configure for a thermocouple")
public void configTC(@Argument(name="type",description="TC type")
DL34970.TcType type,
@Argument(name="chans",description="Channel numbers")
int... chans)
throws org.lsst.ccs.drivers.commons.DriverException
type - The TC typechans - The channels to configureorg.lsst.ccs.drivers.commons.DriverException@Command(name="configvolts",
description="Configure for a voltage")
public void configVolts(@Argument(name="range",description="Voltage range")
double range,
@Argument(name="chans",description="Channel numbers")
int... chans)
throws org.lsst.ccs.drivers.commons.DriverException
range - The voltage rangechans - The channels to configureorg.lsst.ccs.drivers.commons.DriverException@Command(name="configcurrent",
description="Configure for a current")
public void configCurrent(@Argument(name="range",description="Current range")
double range,
@Argument(name="chans",description="Channel numbers")
int... chans)
throws org.lsst.ccs.drivers.commons.DriverException
range - The current rangechans - The channels to configureorg.lsst.ccs.drivers.commons.DriverException@Command(name="setscanlist",
description="Set the scan list")
public void setScanList(@Argument(name="chans",description="Channel numbers")
int... chans)
throws org.lsst.ccs.drivers.commons.DriverException
chans - The channels to set in the scan listorg.lsst.ccs.drivers.commons.DriverException@Command(name="readdata",
description="Reads data from channels")
public String readData(@Argument(name="chans",description="Channel numbers")
int... chans)
throws org.lsst.ccs.drivers.commons.DriverException
chans - The channel numbers. If empty, the current scan list
is used; otherwise the scan list is set to contain
these channels.org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2021 LSST. All rights reserved.