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.

getDisplayChannelTags

Return all Logic Analyzer display channel tags

Syntax

displayChannelTags = getDisplayChannelTags(scope)

Description

example

displayChannelTags = getDisplayChannelTags(scope) returns all the tags for waves or dividers in a Logic Analyzer. You use these tags to

Examples

collapse all

Use functions to construct and manipulate a dsp.LogicAnalyzer System object.

Display Waves on Logic Analyzer scope.

scope = dsp.LogicAnalyzer('NumInputPorts',2);

stop = 30;
for count = 1:stop
    sinValVec = sin(count/stop*2*pi);
    cosValVec = cos(count/stop*2*pi);
    cosValVecOffset = cos((count+10)/stop*2*pi);
    
    scope([count (count-(stop/2))],[sinValVec cosValVec cosValVecOffset]) 
end

Reorganize Display

digitalDividerTag = addDivider(scope,'Name','Digital','Height',20);
analogDividerTag = addDivider(scope,'Name','Analog','Height',40);

tags = getDisplayChannelTags(scope);

modifyDisplayChannel(scope,tags{1},'InputChannel',1,...
    'Name','Ramp Digital','Height',40);
modifyDisplayChannel(scope,tags{2},'InputChannel',2,...
    'Name','Waves Analog','Format','Analog','Height',80);

moveDisplayChannel(scope,digitalDividerTag,'DisplayChannel',1)
moveDisplayChannel(scope,tags{2},'DisplayChannel',length(tags))

show(scope)

Duplicate Wave and Check Information

addWave(scope,'InputChannel',2,'Name','Waves Digital','Format','Digital',...
    'Height',30,'DisplayChannel',3);

Remove Dividers

deleteDisplayChannel(scope,digitalDividerTag)
deleteDisplayChannel(scope,analogDividerTag)

Clear variables

clear analogDividerTag cosValVec cosValVecOffset count digitalDividerTag duplicateWave scope sinValVec stop tags

Input Arguments

collapse all

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

Output Arguments

collapse all

The display channel tags, returned as a cell array of character vectors.

Example: {'W1'}

Example: {'W1','W2','W3'}

Data Types: cell

Introduced in R2013a