CAN Disconnect Terminals.vi
Purpose
Disconnect terminals in the CAN hardware.
Format
Inputs
task reference in is the task reference from the previous NI-CAN VI. The task reference is originally returned from CAN Init Start.vi, CAN Initialize.vi, or CAN Create Message.vi, and then wired through subsequent VIs. | |||||||
source terminal specifies the connection source. For a description of values for source terminal, refer to CAN Connect Terminals.vi. | |||||||
destination terminal specifies the connection destination. For a description of values for destination terminal, refer to CAN Connect Terminals.vi. | |||||||
modifiers provides optional connection information for certain source/destination pairs. The current release of NI-CAN does not use this information for any source/destination pair, so modifiers must be left unwired. | |||||||
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.
|
Outputs
task reference out is the same as task reference in. Wire the task reference to subsequent VIs for this task. | |||||||
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.
|
Description
This VI disconnects a specific pair of source/destination terminals that were previously connected with CAN Connect Terminals.vi.
When the final task for a given interface is cleared with CAN Clear.vi, NI-CAN disconnects all terminal connections for that interface. Therefore, the CAN Disconnect Terminals VI is not required for most applications. This VI is typically used to change RTSI connections dynamically while an application is running. First, use CAN Stop.vi to stop all tasks for the interface, then use CAN Disconnect Terminals and CAN Connect Terminals to adjust RTSI connections, then CAN Start.vi to restart sampling.