MATLAB Answers

0

is there a way to work with enabled subsystems when generating hdl code?

Asked by tamar erel on 12 Feb 2017
Latest activity Edited by Tim McBrayer on 13 Feb 2017
I get this error mesagge: Evaluation of validate function on class hdldefaults.EnablePort failed with the error message: MATLAB: nonLogicalConditional:Operands to the and && operators must be convertible to logical scalar values
when I delete the Enable Port from the subsystem the problem dissapears

  0 Comments

Sign in to comment.

1 Answer

Answer by Tim McBrayer on 13 Feb 2017
Edited by Tim McBrayer on 13 Feb 2017

What is the data type of the Simulink signal feeding into the Enable port? It must be a scalar and either a boolean or a ufix1.
Also, what MATLAB release are you using?

  0 Comments

Sign in to comment.