ECU Measurement and Calibration Toolkit C API Reference

Content Type
Programming Language
Current manual
Table of Contents

MC DAQ Start Stop.vi

MC DAQ Start Stop.vi

Purpose

Starts or stops transmission of the DAQ lists for the specified Measurement task.

Format

diagram

Input

long unsigned integer DAQ ref in is the task reference from the previous Measurement task VI. The task reference is originally returned from MC DAQ Initialize.vi, and then wired through subsequent Measurement task VIs.
long unsigned integer mode indicates the type of function to be performed.

Stop DAQ List

Configures the ECU to stop transmitting a DAQ task. If stopped, properties of the DAQ task can be changed using MC Set Property.vi. This function is performed automatically before MC DAQ Clear.vi.

Start DAQ List

Configures the ECU to start sending data for a DAQ task. Ensure that the DAQ list has not yet been transferred to the ECU first. Once started, properties of the DAQ list can no longer be changed using MC Set Property.vi. This function is performed automatically before the first read of the DAQ list with MC DAQ Read.vi.

Transmit DAQ List to ECU

Transfers the DAQ list to the ECU, but does not start it. For example, use this mode if you want to change the session status before starting the DAQ list. For some ECUs, this is necessary.

Prepare For Start All

Prepares DAQ or STIM lists to be started by only one command. This is useful when multiple DAQ or STIM lists are used with the same ECU. After preparing the DAQ/STIM lists with this command, use the same VI with the mode Start All DAQ Lists to start all lists at the same time.

Start All DAQ Lists

Starts all previously prepared DAQ or STIM lists at the same time.

Stop All DAQ Lists

Stops all running DAQ or STIM lists on the same ECU with one command.

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 will not execute 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 DAQ ref out is the same as DAQ ref in. Wire the task reference to subsequent VIs for this task.
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 DAQ Start Stop.vi is optional to start or stop transmission of the DAQ lists for an M&C Measurement task to use MC DAQ Read.vi. If you do not specify MC DAQ Start Stop.vi (Start DAQ List) before your first Read VI, it is implicitly performed by the first MC DAQ Read.vi call.

After you start the transmission of the DAQ lists, you can no longer change the configuration of the task with MC Set Property.vi. You must call MC DAQ Start Stop.vi (Stop DAQ List) first.

Was this information helpful?