It is possible to run python code from raspberry pi support package?
4 views (last 30 days)
Show older comments
Vlad Popescu
on 8 Dec 2024
Answered: Anjaneyulu Bairi
on 8 Dec 2024
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 Comments
Accepted Answer
Anjaneyulu Bairi
on 8 Dec 2024
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 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!