disable simulink model self check while manipulating mask values in javascript

To disable the self-check of a Simulink model during model masking using JavaScript, follow these steps:

  1. Inside the JavaScript code, add the following line to the beginning of the function that manipulates the mask values:

    index.tsx
    Simulink.sdi.view.disableChecking();
    
    37 chars
    2 lines

    This will disable the self-checking feature of the Simulink model before making any changes to the mask values.

  2. After manipulating the mask values, add the following line to the end of the function to enable the self-checking feature again:

    index.tsx
    Simulink.sdi.view.enableChecking();
    
    36 chars
    2 lines

    This will re-enable the self-checking feature of the Simulink model to ensure proper functionality during simulation.

Here's an example of how the JavaScript code should look like:

index.tsx
function modifyMaskValues() {
  Simulink.sdi.view.disableChecking();
  // Manipulate the mask values here
  Simulink.sdi.view.enableChecking();
}
146 chars
6 lines

Note that this should be used only for debugging purposes and not recommended for regular use as self-checking ensures the correctness of the Simulink model during simulation.

gistlibby LogSnag