It is possible to run python code from raspberry pi support package?
조회 수: 2 (최근 30일)
이전 댓글 표시
Greetings!
I want to ask if it is possible to run a python script, while sending the trigger command from a matlab script with Rapsberry Pi Support toolbox.
Context of the problem is that I want to control the raspberry pi camera settings(such as AWB), but from what I could find, this cannot be done trough Matlab. I wrote a Python script using libcamera with my specific settings, and I need to run it before doing other processing steps in Matlab.
Thank you!
댓글 수: 0
채택된 답변
Anjaneyulu Bairi
2024년 12월 8일
To execute a Python script on a Raspberry Pi from MATLAB, you can use the system command after establishing a connection between MATLAB and the Raspberry Pi. Here is an example:
system(rpi,'python3','path_to_your_python_script')
% rpi is Raspberry Pi object
Check the below MATLAB Answer which might helps you to resolve your query:
And also visit the below documentation link to know more information on MATLAB Support Package for Raspberry Pi Hardware:
Hope this helps!
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!