Main Content

isConsistent

Determine whether variable definitions visible to connected data source are consistent

Since R2024a

    Description

    isConsistent(connectionObj) returns 1 (true) if variable definitions are consistent in the connected data source connectionObj, and 0 (false) otherwise.

    isConsistent(connectionObj,varNames) returns a logical array whose elements are 1 (true) if the corresponding variable in varNames has consistent definitions in the connected data source connectionObj, and 0 (false) otherwise. An element in the logical array is 1 (true) if the corresponding variable does not exist in the connected data source.

    example

    Examples

    collapse all

    dd = Simulink.data.connect("myDictionary.sldd");
    isConsistent(dd)
    
    ans = 
    
      logical
    
       1

    Input Arguments

    collapse all

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

    Variable names, specified by a string, character vector, string array, or cell array of character vectors.

    Version History

    Introduced in R2024a