public interface PowerSupplyDriver
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
double |
getCurrent(int chan)
Gets the set current for a channel.
|
boolean |
getOutput(int chan)
Gets the output state of a channel.
|
double |
getVoltage(int chan)
Gets the set voltage for a channel.
|
void |
open(DriverConstants.ConnType connType,
String ident,
int param)
Opens a connection to the power supply.
|
double |
readCurrent(int chan)
Reads the current for a channel.
|
double |
readVoltage(int chan)
Reads the voltage for a channel.
|
void |
setCurrent(double value,
int chan)
Sets the current for a channel.
|
void |
setOffDelay(double time,
int chan)
Sets the power-off delay for a channel.
|
void |
setOnDelay(double time,
int chan)
Sets the power-on delay for a channel.
|
void |
setOutput(boolean on,
int chan)
Turns output on or off for a channel.
|
void |
setVoltage(double value,
int chan)
Sets the voltage for a channel.
|
void open(DriverConstants.ConnType connType, String ident, int param) throws DriverException
connType - The connection type: e.g. network, serial, FTDIident - The device identifier: e.g. node name, USB s/nparam - The device parameter: e.g. port number, baud rateDriverExceptionvoid close()
throws DriverException
DriverExceptionvoid setOutput(boolean on,
int chan)
throws DriverException
on - Turn on if true, off if falsechan - The channel numberDriverExceptionboolean getOutput(int chan)
throws DriverException
chan - The channel numberDriverExceptionvoid setOnDelay(double time,
int chan)
throws DriverException
time - The delay (sec)chan - The channel numberDriverExceptionvoid setOffDelay(double time,
int chan)
throws DriverException
time - The delay (sec)chan - The channel numberDriverExceptionvoid setVoltage(double value,
int chan)
throws DriverException
value - The value to setchan - The channel numberDriverExceptiondouble getVoltage(int chan)
throws DriverException
chan - The channel numberDriverExceptiondouble readVoltage(int chan)
throws DriverException
chan - The channel numberDriverExceptionvoid setCurrent(double value,
int chan)
throws DriverException
value - The value to setchan - The channel numberDriverExceptiondouble getCurrent(int chan)
throws DriverException
chan - The channel numberDriverExceptiondouble readCurrent(int chan)
throws DriverException
chan - The channel numberDriverExceptionCopyright © 2019 LSST. All rights reserved.