Main Content

Define maximum variable name length

Check ID:mathworks.PLC.AcceptableNameLength

Check that a model contains names that do not exceed a predefined length.

Description

This check displays a warning when a model has names that exceed a predefined length.

Available with Simulink® PLC Coder™.

Input Parameters

To run this check, set the maximum variable name length in Maximum acceptable length.

Results and Recommended Actions

ConditionRecommended Action
This model contains names longer than the Maximum acceptable length.Update the names displayed in the result window so that they do not exceed the maximum variable length set in Maximum acceptable length and rerun the check.