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.

addCursor

System object: dsp.LogicAnalyzer
Package: dsp

Add cursor to display

Syntax

cursorTag = addCursor(H)
cursorTag = addCursor(H,'Name',Value)

Description

cursorTag = addCursor(H) adds in a cursor to the display. A tag value is returned, which can be used to modify and delete the cursor.

cursorTag = addCursor(H,'Name',Value) adds in a cursor to the display with each specified property Name set to the specified value. You can specify NameValue arguments in any order.

Input Arguments

expand all

Example: 'addCursor(H)' adds a cursor with the default characteristics.

Example: 'H.addCursor()' adds a cursor with the default characteristics.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Location',2,'Color','Blue' specifies that a cursor should be moved to the 2-second mark and colored blue.

expand all

'Color' must be one of the following.

  • 'Black'

  • 'Blue'

  • 'Cyan'

  • 'Green'

  • 'Magenta'

  • 'Red'

  • 'White'

  • 'Yellow'

Example: 'Color','Blue'

Data Types: char

Specify as a numeric scalar value, in seconds, the cursor location.

Example: 'Location','1.0'

Data Types: double

Specify as a logical scalar whether the cursor location should be locked.

  • If you choose true, then the cursor's location cannot be changed. Logic Analyzer denotes this by assigning a default color of red.

  • If you choose false, then the cursor's location can be changed. Logic Analyzer denotes this by assigning a default color of yellow.

Example: 'Locked',true

Was this topic helpful?