modifyDisplayChannel(scope,tag,Name,Value)
modifies the properties of tag using properties specified by one or more name-value pairs.
Enclose each property name in single quotes.
Create a dsp.LogicAnalyzer object with four channels. Call modifyDisplayChannel to set the radix of each of the channels. Run the scope in a loop to display the waves.
scope = dsp.LogicAnalyzer('NumInputPorts',4,'DisplayChannelFormat','Digital');
scope.TimeSpan = 12;
modifyDisplayChannel(scope,1,'Name','Index','Radix','Unsigned decimal');
modifyDisplayChannel(scope,2,'Name','Fi_hex','Radix','Hexadecimal');
modifyDisplayChannel(scope,3,'Name','Fi_bin','Radix','Binary');
modifyDisplayChannel(scope,4,'Name','Fi_actual','Radix','Signed decimal');
for ii = 1:20
fival = fi((ii-1)/16,0,4,4);
scope(ii,fival,fival,fival);
end
scope — Logic Analyzer object for which you want to modify a display channel dsp.LogicAnalyzer object
The Logic Analyzer object for which you want to modify a display channel,
specified as a handle to the dsp.LogicAnalyzer object.
tag — which display channel to modify character vector | string scalar
The tag identifying which display channel to modify.
Example: modifyDisplayChannel(scope,tag)
Example: modifyDisplayChannel(scope,'W4')
Data Types: char | string
The first section on Name-Value Pair Arguments shows the properties you can set if the display channel contains a
wave. The second section on Name-Value Pair Arguments shows the properties you can set if the display channel contains
a divider.
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 quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example: 'InputChannel',2,'Color','Blue' specifies that a wave should be added to input channel 1 and
colored blue.
'Color' — Color of the wave 'Default' (default) | character vector | three element numeric vector | string scalar
Color of the wave, specified as an [R G B] value or one of the following:
'Black'
'Blue'
'Cyan'
'Default'
'Green'
'Magenta'
'Red'
'White'
'Yellow'
When you choose 'Default', the value of the DisplayChannelColor
property in the Logic Analyzer is used.
'FontSize' — Font size for values in the wave 0 (default) | scalar nonnegative integer
Specify as a scalar nonnegative integer the font size in points. When you choose 0, the value of the
DisplayChannelFontSize property in the Logic Analyzer is used.
Example: 'FontSize',8
Data Types: double
'Format' — Display format for the wave 'Default' (default) | 'Analog' | 'Digital'
When you choose 'Default', the value of the DisplayChannelFormat
property in the Logic Analyzer is used.
Example: 'Format','Digital'
Data Types: char | string
'Height' — Height of the wave 0 (default) | scalar integer
Specify as a scalar integer the height of the wave in the display in units of 16 pixels. When you choose 0,
the value of the DisplayChannelHeight property in the Logic Analyzer is used.
Example: 'Height',2
Data Types: double
'InputChannel' — Input channel that corresponds to this wave 1 (default) | scalar integer in the range (1,NumInputPorts)
This property specifies the input channel whose data is used for this wave. By default, it will connect the
first input to this wave.
'Name' — Name or label for the wave '' (default) | character vector | string scalar
Specify the name that you would like to set for the new wave.
Example: 'Name','MyWave'
Data Types: char | string
'Radix' — Radix for the wave 'Default' (default) | 'Binary' | 'Hexadecimal' | 'Octal' | 'Signed decimal' | 'Unsigned decimal'
When the input signals are of class double, single, or logical, you should not set this property. When you
choose 'Default', the value of the DisplayChannelRadix property in the
Logic Analyzer is used.
Data Types: char | string
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 quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example: 'DisplayChannel',2,'Name','MyDivider' specifies that a divider should be added to display
channel 2 and named “MyDivider”.
'DisplayChannel' — Channel on the display that shows this divider NumInputPorts (default) | scalar numeric value in the range (1,NumInputPorts)
Specify as a scalar numeric value the display channel that shows this divider. By default, the divider is
added to the end of the display.
'Height' — Height of the divider 0 (default) | scalar integer
Specify, in pixels, the height of the divider as a scalar integer in the range 8-200. If you choose 0, the
value of the DisplayChannelHeight property in the Logic Analyzer is used.
Example: 'Height',2
Data Types: double
'Name' — The name or label for the divider '' (default) | character vector | string scalar
Specify the name that you would like to set for the new divider.
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.