National Instruments 372139B-01 Automobile User Manual


 
Chapter 5 Automotive Diagnostic Command Set API for LabVIEW
© National Instruments Corporation 5-81 Automotive Diagnostic Command Set User Manual
UDS CommunicationControl.vi
Purpose
Executes the UDS CommunicationControl service. Use this VI to switch transmission and/or
reception of the normal communication messages (usually CAN messages) on or off.
Format
Input
diag ref in specifies the diagnostic session handle, obtained from Open
Diagnostic.vi and wired through subsequent diagnostic VIs. Normally, it is
not necessary to manually manipulate the elements of this cluster.
type indicates whether transmission/reception is to be switched on/off.
The usual values are:
00: enableRxAndTx
01: enableRxAndDisableTx
02: disableRxAndEnableTx
03: disableRxAndTx
communication type is a bitfield indicating the application level to
change. The usual values are:
01: application
02: networkManagement
You can change more than one level at a time.
error in is a cluster that describes error conditions occurring before the VI
executes. If an error has already occurred, the VI returns the value of the
error in cluster to error out.
status is TRUE if an error occurred. This VI is not executed when
status is TRUE.