Admin Production ni-theme
Current Publication

Get Channel Name

IVI Compliance Package

ClassPrefix Get Channel Name

IVI Inherent Function

To form the ClassPrefix VI name, use the prefix of the class driver that you are working with. For example, if you are working with the IviDmm class driver, use the prefix IviDmm to create the correct VI name, IviDmm Get Channel Name.

This VI returns the specific driver defined channel name that corresponds to the one-based index that you specify. If the value you pass for the Index parameter is less than one or greater than the value of the Channel Count property, this VI returns an empty string in the Name parameter and returns an error.

instrument handle The instrument handle that you obtain from the ClassPrefix Initialize or ClassPrefix Initialize With Options VI. The handle identifies a particular instrument session.
Channel Index (1) A one-based index that defines which name to return.  The index must be less than or equal to the ClassPrefix Channel Count property.
instrument handle out The instrument handle that you obtain from the ClassPrefix Initialize or ClassPrefix Initialize With Options VI. The handle identifies a particular instrument session.
error in (no error) The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

Channel Name Returns the name of the Channel specified by the Channel Index input.
error out The error out cluster passes error or warning information out of a VI to be used by other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.