Cannot use set_param() to run a simulation in a MATLAB session that does not have a display.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- api, operating-systems
Direzione di ricerca
Start by reproducing the documented start_matlab(option="-nodesktop") and set_param calls in the stated Python 3.7, MATLAB R2020a, Linux environment. Compare the set_param and sim documentation cited in the issue; done means identifying whether this is expected behavior or a reproducible Engine-specific defect and documenting a supported resolution.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
I'm currently using MATLAB Engine for Python on a Linux system. When I run the following commands:
self.eng = matlab.engine.start_matlab(option="-nodesktop")
self.eng.set_param(self.modelName, 'SimulationCommand', 'start', nargout=0)
I encounter the following error:
matlab.engine.MatlabExecutionError: You cannot use set_param to run a simulation in a MATLAB session that does not have a display.
I found information in the MATLAB documentation (set_param) mentioning that if you start a session with matlab -nodisplay, you cannot use set_param to run a simulation. The -nodisplay mode does not support using set_param for simulation, and it suggests using the sim function instead.
However, I am hesitant to use the sim function because according to the documentation, certain functionalities like pause and continue are not supported.
I would like to understand why I am encountering this issue when I have not explicitly set -nodisplay. Could this be specific to using MATLAB Engine on a Linux system? Is there any recommended method to address this issue on Linux?
Additionally, please find below details about my environment:
Python Version: 3.7
MATLAB Version: R2020a
Operating System: Linux
Your assistance in resolving this matter would be highly appreciated.
Thank you.
- Lingua principale
- Python
- Stelle
- 97
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mathworks/matlab-engine-for-python
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
-
Support sparse array Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Failed to build matlabengine Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di mathworks/matlab-engine-for-python
Issue simili
-
link-check link-check:sphinx-theme
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100