How I can get data from Bluetooth device to Simulink in a loop

조회 수: 4 (최근 30일)
Timo Gritzbach
Timo Gritzbach 2016년 11월 28일
댓글: Cristiana Pinheiro 2023년 3월 29일
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

답변 (1개)

Nirja Mehta
Nirja Mehta 2016년 12월 1일
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
filippo napoleone
filippo napoleone 2017년 6월 24일
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
Cristiana Pinheiro 2023년 3월 29일
I have the same problem. I am not able to define a bluetooth object in Simulink. Anyone can help? Thank you.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Bluetooth Low Energy Communication에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by