Problem with Thingspeak input block in simulink

problem in sending data from ThingSpeak to Simulink block. Everytime I tried to send data from write channel it is not showing the exact graph as in ThingSpeak visualization.

5 件のコメント

Hans Scharler
Hans Scharler 2024 年 1 月 23 日
Are you setting the writekey and channel? https://www.mathworks.com/help/sldrt/ref/thingspeakoutput.html
Tanusree
Tanusree 2024 年 1 月 24 日
Yes. But still some datas are missing.
Christopher Stapels
Christopher Stapels 2024 年 1 月 27 日
How frequently are you writing to the channel? There are some update rate limits.
When you say "not showing the exact graph as in ThingSpeak visualization." Do you meant he field plots dont match your ThingSpeak visualization or that the data in the ThingSpeak visualization does not match what you expect it to be?
Tanusree
Tanusree 2024 年 1 月 31 日
The plot in my Simulink model scope doesn't match with ThingSpeak visualization.
Christopher Stapels
Christopher Stapels 2024 年 1 月 31 日
Can you clarify what you mean by not matching? Are the data points completely different, or are there just a few missing, or something else?
Maybe you could share a screen shot to show us what you mean?

サインインしてコメントする。

 採用された回答

Swaraj
Swaraj 2024 年 1 月 29 日

1 投票

Hi Tanusree,
The issue might be due to one of the following:
  1. Please check that the channel number is correct and the Read API Key you are providing is correct.
  2. Please check the "Update period" field. It is used to set the time between successive reads over the channel.
  3. Verify the "Sample Time" of the block as well if it is as per your requirement.
For more information, please follow the below documentation:
Hope it helps!!

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWrite Data to Channel についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by