getDisplayChannelInfo
Return settings for Logic Analyzer display channel
Description
returns the settings for the display channel or channels, specified by the input tag.channelInfo
= getDisplayChannelInfo(scope
,'DisplayChannelTag',tag
)
Examples
Manipulate Logic Analyzer Programatically
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
hide(scope) 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
hide(scope) addWave(scope,'InputChannel',2,'Name','Waves Digital','Format','Digital',... 'Height',30,'DisplayChannel',3); show(scope)
Remove Dividers
hide(scope) deleteDisplayChannel(scope,digitalDividerTag) deleteDisplayChannel(scope,analogDividerTag) show(scope)
Clear variables
clear analogDividerTag cosValVec cosValVecOffset count digitalDividerTag duplicateWave scope sinValVec stop tags
Input Arguments
scope
— Logic Analyzer object
dsp.LogicAnalyzer
object
The Logic Analyzer object from which you want to return display channel
settings, specified as a handle to the dsp.LogicAnalyzer
object.
tag
— Tag or tags identifying the display channel or channels about which to get information
character vector | string scalar | cell array of character vectors | string array
The tag or tags identifying the display channel or channels about which to get information.
Example: 'DisplayChannelTag','W5'
Example: 'DisplayChannelTag',{'W4','W5'}
Example: 'DisplayChannelTag',["W4","W5"]
Data Types: char
| string
Output Arguments
channelInfo
— Information about settings for the display channel or channels
struct
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 of0
indicates that the waves inheritFontSize
from the globalDisplayChannelColor
property.Name
— The name or label for the waves.Height
— Height of the wave. A value of0
indicates that the waves inheritHeight
from the globalDisplayChannelHeight
property.Tag
— Tag for the channel.
Version History
Introduced in R2013a
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)