Contenu principal

getActiveTab

R2026b

Get active Simulation Data Inspector tab

Since R2026b

    Description

    activeTab = getActiveTab(tabGroup) gets the active, or visible, tab in the Simulation Data Inspector.

    Examples

    collapse all

    Suppose that you are viewing the visualizations on the third tab in the Simulation Data Inspector. To get the Simulink.sdi.Tab object corresponding to this tab, access the Simulink.sdi.TabGroup object and get the active tab.

    tabGroup = Simulink.sdi.TabGroup;
    myTab = getActiveTab(tabGroup)
    myTab = 
    
      Tab with properties:
    
            Name: 'Tab3'
           Color: 'none'
           Index: 3
        IsActive: 1

    Input Arguments

    collapse all

    Collection of tabs open in the Simulation Data Inspector, specified as a Simulink.sdi.TabGroup object.

    Output Arguments

    collapse all

    Visible tab in the Simulation Data Inspector, returned as a Simulink.sdi.Tab object.

    Version History

    Introduced in R2026b