Table Of Contents

Initialize With Options (G Dataflow)

Version:
    Last Modified: March 3, 2017

    Creates a new instrument driver session, preparing a DMM for use with NI-DMM.

    You can use this node to set the initial state of the Range Check, Query Instrument Status, Cache, Simulate, and Record Value Coercions session properties.

    connector_pane_image
    datatype_icon

    resource name

    Resource name of the device to initialize. The resource name is assigned in NI MAX.

    Examples

    The following examples are valid syntax for this parameter:

    • NI-DAQmx name
    • DAQ::NI-DAQmx name[::INSTR]
    • DAQ::Traditional NI-DAQ device number[::INSTR]
    • IVI logical name
    spd-note-caution
    Caution  

    All IVI names for the resource name, such as logical names or virtual names, are case-sensitive. If you use logical names, driver session names, or virtual names in your program, you must make sure that the name you use matches the name in the IVI Configuration Store file exactly, without any variations in the case of the characters in the name.

    datatype_icon

    id query

    Boolean value that specifies whether or not to verify that the device you initialize is supported by NI-DMM.

    True Query the instrument ID and verify that it is supported.
    False Do not verify device support.

    Default: True

    datatype_icon

    reset device

    Boolean value that specifies whether to reset the DMM during initialization.

    TRUE Reset the device to a known state during initialization
    FALSE Do not reset the device during initialization

    Default: True

    datatype_icon

    option string

    Initial values for session properties.

    This parameter should be in the format "PropertyName=Value." To set multiple properties, separate their assignments with a comma. If you do not specify a value for a property, the session will use the default value for that property.

    The following table lists the session properties and their default values:

    Property Name Default Values
    RangeCheck TRUE 1
    QueryInstrumentStatus FALSE 0
    Cache TRUE 1
    Simulate FALSE 0
    RecordValueCoercions FALSE 0
    DriverSetup "" (empty string) ""

    Refer to Simulating NI Digital Multimeters for more information.

    Default:

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    session out

    Instrument identifier for subsequent NI-DMM nodes.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics