Initialize (niSync)
- Updated2023-02-17
- 3 minute(s) read
Initialize (niSync)
Creates a new NI-Sync instrument driver session.
You must invoke this node any time you want to use NI-Sync functions, and you must open a separate session for each device. You can use the instrument handle returned from this node to identify the device to other NI-Sync nodes, including NI-Sync external calibration nodes.
Inputs/Outputs

resource name
The resource name of the module to initialize. You can assign the resource name in NI Measurement & Automation Explorer (MAX).
Optional fields are shown in square brackets.
Syntax for Resource Names
Use the following syntax to specify resource names for this parameter:
PXI[bus number]::device number
VISA aliases are also valid for the resource name.
Resource Name Examples
| Resource Name | Description |
|---|---|
| Dev1 | DAQmx name (set in MAX) |
| PXI1Slot5 | DAQmx name |
| PXI0::15::INSTR | PXI bus 0, device number 15 |
| PXI::15::INSTR | PXI bus 0, device number 15 |
| PXI4::9::INSTR | PXI bus 4, device number 9 |

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

id query
A Boolean that specifies whether to query the instrument ID to determine if the instrument is compatible with the NI-Sync driver.
| True | Queries the instrument ID. |
| False | Does not query the instrument ID. |
Default value: True

reset device
A Boolean value that specifies whether to reset the NI-Sync module (including the external time reference, any connected terminals, and all scheduled future time events) during the initialization procedure.
| True | The NI-Sync module is reset during the initialization procedure. |
| False | The NI-Sync module is not reset during the initialization procedure. |
Default value: False

session out
The session handle for the NI-Sync device. Pass this handle to other NI-Sync nodes to program the behavior of the device.

error out
Error information.
The node produces this output according to standard error behavior.