This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Return all Logic Analyzer cursor tags


cursorTags = getCursorTags(scope)



cursorTags = getCursorTags(scope) returns all the cursor tags for the Logic Analyzer. You can use these tags to get information about a cursor using the getCursorInfo method, to modify a cursor using the modifyCursor method, or to delete a cursor using the deleteCursor method.


collapse all

This example shows how to use functions to create, manipulate, and delete cursors in a dsp.LogicAnalyzer object.

Create Logic Analyzer and Signals

scope = dsp.LogicAnalyzer('NumInputPorts',3);
for ii = 1:20

Add Cursor

cursor = addCursor(scope,'Location',15,'Color','Cyan');
ans = struct with fields:
    Location: 15
       Color: [0 1 1]
      Locked: 0
         Tag: 'C2'

Modify Cursor


Remove Cursor

tags = getCursorTags(scope);

Input Arguments

collapse all

The Logic Analyzer object from which you want to return all cursor tags, specified as a handle to the dsp.LogicAnalyzer object.

Output Arguments

collapse all

The cursor tags, specified as a cell array of character vectors.

Example: {'C1'}

Example: {'C1','C2','C3'}

Data Types: cell

Introduced in R2013a