How to transfer the data from Simulink to ThingSpeak
ainul syahmina salleh
on 8 Dec 2022
Latest activity Reply by Christopher Stapels
on 9 Dec 2022
Hi, I want to collect the simulation data by using NASA HL-20 model, then the data will transmit to ThingSpeak. However, I don't have the block for ThingSpeak Channel at the Simulink Library Browser. Is it because the block has its own version of simulink (meaning I have to update my version) or is there any else that I don't know? Besides, can you suggest which methods are suitable for me to successfully transfer the simulation data to ThingSpeak?
3 Comments
Time DescendingI was able to log data to ThingSpeak using the HL-20 model. Thats a fun model, thanks for giving me the excuse to try it. My version of MATLAB is 22b and I have the equivalent of a paid ThingSpeak license to be able to write every second, though I set the block to write every 2 seconds. In a 100 second simulation, I got 70 points, and I had to allow the missed ticks to be higher than the default. Im not a Simulink pro though, so I'm not clear exaclty why the numbers worked out that way.

Sign in to participate