Matlab Analysis won't update my field!

2 ビュー (過去 30 日間)
Esmaeil Chehrehnama
Esmaeil Chehrehnama 2020 年 7 月 12 日
Hi
I used this code to show last 20 field1 datas in field2 chart:
% Enter your MATLAB Code below
readChId = XXX;
readKey = 'XXXXX';
writeChId = YYY;
writeKey = 'YYYYY';
[Data,t] = thingSpeakRead(readChId,'Fields',1,'NumPoints',20,'readkey',readKey);
thingSpeakWrite(writeChId,Data,'Fields',2,'Timestamps',t,'Writekey',writeKey);
display (Data)
when i click save an run i can see Data in output box but i can't see anything in field2 chart!
i activate timecontrol for every 30 minuts but still i can't see any data in field2 chart :(
what is my problem?

回答 (1 件)

Vinod
Vinod 2020 年 7 月 12 日
If you want a plot of your values, you need to use a MATLAB visualization and add the output to the view of your channel.
  5 件のコメント
Esmaeil Chehrehnama
Esmaeil Chehrehnama 2020 年 7 月 12 日
編集済み: Esmaeil Chehrehnama 2020 年 7 月 12 日
Actually I am looking for a way to show only the last 20 data or the last 30 minuts of data on my field! How can i do that?
Christopher Stapels
Christopher Stapels 2020 年 7 月 23 日
thingSpeakRead(12397,'NumMinutes',20);

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

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeThingSpeak についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by