It is possible to run python code from raspberry pi support package?
3 ビュー (過去 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!