Menu

Error evaluating expression 'Tsim'

2019-03-26
2019-03-26
  • Denys Ruban

    Denys Ruban - 2019-03-26

    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.

     
  • Felix Mesmer

    Felix Mesmer - 2019-03-26

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.