Package nidaqdev

Class NIDeviceInfo

java.lang.Object
nidaqdev.NIDeviceInfo

public class NIDeviceInfo extends Object
  • Constructor Details Link icon

    • NIDeviceInfo Link icon

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

    • getDevNumber Link icon

      public int getDevNumber()
    • getName Link icon

      public String getName()
    • toString Link icon

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

      public String toLongString()
    • gethoverInfo Link icon

      public String gethoverInfo()
    • getSerialNum Link icon

      public int getSerialNum()
      Returns:
      the device serial number (0 for simulated or missing devices)
    • isSimulated Link icon

      public boolean isSimulated()
      Returns:
      true if the device is simulated
    • isSimultaneous Link icon

      public boolean isSimultaneous()
      Returns:
      the isSimultaneous
    • isExists Link icon

      public boolean isExists()
    • getInputChannels Link icon

      public int getInputChannels()
      Returns:
      the number of inputChannels
    • getOutputChannels Link icon

      public int getOutputChannels()
    • getNumAIVoltageRanges Link icon

      public int getNumAIVoltageRanges()
      Get the number of voltage ranges for the device
      Returns:
      number of voltage ranges
    • getAIVoltageRange Link icon

      public double[] getAIVoltageRange(int iRange)
      Get a voltage range as a two element array
      Parameters:
      iRange - range index
      Returns:
      voltage range
    • getAIVoltageRangeStart Link icon

      public double getAIVoltageRangeStart(int iRange)
      Get the lower bound of a voltage range
      Parameters:
      iRange - range index
      Returns:
      range in volts
    • getAIVoltageRangeEnd Link icon

      public double getAIVoltageRangeEnd(int iRange)
      Get the upper bound of a voltage range
      Parameters:
      iRange - range index
      Returns:
      range in volts
    • getNumAOVoltageRanges Link icon

      public int getNumAOVoltageRanges()
      Get the number of voltage ranges for the device
      Returns:
      number of voltage ranges
    • getAOVoltageRange Link icon

      public double[] getAOVoltageRange(int iRange)
      Get a voltage range as a two element array
      Parameters:
      iRange - range index
      Returns:
      voltage range
    • getAOVoltageRangeStart Link icon

      public double getAOVoltageRangeStart(int iRange)
      Get the lower bound of a voltage range
      Parameters:
      iRange - range index
      Returns:
      range in volts
    • getAOVoltageRangeEnd Link icon

      public double getAOVoltageRangeEnd(int iRange)
      Get the upper bound of a voltage range
      Parameters:
      iRange - range index
      Returns:
      range in volts
    • getAIVoltageRangeString Link icon

      public String getAIVoltageRangeString(int iRange)
      Parameters:
      iRange - range index
      Returns:
      string describing the range (suitable for use in a combo box)
    • findAIRangeIndex Link icon

      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 Link icon

      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 Link icon

      public double getMaxSingleChannelRate()
    • setMaxSingleChannelRate Link icon

      public void setMaxSingleChannelRate(double maxSingleChannelRate)
    • getMaxMultiChannelRate Link icon

      public double getMaxMultiChannelRate()
    • setMaxMultiChannelRate Link icon

      public void setMaxMultiChannelRate(double maxMultiChannelRate)
    • canSample Link icon

      public boolean canSample(double sampleRate, int nChannels)