Error in 'StepperMotor_fout/PWM Generator/Carrier counter': Failed to evaluate mask initialization commands. Caused by: Operands to the logical AND (&&) and OR (||) operator

1 visualizzazione (ultimi 30 giorni)
I'm building a closed loop PID controlled stepper motor for speed control in simulink. While execution the following error shows up.
"Error in 'StepperMotor_fout/PWM Generator/Carrier counter': Failed to evaluate mask initialization commands.
Caused by:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values."
Kindly give ur comments.

Risposte (1)

Sabin
Sabin il 23 Gen 2024
The error message indicates that there is an issue with the mask initialization commands for this block, specifically involving the use of logical AND (&&) or OR (||) operators. The error suggests that the operands used with these logical operators are not scalar values, which is required for these operations.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by