public class FTDI2xxInterface extends DeviceInterface
Modifier and Type | Field and Description |
---|---|
static int |
FTDI_FT223H |
static int |
FTDI_FT2322H |
static int |
FTDI_FT4232H |
static int |
FTDI_NONE |
int |
itsFTDIModel |
static boolean |
kIsRatiometric |
static int |
kNChannels |
static float |
kSamplesPerSec |
static int |
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 |
---|
FTDI2xxInterface()
standard constructor for the DeviceInterface class
|
FTDI2xxInterface(int nChannels)
standard constructor for the DeviceInterface class
|
FTDI2xxInterface(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 for the FTDI
|
FTDI2xx_RH |
getFTDI2xxHardware()
returns a FTDI interface - if it exists
|
float |
getSensorValue(DataChannelDescriptor dataSource)
gets the sensor's value from a channel
|
void |
listDeviceInterface()
lists info for the device
|
static void |
main(java.lang.String[] args)
Main method.
|
void |
makeHardwareInterface()
makes the interface for a FTDI D2XX port
|
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, getControlHardware, getDataRate, getDeviceOperator, getDeviceOperatorForChannel, getDeviceType, getHardware, getHotShapeList, getItsName, getNControlDeviceOperators, getNDeviceOperators, getNInterfaceChannels, getNSensorDeviceOperators, getSensorDeviceOperator, getSensorHardware, getSensorValue, getTracker, initializeFromSettings, isValidControlHardware, isValidSensorHardware, list, listDeviceOperators, makeControlDeviceOperator, makeDeviceOperator, makeInterface, 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 static final int FTDI_NONE
public static final int FTDI_FT223H
public static final int FTDI_FT2322H
public static final int FTDI_FT4232H
public static int kNChannels
public static float kSamplesPerSec
public static boolean kIsRatiometric
public static int kSensorChangeTrigger
public int itsFTDIModel
public FTDI2xxInterface() throws java.lang.Exception
java.lang.Exception
- ...public FTDI2xxInterface(int nChannels) throws java.lang.Exception
nChannels
- the number of channelsjava.lang.Exception
- ...public FTDI2xxInterface(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 listDeviceInterface() throws java.lang.Exception
listDeviceInterface
in class DeviceInterface
java.lang.Exception
- ...public FTDI2xx_RH getFTDI2xxHardware() throws java.lang.Exception
java.lang.Exception
- ...public float getSensorValue(DataChannelDescriptor dataSource) throws java.lang.Exception
getSensorValue
in class DeviceInterface
dataSource
- the source of the sensor datajava.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