How can i read real-time data from thingspeak into Simulink
조회 수: 2 (최근 30일)
이전 댓글 표시
How can i read real-time dataset of temperature from thingspeak into Simulink environment.
댓글 수: 3
답변 (1개)
Adarsh
2025년 2월 21일
I understand that you want to fetch real-time data from ThingSpeak to Simulink directly instead of fetching the data through MATLAB as an intermediary.
You can fetch the real-time data into Simulink directly from ThingSpeak using the “ThingSpeak Input” block in Simulink. Once you insert the “ThingSpeak Input” block you can modify the channel number to the required channel and enter the field numbers which you want to fetch as an array input and run the simulation to fetch the data in real-time.
For more information of how the “ThingSpeak Input” block fetches the data and output format, the following documentation link can be referred:
- “ThingSpeak Input” - https://www.mathworks.com/help/sldrt/ref/thingspeakinput.html
You may also need to install the “Real-Time Kernel” for it. You can follow the installation steps mentioned in the documentation link below:
Hope it helps.
참고 항목
카테고리
Help Center 및 File Exchange에서 Datafeed Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!