public class PhidgetAnalogOutInterface extends PhidgetInterface implements OutputOperations
itsPhidgetModel, kIsRatiometric, kSamplesPerSec, kSensorChangeTrigger
attached, ChannelAccess_DIRECT, ChannelAccess_EVENTS, ChannelAccess_NONE, contrChannelsInUse, currSampleTime, datVal, DeviceType_IN, DeviceType_INOUT, DeviceType_NONE, DeviceType_OUT, fw, isActive, isDataInRunning, isDataLoggingReady, itsControlDesign, itsDeviceTimer, itsDeviceType, itsDurationTraceTime, itsEngine, itsHardware, itsInstrumentPanel, itsOffVoltage, itsOnVoltage, itsReader, itsRunTime, itsSamplesPerSec, itsSerNum, itsSettings, itsStartTraceTime, itsTimerRowCounter, itsType, itsWriter, lastSampleTime, listValues, logFileName, loggerIsRunning, operChannelsInUse, sensChannelsInUse, sensorTraces, startTimeDataIn, timeDevice, validRange
Constructor and Description |
---|
PhidgetAnalogOutInterface(int nChannels)
standard constructor for the PhidgetRelayController class
|
Modifier and Type | Method and Description |
---|---|
double |
getValue(int channel)
returns the output voltage on a channel.
|
double |
getVoltage(int channel)
returns the output voltage on a channel.
|
static void |
main(java.lang.String[] args)
Main method.
|
void |
makeHardwareInterface()
looks for and initializes the interfacekit for the relay controller
|
void |
setEnabled(int channel,
boolean turnON)
returns the output voltage on a channel.
|
void |
setValue(int channelID,
float value)
sets the output value on a channel.
|
void |
setVoltage(int theChannel,
double volts)
sets the output voltage on a channel.
|
void |
turnOffHardware(int channel)
stops the device on one channel.
|
void |
turnOnHardware(int channel)
starts the device on one channel.
|
activateUsedChannels, close, closeEventInterface, completeInterface, confirmPhidgetHardware, getAdvancedServoHardware, getAnalogOutHardware, getControlHardware, getIFKitHardware, getSensorHardware, getSensorValue, getServoHardware, handleSensorEvent, listDeviceInterface, prepareEventInterface, processSensorEvent, resetAllChannels, sensorChanged, turnOff, turnOn
addControlDeviceOperator, addDeviceOperator, addSensorDeviceOperator, autoColorTraces, confirmChannelRange, confirmInputCapable, confirmMinNChannels, confirmOutputCapable, controlAllDevices, controlDeviceFromSchedule, finalizeInterface, getAnalogSensorHardware, getChannelAccess, getControlDeviceOperator, getDataRate, getDeviceOperator, getDeviceOperatorForChannel, getDeviceType, getHardware, getHotShapeList, getItsName, getNControlDeviceOperators, getNDeviceOperators, getNInterfaceChannels, getNSensorDeviceOperators, getSensorDeviceOperator, getSensorValue, getTracker, initializeFromSettings, isValidControlHardware, isValidSensorHardware, list, listDeviceOperators, makeControlDeviceOperator, makeDeviceOperator, makeInterface, makeSensorDeviceOperator, makeSineWave, resetTraces, sendCommand, setByteValue, setByteValue, setChannelAccess, setDataRate, setDeviceType, setEngaged, setInterface, setItsName, setNControlInterfaceChannels, setTraceTimes, setTracker, setupDataLogging, setValidRange, startDataIn_DirectPolling, startDataIn_DirectPolling, startDataIn_EventDriven, startDataIn, startEventInterface, stopDataIn, stopEventInterface, toString, updateSamplingRate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
turnOff, turnOn
public PhidgetAnalogOutInterface(int nChannels) throws java.lang.Exception
nChannels
- the number of channelsjava.lang.Exception
- ...public void makeHardwareInterface() throws java.lang.Exception
makeHardwareInterface
in class PhidgetInterface
java.lang.Exception
- ...public void setEnabled(int channel, boolean turnON) throws java.lang.Exception
setEnabled
in class DeviceInterface
channel
- index of the deviceturnON
- do turn on?java.lang.Exception
- ...public double getVoltage(int channel) throws java.lang.Exception
channel
- index of the devicejava.lang.Exception
- ...public double getValue(int channel) throws java.lang.Exception
channel
- index of the devicejava.lang.Exception
- ...public void setVoltage(int theChannel, double volts) throws java.lang.Exception
theChannel
- index of the devicevolts
- the voltage to setjava.lang.Exception
- ...public void setValue(int channelID, float value) throws java.lang.Exception
setValue
in class PhidgetInterface
channelID
- index of the devicevalue
- the value to setjava.lang.Exception
- ...public void turnOnHardware(int channel) throws java.lang.Exception
channel
- index of the devicejava.lang.Exception
- ...public void turnOffHardware(int channel) throws java.lang.Exception
channel
- index of the devicejava.lang.Exception
- ...public static void main(java.lang.String[] args)
args
- the argumentsRH, 2017