Purpose

Writes samples to an ECU DAQ list.

Format

Input

Raw value is a poly output that writes raw samples (no scaling) to the ECU STIM list. This input only writes data to channels that were defined as raw measurements during the initialization of the DAQ list. The type of the poly output is determined by the poly VI selection. For information on the different poly VI types provided by MC DAQ Write.vi, refer to Poly VI Types in the Description section.

To select the data type, right-click the VI, go to Select Type, and select the type by name.

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.
Number of samples specifies the number of samples to write for the Measurement task. For single-sample Poly VI types, MC DAQ Write.vi always returns one sample, so this input is ignored.
Value is a poly output that writes scaled samples to the ECU STIM list. This input only writes data to channels that were defined as (scaled) measurements during the initialization of the DAQ list. The type of the poly output is determined by the poly VI selection. For information on the different poly VI types provided by MC DAQ Write.vi, refer to the Poly VI Types section.

To select the data type, right-click the VI, go to Select Type, and select the type by name.

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 will not execute 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

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

The name of each Poly VI type uses the following conventions:

  • The first term is either 1Chan or NChan. This indicates whether the type writes data to a single scaled and a single raw channel or multiple channels. NChan types write an array of analogous 1Chan types, one entry for each channel initialized in channel lists of MC DAQ Initialize.vi. 1Chan types are convenient because no array indexing is required, but you are limited to writing only one scaled and one raw channel. If no scaled or no raw channel was defined, then you only write one channel.
  • The second term is 1Samp, which indicates that the type writes a single sample.
  • The third term indicates the data type used for each sample. The type Double indicates double-precision (64-bit) floating point for the value input. The raw value input is always of type unsigned 64-bit integer. The type 1D indicates one dimensional array.

1Chan 1Samp Double

Writes a single sample for the first (scaled and raw) channels initialized in the channel lists. This poly VI immediately writes a single sample. The initialized sample rate is ignored.

NChan 1Samp 1D Double

Writes an array, one entry for each channel initialized in the channel lists. Each entry consists of a single sample. The order of channel entries in samples is the same as the order in the original channel lists. You must provide one sample for each channel. Array entries beyond that are ignored. This poly VI immediately writes a single sample for each channel. The initialized sample rate is ignored. You can specify channels in channel lists that span multiple messages. To determine the number of channels in the task after initialization, get the Number of Channels and Number of Raw Channels properties for the task reference.