Package nidaqdev

Class NIDeviceInfo

java.lang.Object
nidaqdev.NIDeviceInfo

public class NIDeviceInfo extends Object
  • Constructor Details

    • NIDeviceInfo

      public NIDeviceInfo(int devNumber, String name, String type, int serialNum, boolean isSimulated, boolean isSimultaneous, int inputChannels, int outputChannels, double[] aiVoltageRanges, double[] aoRanges)
  • Method Details

    • getDevNumber

      public int getDevNumber()
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLongString

      public String toLongString()
    • gethoverInfo

      public String 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

      public String getAIVoltageRangeString(int iRange)
      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 array
      defaultValue - 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)