public class LucidControlAO4
extends java.lang.Object
This class encapsulated the LucidControl AO4 Analog Output USB Module functionality.
Modifier and Type | Class and Description |
---|---|
static class |
LucidControlAO4.DeviceType
Device type enumeration
|
static class |
LucidControlAO4.LCAO4Mode
AO4 module Operation Modes
|
Constructor and Description |
---|
LucidControlAO4(java.lang.String portName) |
Modifier and Type | Method and Description |
---|---|
boolean |
close() |
java.lang.String |
getDeviceClassName() |
int |
getDeviceSnr() |
java.lang.String |
getDeviceTypeName()
Get Device Type Name as String
|
IoReturn |
getIo(int channel,
ValueANU2 value)
Get the DAC Register value of the analog output channel.
|
IoReturn |
getIo(int channel,
ValueCUS2 value)
Get the current values of the analog output channel.
|
IoReturn |
getIo(int channel,
ValueCUS4 value)
Get the current values of the analog output channel.
|
IoReturn |
getIo(int channel,
ValueVOS2 value)
Get the voltage values of the analog output channel.
|
IoReturn |
getIo(int channel,
ValueVOS4 value)
Get the voltage values of the analog output channel.
|
IoReturn |
getIoGroup(boolean[] channels,
ValueANU2[] values)
Get the DAC Register values of a group of analog output channels.
|
IoReturn |
getIoGroup(boolean[] channels,
ValueCUS2[] values)
Get the current values of a group of analog output channels.
|
IoReturn |
getIoGroup(boolean[] channels,
ValueCUS4[] values)
Get the current values of a group of analog output channels.
|
IoReturn |
getIoGroup(boolean[] channels,
ValueVOS2[] values)
Get the voltage values of a group of analog output channels.
|
IoReturn |
getIoGroup(boolean[] channels,
ValueVOS4[] values)
Get the voltage values of a group of analog output channels.
|
IoReturn |
getParamCalHigh(int channel,
int[] cal)
Get the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel.
|
IoReturn |
getParamCalLow(int channel,
int[] cal)
Get the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel.
|
IoReturn |
getParamMode(int channel,
LucidControlAO4.LCAO4Mode[] mode)
Get the Configuration Parameter "Mode" of the analog output channel.
|
IoReturn |
getParamOffset(int channel,
short[] offset)
Get the Configuration Parameter "Offset" of the analog output channel.
|
IoReturn |
getParamRefreshInterval(int channel,
long[] refreshInterval)
Get the Configuration Parameter "Refresh Interval" of the analog output channel.
|
IoReturn |
getParamRefreshTime(int channel,
long[] refreshTime)
Get the Configuration Parameter "Refresh Time" of the analog output channel.
|
IoReturn |
getParamSetupTime(int channel,
long[] setupTime)
Get the Configuration Parameter "Setup Time" of the analog output channel.
|
IoReturn |
getParamValue(int channel,
ValueANU2 value)
Get the Configuration Parameter "Value" of a analog output channel.
|
int |
getRevisionFw() |
short |
getRevisionHw() |
IoReturn |
identify(int options) |
boolean |
isOpened() |
boolean |
open() |
IoReturn |
setIo(int channel,
ValueANU2 value)
Set the DAC value of one analog output channel
This method calls the SetIo function of the module and writes the DAC register value to the
analog output channel.
|
IoReturn |
setIo(int channel,
ValueCUS2 value)
Set the current value of one analog output channel.
|
IoReturn |
setIo(int channel,
ValueCUS4 value)
Set the current value of one analog output channel.
|
IoReturn |
setIo(int channel,
ValueVOS2 value)
Set the voltage value of one analog output channel.
|
IoReturn |
setIo(int channel,
ValueVOS4 value)
Set the voltage value of one analog output channel.
|
IoReturn |
setIoGroup(boolean[] channels,
ValueANU2[] values)
Set the DAC register values of a group of analog output channels.
|
IoReturn |
setIoGroup(boolean[] channels,
ValueCUS2[] values)
Set the current values of a group of analog output channels.
|
IoReturn |
setIoGroup(boolean[] channels,
ValueCUS4[] values)
Set the current values of a group of analog output channels.
|
IoReturn |
setIoGroup(boolean[] channels,
ValueVOS2[] values)
Set the voltage values of a group of analog output channels.
|
IoReturn |
setIoGroup(boolean[] channels,
ValueVOS4[] values)
Set the voltage values of a group of analog output channels.
|
IoReturn |
setParamCalHigh(int channel,
boolean persistent)
Set the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel to the
default value.
|
IoReturn |
setParamCalHigh(int channel,
boolean persistent,
int cal)
Set the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel.
|
IoReturn |
setParamCalLow(int channel,
boolean persistent)
Set the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel to the
default value.
|
IoReturn |
setParamCalLow(int channel,
boolean persistent,
int cal)
Set the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel.
|
IoReturn |
setParamMode(int channel,
boolean persistent)
Set the Configuration Parameter "Mode" of the analog output channel to the
default value.
|
IoReturn |
setParamMode(int channel,
boolean persistent,
LucidControlAO4.LCAO4Mode mode)
Set the Configuration Parameter "Mode" of the analog output channel.
|
IoReturn |
setParamOffset(int channel,
boolean persistent)
Set the Configuration Parameter "Offset" of the analog output channel to the
default value.
|
IoReturn |
setParamOffset(int channel,
boolean persistent,
short offset)
Set the Configuration Parameter "Offset" of the analog output channel.
|
IoReturn |
setParamRefreshInterval(int channel,
boolean persistent)
Set the Configuration Parameter "Refresh Interval" of the analog output channel to the
default value.
|
IoReturn |
setParamRefreshInterval(int channel,
boolean persistent,
long refreshInterval)
Set the Configuration Parameter "Refresh Interval" of the analog output channel.
|
IoReturn |
setParamRefreshTime(int channel,
boolean persistent)
Set the Configuration Parameter "Refresh Time" of the analog output channel to the
default value.
|
IoReturn |
setParamRefreshTime(int channel,
boolean persistent,
long refreshTime)
Set the Configuration Parameter "Refresh Time" of the analog output channel.
|
IoReturn |
setParamSetupTime(int channel,
boolean persistent)
Set the Configuration Parameter "Setup Time" of the analog output channel to the
default value.
|
IoReturn |
setParamSetupTime(int channel,
boolean persistent,
long setupTime)
Set the Configuration Parameter "Setup Time" of the analog output channel.
|
void |
setPortName(java.lang.String portName) |
public IoReturn getIo(int channel, ValueANU2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the DAC Register value of the analog output channel.
This method calls the GetIo function of the module and returns the DAC Register value of the analog output channel.
The DAC Register value represents the hardware register value of the digital to
analog converter. It is probably not what you are looking for. Please see other
getIo functions with ValueVOS2
and ValueVOS4
value types.
channel
- IO channel number. Must be in the range 0 ... 3value
- Value object of type ValueANU2IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIo(int channel, ValueVOS2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the voltage values of the analog output channel.
This method calls the GetIo function of the module and returns the voltage value of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3value
- Value object of type ValueVOS2IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIo(int channel, ValueVOS4 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the voltage values of the analog output channel.
This method calls the GetIo function of the module and returns the voltage value of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3value
- Value object of type ValueVOS4IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIo(int channel, ValueCUS2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the current values of the analog output channel.
This method calls the GetIo function of the module and returns the current value of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3value
- Value object of type ValueCUS2IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIo(int channel, ValueCUS4 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the current values of the analog output channel.
This method calls the GetIo function of the module and returns the current value of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3value
- Value object of type ValueCUS4IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIoGroup(boolean[] channels, ValueANU2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the DAC Register values of a group of analog output channels.
This method calls the GetIoGroup function of the module and returns the DAC Register values of a group of analog output channels.
The DAC Register value represents the hardware register value of the digital to
analog converter. It is probably not what you are looking for. Please see other getIoGroup
functions with ValueVOS2
and ValueVOS4
value types.
channels
- Get channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Analog Register value object array
Empty array prepared for 4 analog register value objects. The function fills the array with the read value data.
Value objects are only updated in the case that the corresponding channel in the channel array is set to true.
IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIoGroup(boolean[] channels, ValueVOS2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the voltage values of a group of analog output channels.
This method calls the GetIoGroup function of the module and returns the voltage values of a group of analog output channels.
channels
- Get channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value object array.
Empty array prepared for 4 Voltage value objects. The function fills the array with the read value data.
Value objects are only updated in the case that the corresponding channel in the channel array is set to true.
IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIoGroup(boolean[] channels, ValueVOS4[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the voltage values of a group of analog output channels.
This method calls the GetIoGroup function of the module and returns the voltage values of a group of analog output channels.
channels
- Get channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value object array
Empty array prepared for 4 Voltage value objects. The function fills the array with the read value data.
Value objects are only updated in the case that the corresponding channel in the channel array is set to true.
IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIoGroup(boolean[] channels, ValueCUS2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the current values of a group of analog output channels.
This method calls the GetIoGroup function of the module and returns the current values of a group of analog output channels.
channels
- Get channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Current value object array
Empty array prepared for 4 Current value objects. The function fills the array with the read value data.
Value objects are only updated in the case that the corresponding channel in the channel array is set to true.
IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getIoGroup(boolean[] channels, ValueCUS4[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the current values of a group of analog output channels.
This method calls the GetIoGroup function of the module and returns the current values of a group of analog output channels.
channels
- Get channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Current value object array
Empty array prepared for 4 Current value objects. The function fills the array with the read value data.
Value objects are only updated in the case that the corresponding channel in the channel array is set to true.
IoReturn
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIo(int channel, ValueANU2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the DAC value of one analog output channel
This method calls the SetIo function of the module and writes the DAC register value to the analog output channel.
The DAC Register value represents the low level digital to analog converter value.
It is probably not what you are looking for. Please see other setIo functions with
ValueVOS2
and ValueVOS4
value types.
channel
- Output channel to write to. Must be in the range 0 ... 3value
- Object initialized with the updated data.IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIo(int channel, ValueVOS2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the voltage value of one analog output channel.
This method calls the SetIo function of the module and writes the voltage value to the analog output channel.
This method uses the VOS2 value type of the module.
channel
- Output channel to write to. Must be in the range 0 ... 3value
- {ValueVOS2} object initialized with the updated data.IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIo(int channel, ValueVOS4 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the voltage value of one analog output channel.
This method calls the SetIo function of the module and writes the voltage value to the analog output channel.
This method uses the VOS4 value type of the module.
channel
- Output channel to write to. Must be in the range 0 ... 3value
- {ValueVOS4} object initialized with the updated data.IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIo(int channel, ValueCUS2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the current value of one analog output channel.
This method calls the SetIo function of the module and writes the current value to the analog output channel.
This method uses the CUS2 value type of the module.
channel
- Output channel to write to. Must be in the range 0 ... 3value
- {ValueCUS2} object initialized with the updated data.IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIo(int channel, ValueCUS4 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the current value of one analog output channel.
This method calls the SetIo function of the module and writes the current value to the analog output channel.
This method uses the CUS4 value type of the module.
channel
- Output channel to write to. Must be in the range 0 ... 3value
- {ValueCUS4} object initialized with the updated data.IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIoGroup(boolean[] channels, ValueANU2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the DAC register values of a group of analog output channels.
This method calls the SetIoGroup function of the module and sets DAC register values of a group of analog output channels.
The DAC Register value represents the low level output value of the digital to analog
converter. It is probably not what you are looking for. Please see other setIoGroup
functions with ValueVOS2
and ValueVOS4
value types.
channels
- Write channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Analog register value {ValueANU2} object array.
Array of 4 Analog register value objects initialized with DAC register values. The values of the objects are written to the output channels in the case that the corresponding channel array value is true.
IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIoGroup(boolean[] channels, ValueVOS2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the voltage values of a group of analog output channels.
This method calls the SetIoGroup function of the module and sets the voltage of a group of analog output channels.
This method uses the VOS2 value type of the module.
channels
- Write channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value {ValueVOS2} object array.
Array of 4 voltage value objects initialized with the updated voltage The values of the objects are written to the output channels in the case that the corresponding channel array value is true.
IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIoGroup(boolean[] channels, ValueVOS4[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the voltage values of a group of analog output channels.
This method calls the SetIoGroup function of the module and sets the voltage of a group of analog output channels.
This method uses the VOS4 value type of the module.
channels
- Write channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value {ValueVOS4} object array.
Array of 4 voltage value objects initialized with the updated voltage The values of the objects are written to the output channels in the case that the corresponding channel array value is true.
IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIoGroup(boolean[] channels, ValueCUS2[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the current values of a group of analog output channels.
This method calls the SetIoGroup function of the module and sets the current of a group of analog output channels.
This method uses the CUS2 value type of the module.
channels
- Write channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value {ValueCUS2} object array
Array of 4 voltage value objects initialized with the updated current The values of the objects are written to the output channels in the case that the corresponding channel array value is true.
IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setIoGroup(boolean[] channels, ValueCUS4[] values) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Set the current values of a group of analog output channels.
This method calls the SetIoGroup function of the module and sets the current of a group of analog output channels.
This method uses the CUS4 value type of the module.
channels
- Write channel array.
Boolean array with 4 values (one for each channel). A channel is only read in the case that the corresponding channel array value is true.
values
- Voltage value {ValueCUS4} object array.
Array of 4 voltage value objects initialized with the updated current The values of the objects are written to the output channels in the case that the corresponding channel array value is true.
IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getParamValue(int channel, ValueANU2 value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Value" of a analog output channel.
This method calls the GetParam function of the module and returns the value of the Configuration Parameter "Value".
The Configuration Parameter "Value" contains the current DAC register value of the analog output channel.
It is recommended to call getIo instead of this method.
channel
- Channel to read parameter from. Must be in the range 0 ... 3value
- Value object of {ValueANU2} classIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn getParamMode(int channel, LucidControlAO4.LCAO4Mode[] mode) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Mode" of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "Mode".
The Configuration Parameter "Mode" represents the current operation mode of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3mode
- Analog output channel operation modeIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamMode(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Mode" of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "Mode" to its default value.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamMode(int channel, boolean persistent, LucidControlAO4.LCAO4Mode mode) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Mode" of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "Mode".
The Configuration Parameter "Mode" represents the current operation mode of the analog output channel.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.mode
- Operation modeIoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamRefreshInterval(int channel, long[] refreshInterval) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Refresh Interval" of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "Refresh Interval".
channel
- IO channel number. Must be in the range 0 ... 3refreshInterval
- Refresh Interval in microsecondsIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamRefreshInterval(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Refresh Interval" of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "Refresh Interval" to its default value.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamRefreshInterval(int channel, boolean persistent, long refreshInterval) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Refresh Interval" of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "Refresh Interval".
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.refreshInterval
- Refresh Interval in microsecondsIoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamSetupTime(int channel, long[] setupTime) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Setup Time" of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "Setup Time".
channel
- IO channel number. Must be in the range 0 ... 3setupTime
- Setup Time in microsecondsIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamSetupTime(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Setup Time" of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "Setup Time" to its default value.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamSetupTime(int channel, boolean persistent, long setupTime) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Setup Time" of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "Setup Time".
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.setupTime
- Operation modeIoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamRefreshTime(int channel, long[] refreshTime) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Refresh Time" of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "Refresh Time".
channel
- IO channel number. Must be in the range 0 ... 3refreshTime
- Refresh Time in microsecondsIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamRefreshTime(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Refresh Time" of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "Refresh Time" to its default value.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamRefreshTime(int channel, boolean persistent, long refreshTime) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Refresh Time" of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "Refresh Time".
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.refreshTime
- Refresh Time in microsecondsIoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamOffset(int channel, short[] offset) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "Offset" of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "Offset".
channel
- IO channel number. Must be in the range 0 ... 3offset
- Offset voltage in millivoltIoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamOffset(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Offset" of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "Offset" to its default value.
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamOffset(int channel, boolean persistent, short offset) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "Offset" of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "Offset".
channel
- IO channel number. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.offset
- Offset voltage in millivoltIoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamCalLow(int channel, int[] cal) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "CalLow" (Calibration Low).
channel
- Analog output channel. Must be in the range 0 ... 3cal
- Configuration Parameter "CalLow"IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamCalLow(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "CalLow" (Calibration Low) to its default value.
channel
- Analog output channel to configure. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamCalLow(int channel, boolean persistent, int cal) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "CalLow" (Calibration Low) of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "CalLow" (Calibration Low).
channel
- Analog output channel to configure. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.cal
- Configuration Parameter "CalLow"IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn getParamCalHigh(int channel, int[] cal) throws java.lang.IllegalArgumentException, java.lang.NullPointerException, java.io.IOException
Get the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel.
This method calls the GetParam function of the module and returns the Configuration Parameter "CalHigh" (Calibration High).
channel
- Analog output channel. Must be in the range 0 ... 3cal
- Configuration Parameter "CalHigh"IoReturn
Valuejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public IoReturn setParamCalHigh(int channel, boolean persistent) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel to the default value.
This method calls the SetParam function of the module and sets the Configuration Parameter "CalHigh" (Calibration High) to its default value.
channel
- Analog output channel to configure. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public IoReturn setParamCalHigh(int channel, boolean persistent, int cal) throws java.lang.IllegalArgumentException, java.io.IOException
Set the Configuration Parameter "CalHigh" (Calibration High) of the analog output channel.
This method calls the SetParam function of the module and sets the Configuration Parameter "CalHigh" (Calibration High).
channel
- Analog output channel to configure. Must be in the range 0 ... 3persistent
- If this parameter is true the setting is stored permanently.cal
- Configuration Parameter "CalHigh"IoReturn
Valuejava.lang.IllegalArgumentException
java.io.IOException
public java.lang.String getDeviceTypeName() throws java.lang.IllegalStateException
Get Device Type Name as String
java.lang.IllegalStateException
public int getRevisionFw() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public short getRevisionHw() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.String getDeviceClassName() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public int getDeviceSnr()
public IoReturn identify(int options) throws java.io.IOException
java.io.IOException
public void setPortName(java.lang.String portName) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean isOpened()
public boolean open() throws java.io.IOException
java.io.IOException
public boolean close() throws java.io.IOException
java.io.IOException