How can i read real-time data from thingspeak into Simulink

11 Ansichten (letzte 30 Tage)
Nonso
Nonso am 17 Feb. 2025
Kommentiert: REDDYPALLY RAKESH am 25 Aug. 2025 um 10:17

How can i read real-time dataset of temperature from thingspeak into Simulink environment.

  3 Kommentare
Nonso
Nonso am 19 Feb. 2025
Hello @Abhishek, I am using MATLAB R2024b on Windows and want to work with a ThingSpeak dataset in Simulink. Initially, I retrieved the dataset from ThingSpeak into MATLAB, where it appeared as a Timestamps dataset. However, I am struggling to read the dataset directly into Simulink in real time from ThingSpeak without using MATLAB as an intermediary." Thank you for your attention.
REDDYPALLY RAKESH
REDDYPALLY RAKESH am 25 Aug. 2025 um 10:17
are you still working on that project
if yes can u send me files

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Adarsh
Adarsh am 21 Feb. 2025
Hi @Nonso,
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:
  1. 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.
  1 Kommentar
Nonso
Nonso am 24 Feb. 2025
@Adarsh, thank you so much for your contribution which i hope would work. I will complete the testing today and get back to you. Bye.
I also wish to appreciate @Abhishek for his time. Thank you so much.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Datafeed Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by