Purpose

Writes the value(s) of a named Characteristic to an ECU identified by the ECU ref handle. The Poly VI writes the selected type, 1D or 2D array. Supported types are double, unsigned 64-bit integer, and byte array (1D only).

Format

Input

Characteristic name is the name of the Characteristic defined in the A2L database to which one or more values may be written.
ECU ref in is the task reference which links to the selected ECU. This reference is originally returned from or , and then wired through subsequent VIs.
Characteristic writes the data for the Characteristic channel initialized by Characteristic name. For information on the different poly VI types provided by MC Characteristic Write.vi, refer to the table in the Description section.
Error in is a cluster which 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.
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.

Output

ECU ref out is the same as ECU ref 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.
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

Poly VI Types for the Characteristic Parameter

VI Type Description
Parameter (Dbl) Writes a single scaled double value to the selected Characteristic name.
Curve (1D Dbl Array) Writes a 1-dimensional array of scaled double values to the selected Characteristic name.
Field (2D Dbl Array) Writes a 2-dimensional array of scaled double values to the selected Characteristic name.
Parameter (Raw) Writes a single unscaled unsigned 64-bit integer value to the selected Characteristic name.
Curve (1D Raw Array) Writes a 1-dimensional array of unscaled unsigned 64-bit integer values to the selected Characteristic name.
Field (2D Raw Array) Writes a 2-dimensional array of unscaled unsigned 64-bit integer values to the selected Characteristic name.
Byte Array Writes a 1-dimensional array of unscaled unsigned byte values to the selected Characteristic name. The byte array corresponds to the memory area in the ECU representing this characteristic.