CNiIviDcPwr::CNiIviDcPwr

Measurement Studio IVI

Class
CNiIviDcPwr::
CNiIviDcPwr()
Base ClassesData ItemsConstructorsFunctionsGo to hierarchy chart    Prev page: CNiIviDcPwrNext page: GetChannelName    
Public Constructor Declared in:
NiIviDcPwr.h

'Declaration' icon -- Shortcut to top of page. Declaration

inline CNiIviDcPwr(
    const CString &resourceName,
    bool idQuery = true,
    bool reset = true,
    const CString &options = "");

'Description' icon -- Shortcut to top of page. Description

Constructor. This constructor uses the resource descriptor you provided to create a new instrument driver session and initialize the object with the resource descriptor.

Shortcut to top of page. Parameters

const CString &resourceName

Logical name that identifies the particular virtual instrument to use. The virtual instrument, in turn, identifies a specific driver and device and specifies the initial settings for the session. You configure the logical name, virtual instrument, specific driver, and device with National Instruments Measurement and Automation Explorer.

If you want to use your program with a different physical instrument, change the configuration of the logical name to use the virtual instrument for the new physical instrument. You can change the initial settings for the session by changing the configuration of the virtual instrument.

bool idQuery = true

Specifies if you want the instrument driver to verify that the instrument you initialize is a type that this driver supports.

bool reset = true

Specifies if you want to reset the instrument during the initialization procedure.

const CString &options = ""

Set the initial values for the following properties:

  • RangeCheck
  • QueryInstrStatus
  • Cache
  • Simulate
  • RecordCoercions
  • Spy
  • InterchangeCheck

The format of this string is "propertyName=value" where propertyName is the name of the property and value is the value to which the property will be set. To set multiple properties, separate their assignments with a comma. If you do not specify a value for a property, the driver uses the value from National Instruments Measurement and Automation Explorer.

'See Also' icon -- Shortcut to top of page. See Also