Main Content

transmitTime

Packet transmission time

Since R2022b

    Description

    example

    t = transmitTime(cfg) returns the packet transmission time in seconds for the physical layer (PHY) format configuration specified in cfg.

    example

    t = transmitTime(cfg,unit) specifies unit, the unit in which the function returns the packet transmission time.

    Examples

    collapse all

    Create an HE SU configuration object for a 40 MHz transmission.

    cfgHE = wlanHESUConfig;
    cfgHE.ChannelBandwidth = 'CBW40';

    Calculate and display the packet transmission times in seconds and milliseconds.

    t = transmitTime(cfgHE)
    t = 1.1600e-04
    
    t_milli = transmitTime(cfgHE,'milliseconds')
    t_milli = 0.1160
    

    Input Arguments

    collapse all

    The unit of the returned packet transmission time, specified as one of 'seconds', 'milliseconds', 'microseconds', or 'nanoseconds'.

    Data Types: char | string

    Output Arguments

    collapse all

    Packet transmission time, returned as a positive scalar.

    • When you do not specify unit, or specify unit as 'seconds', the time is returned in seconds.

    • When you specify unit as 'milliseconds', the time is returned in milliseconds.

    • When you specify unit as 'microseconds', the time is returned in microseconds.

    • When you specify unit as 'nanoseconds', the time is returned in nanoseconds.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2022b

    expand all