Package nidaqdev
Class NIDeviceInfo
java.lang.Object
nidaqdev.NIDeviceInfo
-
Constructor Summary
ConstructorsConstructorDescriptionNIDeviceInfo(int devNumber, String name, String type, int serialNum, boolean isSimulated, boolean isSimultaneous, int inputChannels, int outputChannels, double[] aiVoltageRanges, double[] aoRanges) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSample(double sampleRate, int nChannels) intfindAIRangeIndex(double[] range) Get the index within a list of a voltage rangeintfindAIRangeIndex(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 arraydoublegetAIVoltageRangeEnd(int iRange) Get the upper bound of a voltage rangedoublegetAIVoltageRangeStart(int iRange) Get the lower bound of a voltage rangegetAIVoltageRangeString(int iRange) double[]getAOVoltageRange(int iRange) Get a voltage range as a two element arraydoublegetAOVoltageRangeEnd(int iRange) Get the upper bound of a voltage rangedoublegetAOVoltageRangeStart(int iRange) Get the lower bound of a voltage rangeintintdoubledoublegetName()intGet the number of voltage ranges for the deviceintGet the number of voltage ranges for the deviceintintbooleanisExists()booleanbooleanvoidsetMaxMultiChannelRate(double maxMultiChannelRate) voidsetMaxSingleChannelRate(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)
-