Contenuto principale

Considerazioni sui blocchi di Simulink

R2026b
Nomi, operazioni matematiche, porte e sottosistemi, routing del segnale, operazioni logiche e di bit

Applicare linee guida per l'alta integrità ai nomi dei blocchi Simulink®, alle operazioni matematiche, alle porte e ai sottosistemi, al routing del segnale, alle operazioni logiche e alle operazioni sui bit.

Linee guida per la modellazione

espandi tutto

hisl_0031: Nomi dei file del modelloUse naming conventions for model file names
hisl_0032: Nomi degli elementi del modelloNaming conventions for model elements that produce valid identifiers in generated code
hisl_0001: Utilizzo del blocco AbsAvoid unsupported data types and protect against integer overflow for the Abs block
hisl_0002: Utilizzo delle operazioni di resto e reciprocoTo support robustness of generated code, when using the Math Function block with remainder-after-division (rem) or reciprocal (reciprocal) operations
hisl_0003: Utilizzo delle operazioni di radice quadrataTo support robustness of generated code, when using the Square Root operations
hisl_0028: Utilizzo dei blocchi Reciprocal Square RootProtect inputs of the Reciprocal Square Root block to avoid undesirable results in generated code
hisl_0004: Utilizzo delle operazioni con logaritmo naturale e logaritmo in base 10Protect against invalid inputs to logarithm operations
hisl_0005: Utilizzo dei blocchi ProductProtect divisor inputs from becoming singular matrices in Product blocks
hisl_0029: Utilizzo dei blocchi AssignmentInitialize array fields before first use in the Assignment block to avoid undesirable results in generated code
hisl_0066: Utilizzo dei blocchi GainSet the Gain block value to a nonzero value other than 1 to support traceability of generated code
hisl_0067: Protezione dai calcoli con divisione per zeroProtect the divisor from going to zero in divide operations to improve robustness of generated code
hisl_0006: Utilizzo dei blocchi While IteratorSet maximum number of iterations for While Iterator blocks to support bounded iterative behavior
hisl_0007: Utilizzo dei sottosistemi For Iterator o While IteratorAvoid using sample time-dependent blocks within For Iterator or While Iterator subsystems
hisl_0008: Utilizzo dei blocchi For IteratorConfigure For Iterator blocks to support bounded iterative behavior in generated code
hisl_0010: Utilizzo dei blocchi If e dei blocchi If Action SubsystemConnect If block outports to If Action Subsystem blocks and use else conditions to support verifiable generated code
hisl_0011: Utilizzo dei blocchi Switch Case e dei blocchi Action SubsystemTo support verifiable generated code, when using the Switch Case block
hisl_0024: Definizione dell'interfaccia InportDefine data type, port dimensions, and sample time for inports to support strong typing and unambiguous model behavior
hisl_0025: Progettazione delle specifiche min/max delle interfacce di inputProvide design minimum and maximum ranges for inport interfaces to support precise input interface specification
hisl_0026: Progettazione delle specifiche min/max delle interfacce di outputProvide design minimum and maximum ranges for outport interfaces to support precise output interface specification
hisl_0075: Utilizzo dei collegamenti alla libreriaAvoid disabled and parameterized library links for consistent simulation and code generation (Da R2022a)
hisl_0077: Definizione dell'interfaccia OutportDefine data type, port dimensions, and sample time for outport interfaces (Da R2022b)
hisl_0078: Utilizzo di schemi di modellazione identiciAccount for identical and similar modeling patterns to reduce code complexity (Da R2024a)
hisl_0079: Connessioni alle porte di input/output della radiceAdhere to internal connection constraints on root-level Inport and Outport blocks to improve traceability (Da R2024a)
hisl_0015: Utilizzo dei blocchi MergeUse Merge blocks with mutually exclusive conditionally executed subsystems to support unambiguous behavior
hisl_0021: Metodo coerente di indicizzazione del vettoreUse a consistent vector indexing method within a model to reduce the risk of indexing errors
hisl_0022: Selezione del tipo di dato per i segnali indiceUse an appropriate data type for index signals to prevent unexpected results and enable correct data access
hisl_0023: Verifica dei blocchi di variantiConfigure Variant block activation time to simplify consistency testing between a model and generated code
hisl_0034: Utilizzo dei blocchi Signal RoutingAvoid the ~= operator on floating-point data types in Switch blocks to improve model robustness
hisl_0016: Utilizzo dei blocchi che calcolano gli operatori relazionaliAvoid using equality and inequality operators on floating-point data types
hisl_0017: Utilizzo dei blocchi che calcolano gli operatori relazionali (2)Configure relational operator blocks to produce unambiguous behavior in generated code
hisl_0018: Utilizzo del blocco Logical OperatorConfigure the Logical Operator block to produce unambiguous behavior in generated code
hisl_0073: Utilizzo delle operazioni di spostamento di bitAvoid shift operations greater than or equal to the bit-width to prevent violations of coding standards
hisl_0033: Utilizzo dei blocchi Lookup TableKeep out-of-range protection enabled in Lookup Table blocks to protect against out-of-range inputs or indices
hisl_0072: Utilizzo dei parametri regolabili per i modelli referenziatiUse Simulink.Parameter objects to define tunable parameters and prevent unintended loss of tunability
hisl_0073: Utilizzo delle operazioni di spostamento di bitAvoid shift operations greater than or equal to the bit-width to prevent violations of coding standards