It is possible to run python code from raspberry pi support package?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vlad Popescu
il 8 Dic 2024
Risposto: Anjaneyulu Bairi
il 8 Dic 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 Commenti
Risposta accettata
Anjaneyulu Bairi
il 8 Dic 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Support Package for Raspberry Pi Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!