Error in Simulink: Undefined function or variable 'uniqueOutput'

I am getting the error below with every simulink model, I try to run on my computer. Even with the examples from the documentation. I also reinstalled Matlab and Simulink but but keep getting the error.
Undefined function or variable 'uniqueOutput'. Component: Simulink | Category: Model error
Does someone know, how to solve this problem?

5 comentarios

Suhan
Suhan el 20 de Feb. de 2018
Editada: Suhan el 20 de Feb. de 2018
Are you trying to open a specific Simulink model? Are you encountered with this error when you open any model?
If you are encountered with this error while opening a particular model, check if the model requires definition of a variable/function named 'uniqueOutput'
Joel Vermeulen
Joel Vermeulen el 16 de En. de 2019
Editada: Joel Vermeulen el 16 de En. de 2019
I have the same problem, but It occurs with every model I tried to open so far and it is always the same 'uniqueOutput'.
I also have the same problem with a simulink protected block from the version 2017b. It says it cannot run the model as the variable/function 'uniqueOutput' is not defined. I tried to find where the variable is required and cannot find the place, and the solutions presented by the system don't solve anything. The problem is that I have 4 different versions of the model, and sometimes I can get one to work at first, but the second time it does not work.
I met the same problem and take the same action as you did, reintallisation doesn't work.
I finally solve this problem by moving the MATLAB running folder to the C drive. I used to run on the web drive, that doesn't allow the simulink to run.
Anyone who could solve the problem withput moving files out from a web drive?

Iniciar sesión para comentar.

Respuestas (2)

Benjamin Frazer
Benjamin Frazer el 8 de Abr. de 2019
Hi, same problem.
Definately seems to be a problem with models created in 2017b and used on other versions.
Prabhan Purwar
Prabhan Purwar el 21 de Oct. de 2020
Hey,
The following steps may help in resolving the issue.
Under MATLAB Preferences > General settings, change the default path for the "Initial working folder" to be a known path (for example C:\Users\username\Documents\MATLAB or C:\temp).
Thanks
Hope it helps!!

1 comentario

Mili Mukherjee
Mili Mukherjee el 16 de Sept. de 2021
Editada: Mili Mukherjee el 16 de Sept. de 2021
I am getting the error below with every simulink model, I try to run on my computer. Even with the examples from the documentation. I also reinstalled Matlab and Simulink but but keep getting the error.
Undefined function or variable 'uniqueOutput' in R2018b.
I tried with the mentioned suggestion and it didn't work.
Can anyone from MATHWorks help?

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 8 de Feb. de 2018

Editada:

el 16 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by