Main Content

who

List variables that are in connected data source

Since R2024a

    Description

    list = who(connectionObj) returns a list of the variables that are in the connected data source connectionObj.

    If the data connection can access multiple definitions of the same variable (for example, in a data dictionary and in a referenced dictionary), the function lists each instance of the variable.

    example

    Examples

    collapse all

    dd = Simulink.data.connect("myNewDictionary.sldd");
    dd.a = 7;
    dd.f = 10;
    who(dd)
    
    2x1 cell array
    
      {'a'}
      {'f'}
    

    Input Arguments

    collapse all

    Connection to data source, specified as a Simulink.data.DataConnection object.

    Output Arguments

    collapse all

    List of variables that are in the connected data source, returned as a single-column cell array of character vectors.

    Version History

    Introduced in R2024a