public class LinkMInterface extends DeviceInterface
Modifier and Type | Field and Description |
---|---|
static float |
kSamplesPerSec |
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 |
---|
LinkMInterface(int nChannels)
standard constructor for the DeviceInterface class
|
LinkMInterface(int nChannels,
float samplesPerSec)
standard constructor for the DeviceInterface class
|
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the interface
|
void |
completeInterface()
complete the interface to a Phidget
|
java.lang.Object |
getControlHardware()
returns an output phidget - if it exists
|
thingm.linkm.LinkM |
getLinkMHardware()
returns a interface kit phidget - if it exists
|
java.lang.Object |
getSensorHardware()
returns a sensor phidget - if it exists
|
float |
getSensorValue(DataChannelDescriptor dataSource)
returns the sensor value for the device on one channel.
|
void |
listDeviceInterface()
lists info for the device
|
static void |
main(java.lang.String[] args)
Main method.
|
void |
makeHardwareInterface()
makes the interface to a Phidget
|
void |
makeInterface()
makes the interface to a Phidget
|
void |
turnOffHardware(int channel)
stops the device on one channel.
|
void |
turnOnHardware(int channel)
starts the device on one channel.
|
activateUsedChannels, addControlDeviceOperator, addDeviceOperator, addSensorDeviceOperator, autoColorTraces, closeEventInterface, confirmChannelRange, confirmInputCapable, confirmMinNChannels, confirmOutputCapable, controlAllDevices, controlDeviceFromSchedule, finalizeInterface, getAnalogOutHardware, getAnalogSensorHardware, getChannelAccess, getControlDeviceOperator, getDataRate, getDeviceOperator, getDeviceOperatorForChannel, getDeviceType, getHardware, getHotShapeList, getItsName, getNControlDeviceOperators, getNDeviceOperators, getNInterfaceChannels, getNSensorDeviceOperators, getSensorDeviceOperator, getSensorValue, getTracker, initializeFromSettings, isValidControlHardware, isValidSensorHardware, list, listDeviceOperators, makeControlDeviceOperator, makeDeviceOperator, makeSensorDeviceOperator, makeSineWave, prepareEventInterface, resetAllChannels, resetTraces, sendCommand, setByteValue, setByteValue, setChannelAccess, setDataRate, setDeviceType, setEnabled, setEngaged, setInterface, setItsName, setNControlInterfaceChannels, setTraceTimes, setTracker, setupDataLogging, setValidRange, setValue, startDataIn_DirectPolling, startDataIn_DirectPolling, startDataIn_EventDriven, startDataIn, startEventInterface, stopDataIn, stopEventInterface, toString, turnOff, turnOn, 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
public LinkMInterface(int nChannels) throws java.lang.Exception
nChannels
- the number of channelsjava.lang.Exception
- ...public LinkMInterface(int nChannels, float samplesPerSec) throws java.lang.Exception
nChannels
- the number of channelssamplesPerSec
- the sampling ratejava.lang.Exception
- ...public void makeHardwareInterface() throws java.lang.Exception
makeHardwareInterface
in class DeviceInterface
java.lang.Exception
- ...public void makeInterface() throws java.lang.Exception
makeInterface
in class DeviceInterface
java.lang.Exception
- ...public void listDeviceInterface() throws java.lang.Exception
listDeviceInterface
in class DeviceInterface
java.lang.Exception
- ...public java.lang.Object getSensorHardware() throws java.lang.Exception
getSensorHardware
in class DeviceInterface
java.lang.Exception
- ...public java.lang.Object getControlHardware() throws java.lang.Exception
getControlHardware
in class DeviceInterface
java.lang.Exception
- ...public thingm.linkm.LinkM getLinkMHardware() throws java.lang.Exception
java.lang.Exception
- ...public float getSensorValue(DataChannelDescriptor dataSource) throws java.lang.Exception
getSensorValue
in class DeviceInterface
dataSource
- the descriptor for the data sourcejava.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 void close() throws java.lang.Exception
close
in class DeviceInterface
java.lang.Exception
- ...public void completeInterface() throws java.lang.Exception
completeInterface
in class DeviceInterface
java.lang.Exception
- ...public static void main(java.lang.String[] args)
args
- the argumentsRH, 2017