How I can get data from Bluetooth device to Simulink in a loop
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, I have problems with the DataStream function (watch pictures below). If i start the simulation the Init function works and the bluetooth object was created. But simulink can not find the variable b. Thanks for any ideas.
timo
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158416/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158418/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158419/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158421/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158423/image.jpeg)
0 Commenti
Risposte (1)
Nirja Mehta
il 1 Dic 2016
This is because "b" is not in the scope of "DataStream" function. You will need to pass "b" as an input to "DataStream" function or define "b" Bluetooth object, inside "DataStream" function.
2 Commenti
filippo napoleone
il 24 Giu 2017
Hi, I have the same problem with the difference that:
Only I use a function to send messages via Bluetooth.
It tells me that however the Bluetooth-type variable is not supported!
Cristiana Pinheiro
il 29 Mar 2023
I have the same problem. I am not able to define a bluetooth object in Simulink. Anyone can help? Thank you.
Vedere anche
Categorie
Scopri di più su Model Verification 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!