Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isMeasurementRunning

Indicate if measurement is active

Syntax

isMeasurementRunning(xcpch)

Description

example

isMeasurementRunning(xcpch) returns a boolean indicating if the configured measurements are active and running.

Examples

collapse all

Set up a DAQ measurement list and start it. Verify if this list is running.

Create an XCP channel with a CAN slave module.

a2l = xcpA2L('XCPSIM.a2l')
xcpch = xcpChannel(a2lfile, 'CAN', 'Vector', 'Virtual 1', 1);

Setup a data acquisition measurement list with the ‘10 ms’ event and 'Bitslice' measurement and verify if measurement is running.

createMeasurementList(xcpch, 'DAQ', '10 ms', 'BitSlice')
isMeasurementRunning(xcpch)
ans =

     0

Start your measurement and verify if measurement is running.

startMeasurement(xcpch)
isMeasurementRunning(xcpch)
ans =

     1

Input Arguments

collapse all

XCP channel, specified as an XCP channel object created using xcpChannel. The XCP channel object can then communicate with the specified slave module defined by the A2L file.

Introduced in R2013a

Was this topic helpful?