Hello, I ran into such a problem. when I try to use any of the examples in
the appropriate folder, an error occurs:
Error evaluating expression '' for 'StopTime' specified in the
Configuration Parameters dialog for block diagram 'PMSM_R2017a': Error:
This statement is incomplete.
or
Error evaluating expression 'Tsim' for 'StopTime' specified in the
Configuration
Parameters dialog for block diagram 'PMSM_R2017a': Undefined function or
variable 'Tsim'.
Im using Matlab_2017a (32 bit) under Windows 10(64 bit).
I tried to find a way out in the community or on the official website, but
unfortunately I can’t cope with it, so I ask for your help.
from your question I suppose you are using the Simulink model?
In this case you need to make sure you compiled the toolbox and probfct (indicated by the red one and two in the attached picture). Then you have to always run the init-function before you can start your simulation (the red three) as this is where the variable Tsim is defined.
Hello, I ran into such a problem. when I try to use any of the examples in
the appropriate folder, an error occurs:
Error evaluating expression '' for 'StopTime' specified in the
Configuration Parameters dialog for block diagram 'PMSM_R2017a': Error:
This statement is incomplete.
or
Error evaluating expression 'Tsim' for 'StopTime' specified in the
Configuration
Parameters dialog for block diagram 'PMSM_R2017a': Undefined function or
variable 'Tsim'.
Im using Matlab_2017a (32 bit) under Windows 10(64 bit).
I tried to find a way out in the community or on the official website, but
unfortunately I can’t cope with it, so I ask for your help.
Hi,
from your question I suppose you are using the Simulink model?
In this case you need to make sure you compiled the toolbox and probfct (indicated by the red one and two in the attached picture). Then you have to always run the init-function before you can start your simulation (the red three) as this is where the variable Tsim is defined.
Regards,
Felix