DocumentationHelp Center
Delete Logic Analyzer cursor
deleteCursor(scope,tag)
example
deleteCursor(scope,tag) deletes the Logic Analyzer cursor specified by the input tag.
scope
tag
collapse all
This example shows how to use functions to create, manipulate, and delete cursors in a dsp.LogicAnalyzer object.
dsp.LogicAnalyzer
Create Logic Analyzer and Signals
scope = dsp.LogicAnalyzer('NumInputPorts',3); for ii = 1:20 scope(ii,10*ii,20*ii); end
Add Cursor
cursor = addCursor(scope,'Location',15,'Color','Cyan'); getCursorInfo(scope,cursor)
ans = struct with fields: Location: 15 Color: [0 1 1] Locked: 0 Tag: 'C2'
Modify Cursor
modifyCursor(scope,cursor,'Color','Magenta')
Remove Cursor
tags = getCursorTags(scope); deleteCursor(scope,tags{1});
The Logic Analyzer object from which you want to delete a cursor, specified as a handle to the dsp.LogicAnalyzer object.
The tag identifying which cursor to delete, specified as a randomly assigned character vector.
Example: deleteCursor(scope,tag) deletes a cursor from Logic Analyzer.
Data Types: char | string
char
string
addCursor | deleteDisplayChannel | dsp.LogicAnalyzer | getCursorInfo | getCursorTags | modifyCursor
addCursor
deleteDisplayChannel
getCursorInfo
getCursorTags
modifyCursor
A modified version of this example exists on your system. Do you want to open this version instead?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office