It is possible to run python code from raspberry pi support package?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vlad Popescu
el 8 de Dic. de 2024
Respondida: Anjaneyulu Bairi
el 8 de Dic. de 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 comentarios
Respuesta aceptada
Anjaneyulu Bairi
el 8 de Dic. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!