Work with 2 raspberry pi together on Matlab
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sapir Zurist
le 24 Mar 2021
Modifié(e) : Stefanie Schwarz
le 11 Jan 2022
Hi,
I want to right a code that will be able to work with 2 raspberry pi in parellel.
I have function that works with the first raspberry pi (name it A) and another function that works with the second raspberry pi (name it B).
When I try to call both of the functions, only the first one is works...
Is it possible at all to be connected to 2 raspberry pi through Matlab in parallel?
If yes - what am I missing here?
0 commentaires
Réponse acceptée
Prasanth Sunkara
le 25 Mar 2021
Modifié(e) : Stefanie Schwarz
le 11 Jan 2022
You can create two different raspi objects.
Say,
raspiObjA = raspi('<A's_IP_addr>')
raspiObjB = raspi('<B's_IP_addr>')
Now call your function with either raspiObjA or raspiObjB as input argument, e.g.
returnValueA = myCustomFunction(raspiObjA, var1);
returnValueB = myCustomFunction(raspiObjB, var2);
Thanks,
Prasanth
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!