CAN Clear Multiple with NI-DAQ.vi

NI-CAN

CAN Clear Multiple with NI-DAQ.vi

Purpose

Stop and clear the list of NI-CAN tasks and the NI-DAQ task synchronized with CAN Sync Start Multiple with NI-DAQ.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-DAQ VI.
If you wire the same RTSI terminal that you passed into CAN Sync Start Multiple with NI-DAQ.vi, this VI clears the routing in NI-DAQ. If you leave RTSI terminal unwired, the VI retains the routing in NI-DAQ. This VI always clears RTSI routing for NI-CAN.
NI-DAQ task ID is NI-DAQ task ID you wired into the CAN Sync Start Multiple with NI-DAQ VI.
Error in describes error conditions occurring before the VI executes. If an error has already occurred, the VI returns the value of the Error in cluster in Error out.
status is True if an error occurred. If status is True, the VI does not perform any operations.
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.

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.