parameter must specify a logical value. What is a logical value?

13 visualizaciones (últimos 30 días)
Max
Max el 31 de Mayo de 2012
Hi, I've got the following problem with Simulink Design Verifier. I'm trying to extract a subsystem with the sldvextract function. Doing that, I get the following error message:
Error using sldvextract (line 57)
Invalid usage of sldvextract. The showModel parameter must specify a logical value.
Error in SLDV_TestGeneration (line 30)
newModel = sldvextract('Test_Harness_Verification_small/WMS Water Management', false);
I also tried true, I also tried 0, I also tried 'false', nothing worked. Perhaps I just don't see the failure. Can you help me?

Respuestas (3)

Wayne King
Wayne King el 31 de Mayo de 2012
a logical value would be
x = logical(0);
x = logical(1);
or
x = false;
x = true;
You do not want to put 'false', that is just a string.
  2 comentarios
Max
Max el 31 de Mayo de 2012
I recognize that. But look at the parameters I give to sldvextract. It's exactly
false
Walter Roberson
Walter Roberson el 31 de Mayo de 2012
Out of curiosity, try specifying logical(0) -- I'm just thinking that maybe "false" has been given a different value in your context.

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 31 de Mayo de 2012
true and false should be valid according to the documentation

Max
Max el 31 de Mayo de 2012
logical(0) works...
Is that an incident I should report?
  1 comentario
Walter Roberson
Walter Roberson el 31 de Mayo de 2012
If logic(0) works that suggest that "true" and "false" have been assigned something at that point. Can you display class(true) and size(true) ? And search the section to see if they were somehow defined in an obvious way?

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by