Cannot use set_param() to run a simulation in a MATLAB session that does not have a display.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- api, operating-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 97
- Fork
- 13
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mathworks/matlab-engine-for-python
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
-
Support sparse array Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Failed to build matlabengine Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Tất cả issue của mathworks/matlab-engine-for-python
Issue tương tự
-
triage/confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100