Main Content
generate
Generate next FTP, On-Off, VoIP, or video conference application traffic packet
Since R2020b
Download Required: To use generate
,
first download the Communications Toolbox Wireless Network Simulation Library add-on.
Syntax
Description
[
generates the next FTP, On-Off, VoIP, or video application traffic pattern based on the
specified configuration object, dt
,packetSize
] = generate(cfg
)cfg
. The object function returns the
time remaining to generate the next packet, dt
, and the size
of the current packet, packetSize
.
[
specifies the time elapsed, dt
,packetSize
] = generate(cfg
,elapsedTime
)elapsedTime
,
since the previous call of this object function.