CAN Clear Multiple with NI-DAQmx.vi

NI-CAN

CAN Clear Multiple with NI-DAQmx.vi

Purpose

Stop and clear the list of NI-CAN tasks and the NI-DAQmx task synchronized with CAN Sync Start Multiple with NI-DAQmx.vi.

Format

Inputs

CAN task reference list is the same array of NI-CAN task references you wired into the CAN Sync Start Multiple with NI-DAQmx.vi.
Synchronization in defines a cluster with information about the signals that have been routed between the cards and about additional DAQmx tasks that may have been created for synchronization. This information is needed to clear the routings in the NI-CAN and the NI-DAQmx devices after the measurement has been finished.
Counter task in is the task from an NI-DAQmx Create Virtual Channel VI. This additional NI-DAQmx task is created under certain circumstances to generate a common timebase clock for cards that do not support sharing of timebases through RTSI (like DAQ-Cards or NI-CAN Series 1 cards).
Routes out is a 1-dimensional array of terminal names of signals that have been routed between the cards.
Source terminal is the name of the terminal where the route starts.
Destination terminal is the name of the terminal where the route ends.
NI-DAQ task in is the same NI-DAQ task in you wired into the CAN Sync Start Multiple with NI-DAQmx VI.

Outputs

Error out describes error conditions. If the Error in cluster indicated an error, the Error out cluster contains the same information. Otherwise, Error out describes the error status of this VI.
status is True if an error occurred.
code is the error code number identifying an error. A value of 0 means success. A negative value means error: VI did not execute the intended operation. A positive value means warning: VI executed intended operation, but an informational warning is returned. For a description of the code, wire the error cluster to a LabVIEW error-handling VI, such as the Simple Error Handler.
source identifies the VI where the error occurred.

Description

All tasks are cleared to their state prior to CAN Sync Start Multiple with NI-DAQ. For example, this VI clears terminal routing of all NI-DAQ devices to the default state.

This VI is intended to serve as an example. You can use the VI as is, but the LabVIEW diagram is commented so you can use the VI as a starting point for more complex synchronization scenarios. Before you customize the LabVIEW diagram, save a copy of the VI for editing.