update
Download Required: To use update
,
first download the Communications Toolbox Wireless Network Simulation Library add-on.
Description
update(
updates the configuration of the WLAN node, nodeObj
,Name=Value
)nodeObj
, according to the
name-value arguments you specify.
update(
updates the configuration of the device with the ID you specify in
nodeObj
,deviceID
,Name=Value
)deviceID
. Use this syntax when the node contains multiple
devices.
Examples
Update Configuration of WLAN Node
Check if the Communications Toolbox™ Wireless Network Simulation Library support package is installed. If the support package is not installed, MATLAB® returns an error with a link to download and install the support package.
wirelessnetworkSupportPackageCheck;
Create two WLAN device configuration objects, setting the Mode
property of both devices to "mesh"
and the BandAndChannel
property of the first device to [2.4 14]
. Display the CWMin
property of the second device.
cfg1 = wlanDeviceConfig(Mode="mesh",BandAndChannel=[2.4 14]); cfg2 = wlanDeviceConfig(Mode="mesh"); disp(cfg2.CWMin)
15 15 7 3
Create a WLAN node object containing the two devices.
deviceCfg = [cfg1 cfg2]; nodeObj = wlanNode(DeviceConfig=deviceCfg);
Use the update
object function to specify a new value for the CWMin
property of the second device. Display the new value.
deviceID = 2; update(nodeObj,deviceID,CWMin=[30 30 14 6]) disp(nodeObj.DeviceConfig(2).CWMin)
30 30 14 6
Input Arguments
nodeObj
— WLAN node
wlanNode
object
WLAN node, specified as a wlanNode
object. The function
updates the configuration of this node.
deviceID
— Device ID
1
(default) | positive integer
Device ID, specified as a positive integer. Specify this argument to update the
configuration of a single device in a node that contains multiple devices. In this case,
the DeviceConfig
property of the node is a vector of wlanDeviceConfig
objects. To
update the configuration of the device that corresponds to the i-th
entry of this vector, specify this argument as i.
Data Types: single
| double
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: CWMin=[18 3 7 5]
specifies that:
The Best Effort access category has a contention window with a minimum range of 18.
The Background access category has a contention window with a minimum range of 3.
The Video access category has a contention window with a minimum range of 7.
The Voice access category has a contention window with a minimum range of 5.
CWMin
— Minimum range of contention window for access categories
[15 15 7 3]
(default) | vector of four integers in the range [1, 1023]
Minimum range of contention window for the four access categories (ACs), specified as a vector of four integers in the range [1, 1023]. The four entries are the minimum ranges for the Best Effort, Background, Video, and Voice ACs, respectively.
Data Types: single
| double
CWMax
— Maximum range of contention window for access categories
[1023 1023 15 7]
(default) | vector of four integers in the range [1, 1023]
Maximum range of contention window for the four ACs, specified as a vector of four integers in the range [1, 1023]. The four entries are the maximum ranges for the Best Effort, Background, Video, and Voice ACs, respectively.
Data Types: single
| double
AIFS
— Arbitrary interframe space values for access categories
[3 7 2 2]
(default) | vector of four integers in the range [1, 15]
Arbitrary interframe space values for the four access categories, specified as a
vector of four integers in the range [1, 15]. The entries of the vector represent the
AIFS values, in slots, for the Best Effort, Background, Video, and Voice ACs,
respectively. You can set the AIFS value for an AC to 1
only if the
Mode
is
"AP"
.
Data Types: single
| double
Version History
Introduced in R2023a
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)