ECU Measurement and Calibration Toolkit C API Reference

Content Type
Programming Language
Current manual
Table of Contents

MC Measurement Read.vi

MC Measurement Read.vi

Purpose

Reads a single Measurement value from the ECU.

Format

diagram

Input

string Measurement name is the name of a measurement channel stored in the A2L database file you want to read.
long unsigned integer ECU ref in is the task reference which links to the selected ECU. This reference is originally returned from MC ECU Open.vi or MC ECU Select.vi, and then wired through subsequent VIs.
cluster 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.
boolean status is TRUE if an error occurred. This VI is not executed when status is TRUE.
long unsigned integer 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.
string source identifies the VI where the error occurred.

Output

long unsigned integer ECU ref out is the same as ECU ref in. Wire the task reference to subsequent VIs for this task.
poly Value returns a single sample for the Measurement channel initialized in Measurement name. The type of the poly output is determined by the poly VI selection. For information on the different poly VI types provided by MC Measurement Read.vi, refer to the Poly VI Types table in the Description section.
cluster 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.
boolean status is TRUE if an error occurred.
long signed integer 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.
string source identifies the VI where the error occurred.

Description

MC Measurement Read.vi performs a single point read of a measurement variable without opening a DAQ task.

Poly VI Types

VI TypeDescription
Parameter (Dbl)Returns a single scaled double value for the selected Characteristic name.
Parameter (Raw)Returns a single unscaled unsigned 64-bit integer value for the selected Characteristic name.
Was this information helpful?