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.


Return settings for display channel


channelInfo = getDisplayChannelInfo(scope,'DisplayChannelTag',tag)



channelInfo = getDisplayChannelInfo(scope,'DisplayChannelTag',tag) returns the settings for the display channel or channels, specified by the input tag.


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])

Reorganize Display

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

tags = getDisplayChannelTags(scope);

    'Name','Ramp Digital','Height',40);
    'Name','Waves Analog','Format','Analog','Height',80);



Duplicate Wave and Check Information

duplicateWave = addWave(scope,'InputChannel',2,'Name','Waves Digital','Format','Digital',...

Remove Dividers


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 display channel settings, specified as a handle to the dsp.LogicAnalyzer object.

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: 'DisplayChannelTag','W5' specifies to return display channel settings about the wave with tag 'W5'.

collapse all

The tag or tags identifying the display channel or channels about which to get information, specified as a character vector or cell array of character vectors.

Example: 'DisplayChannelTag','W5'

Example: 'DisplayChannelTag',{'W4','W5'}

Data Types: char | cell

Output Arguments

collapse all

The channelInfo struct contains the following fields:

  • Color — Color of the waves.

  • InputChannel — Channel on the display that corresponds to the specified waves.

  • Radix — Radix for the waves.

  • FontSize — Font size for values in the waves. A value of 0 indicates that the waves inherit FontSize from the global DisplayChannelColor property.

  • Name — The name or label for the waves.

  • Height — Height of the wave. A value of 0 indicates that the waves inherit Height from the global DisplayChannelHeight property.

  • Tag — Tag for the channel.

Introduced in R2013a

Was this topic helpful?