Main Content

isConsistent

Determine whether variable definitions visible to connected data source are consistent

Since R2024a

    Description

    isConsistent(connectionObj) returns 1 (true) if the function does not find inconsistent variable definitions in the connected data source, and 0 (false) otherwise.

    example

    isConsistent(connectionObj, varNames) returns 1 (true) if the specified variables varNames do not have multiple inconsistent definitions, and 0 (false) otherwise. If the specified variable does not exist in the connected data source, the function returns 1 (true).

    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, array of strings, or cell array of character vectors.

    Version History

    Introduced in R2024a