public class BrickletIndustrialAnalogOut extends Device
Modifier and Type | Class and Description |
---|---|
class |
BrickletIndustrialAnalogOut.Configuration |
Device.Identity
Modifier and Type | Field and Description |
---|---|
static short |
CURRENT_RANGE_0_TO_20MA |
static short |
CURRENT_RANGE_0_TO_24MA |
static short |
CURRENT_RANGE_4_TO_20MA |
static java.lang.String |
DEVICE_DISPLAY_NAME |
static int |
DEVICE_IDENTIFIER |
static byte |
FUNCTION_DISABLE |
static byte |
FUNCTION_ENABLE |
static byte |
FUNCTION_GET_CONFIGURATION |
static byte |
FUNCTION_GET_CURRENT |
static byte |
FUNCTION_GET_IDENTITY |
static byte |
FUNCTION_GET_VOLTAGE |
static byte |
FUNCTION_IS_ENABLED |
static byte |
FUNCTION_SET_CONFIGURATION |
static byte |
FUNCTION_SET_CURRENT |
static byte |
FUNCTION_SET_VOLTAGE |
static short |
VOLTAGE_RANGE_0_TO_10V |
static short |
VOLTAGE_RANGE_0_TO_5V |
Constructor and Description |
---|
BrickletIndustrialAnalogOut(java.lang.String uid,
IPConnection ipcon)
Creates an object with the unique device ID \c uid.
|
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables the output of voltage and current.
|
void |
enable()
Enables the output of voltage and current.
|
BrickletIndustrialAnalogOut.Configuration |
getConfiguration()
Returns the configuration as set by
setConfiguration(short, short) . |
int |
getCurrent()
Returns the current as set by
setCurrent(int) . |
Device.Identity |
getIdentity()
Returns the UID, the UID where the Bricklet is connected to,
the position, the hardware and firmware version as well as the
device identifier.
|
int |
getVoltage()
Returns the voltage as set by
setVoltage(int) . |
boolean |
isEnabled()
Returns *true* if output of voltage and current is enabled, *false* otherwise.
|
void |
setConfiguration(short voltageRange,
short currentRange)
Configures the voltage and current range.
|
void |
setCurrent(int current)
Sets the output current.
|
void |
setVoltage(int voltage)
Sets the output voltage.
|
getAPIVersion, getResponseExpected, setResponseExpected, setResponseExpectedAll
public static final int DEVICE_IDENTIFIER
public static final java.lang.String DEVICE_DISPLAY_NAME
public static final byte FUNCTION_ENABLE
public static final byte FUNCTION_DISABLE
public static final byte FUNCTION_IS_ENABLED
public static final byte FUNCTION_SET_VOLTAGE
public static final byte FUNCTION_GET_VOLTAGE
public static final byte FUNCTION_SET_CURRENT
public static final byte FUNCTION_GET_CURRENT
public static final byte FUNCTION_SET_CONFIGURATION
public static final byte FUNCTION_GET_CONFIGURATION
public static final byte FUNCTION_GET_IDENTITY
public static final short VOLTAGE_RANGE_0_TO_5V
public static final short VOLTAGE_RANGE_0_TO_10V
public static final short CURRENT_RANGE_4_TO_20MA
public static final short CURRENT_RANGE_0_TO_20MA
public static final short CURRENT_RANGE_0_TO_24MA
public BrickletIndustrialAnalogOut(java.lang.String uid, IPConnection ipcon)
public void enable() throws TinkerforgeException
TinkerforgeException
public void disable() throws TinkerforgeException
TinkerforgeException
public boolean isEnabled() throws TinkerforgeException
TinkerforgeException
public void setVoltage(int voltage) throws TinkerforgeException
TinkerforgeException
public int getVoltage() throws TinkerforgeException
setVoltage(int)
.TinkerforgeException
public void setCurrent(int current) throws TinkerforgeException
TinkerforgeException
public int getCurrent() throws TinkerforgeException
setCurrent(int)
.TinkerforgeException
public void setConfiguration(short voltageRange, short currentRange) throws TinkerforgeException
TinkerforgeException
public BrickletIndustrialAnalogOut.Configuration getConfiguration() throws TinkerforgeException
setConfiguration(short, short)
.TinkerforgeException
public Device.Identity getIdentity() throws TinkerforgeException
getIdentity
in class Device
TinkerforgeException
Copyright © 2020 Tinkerforge GmbH. All rights reserved.