Package nidaqdev
Class NIDeviceInfo
java.lang.Object
nidaqdev.NIDeviceInfo
-
Constructor Summary
ConstructorDescriptionNIDeviceInfo
(int devNumber, String name, String type, int serialNum, boolean isSimulated, boolean isSimultaneous, int inputChannels, int outputChannels, double[] aiVoltageRanges, double[] aoRanges) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSample
(double sampleRate, int nChannels) int
findAIRangeIndex
(double[] range) Get the index within a list of a voltage rangeint
findAIRangeIndex
(double[] range, int defaultValue) Get the index within a list of a voltage rangedouble[]
getAIVoltageRange
(int iRange) Get a voltage range as a two element arraydouble
getAIVoltageRangeEnd
(int iRange) Get the upper bound of a voltage rangedouble
getAIVoltageRangeStart
(int iRange) Get the lower bound of a voltage rangegetAIVoltageRangeString
(int iRange) double[]
getAOVoltageRange
(int iRange) Get a voltage range as a two element arraydouble
getAOVoltageRangeEnd
(int iRange) Get the upper bound of a voltage rangedouble
getAOVoltageRangeStart
(int iRange) Get the lower bound of a voltage rangeint
int
double
double
getName()
int
Get the number of voltage ranges for the deviceint
Get the number of voltage ranges for the deviceint
int
boolean
isExists()
boolean
boolean
void
setMaxMultiChannelRate
(double maxMultiChannelRate) void
setMaxSingleChannelRate
(double maxSingleChannelRate) toString()
-
Constructor Details
-
NIDeviceInfo
-
-
Method Details
-
getDevNumber
public int getDevNumber() -
getName
-
toString
-
toLongString
-
gethoverInfo
-
getSerialNum
public int getSerialNum()- Returns:
- the device serial number (0 for simulated or missing devices)
-
isSimulated
public boolean isSimulated()- Returns:
- true if the device is simulated
-
isSimultaneous
public boolean isSimultaneous()- Returns:
- the isSimultaneous
-
isExists
public boolean isExists() -
getInputChannels
public int getInputChannels()- Returns:
- the number of inputChannels
-
getOutputChannels
public int getOutputChannels() -
getNumAIVoltageRanges
public int getNumAIVoltageRanges()Get the number of voltage ranges for the device- Returns:
- number of voltage ranges
-
getAIVoltageRange
public double[] getAIVoltageRange(int iRange) Get a voltage range as a two element array- Parameters:
iRange
- range index- Returns:
- voltage range
-
getAIVoltageRangeStart
public double getAIVoltageRangeStart(int iRange) Get the lower bound of a voltage range- Parameters:
iRange
- range index- Returns:
- range in volts
-
getAIVoltageRangeEnd
public double getAIVoltageRangeEnd(int iRange) Get the upper bound of a voltage range- Parameters:
iRange
- range index- Returns:
- range in volts
-
getNumAOVoltageRanges
public int getNumAOVoltageRanges()Get the number of voltage ranges for the device- Returns:
- number of voltage ranges
-
getAOVoltageRange
public double[] getAOVoltageRange(int iRange) Get a voltage range as a two element array- Parameters:
iRange
- range index- Returns:
- voltage range
-
getAOVoltageRangeStart
public double getAOVoltageRangeStart(int iRange) Get the lower bound of a voltage range- Parameters:
iRange
- range index- Returns:
- range in volts
-
getAOVoltageRangeEnd
public double getAOVoltageRangeEnd(int iRange) Get the upper bound of a voltage range- Parameters:
iRange
- range index- Returns:
- range in volts
-
getAIVoltageRangeString
- Parameters:
iRange
- range index- Returns:
- string describing the range (suitable for use in a combo box)
-
findAIRangeIndex
public int findAIRangeIndex(double[] range, int defaultValue) Get the index within a list of a voltage range- Parameters:
range
- two element double arraydefaultValue
- default value to return- Returns:
- range index or defalt value.
-
findAIRangeIndex
public int findAIRangeIndex(double[] range) Get the index within a list of a voltage range- Parameters:
range
- two element double array- Returns:
- range index or -1 if range not found
-
getMaxSingleChannelRate
public double getMaxSingleChannelRate() -
setMaxSingleChannelRate
public void setMaxSingleChannelRate(double maxSingleChannelRate) -
getMaxMultiChannelRate
public double getMaxMultiChannelRate() -
setMaxMultiChannelRate
public void setMaxMultiChannelRate(double maxMultiChannelRate) -
canSample
public boolean canSample(double sampleRate, int nChannels)
-