addTrafficSource
Download Required: To use addTrafficSource,
first download the Communications Toolbox Wireless Network Simulation Library add-on.
Description
addTrafficSource(
adds a data traffic source, nrNode,trafficSource)trafficSource, to a new radio (NR) node,
nrNode. Note that nrNode automatically calls the
generate object function associated with the specified traffic
pattern object to generate the corresponding application traffic.
addTrafficSource(___,
specifies additional options by using name-value arguments, in addition to the input
arguments in the previous syntax. For example, Name=Value)LogicalChannelID=5 sets
the logical channel identifier to 5.
Note
Each time you call this object function, you add a traffic generator (source) to a 5G NR node. You can add multiple traffic sources to a node, directing them to the same or different destination nodes.
Reusing the same traffic source object in another
addTrafficSourceobject function call results in an error.
Examples
Input Arguments
Name-Value Arguments
References
[1] 3GPP TS 38.321. “NR; Medium Access Control (MAC) protocol specification.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.
Version History
Introduced in R2023a