IoT Data Explorer for ThingSpeak and MATLAB
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
I am unable to get the Visualization plot. I am getting this "Not enough fields selected" error window. I am using the Online Matlab. The Thingspeak Channel ID is 1829694 and the ReadAPIKy is "VZK8QZDLZQBQPBUQ". There are 1000 entries in each of the 6 fields from 7/2/2023 9.58 PM to 14/2/2023 9.11 PM.
I tried various dates for selecting the data range but unable to get the plot. kindly suggest to get the plot.
채택된 답변
Christopher Stapels
2023년 2월 14일
The app was made assuming you have a relatively continuous data stream. Your data is very sparse with respect to time. I was able to get it to work with the properties shown in the picture here, since you have more regular data over this range (today). If either the section you select for comparison or the base region is empty of data, the comparison will fail. Thanks for the feedback on the app though! Ill have to think how to accommodate your use case given the architecture I’ve used in the app. The code is there in File Exchange though, so feel free to suggest a good solution if you have one.

댓글 수: 9
I really appreciate your response. I tried with the SAME properties shown in the picture that you sent. But I still face the same issue i.e. "Not enough fields selected" error window.

It could be your timezone? MATLAB will read data into your own timezone. What I did to get it working was to read you data into MATLAB and look at the timestamps. Then I chose the time in the app to see your data. Both the range you request in the app and the range that is comparing to need to have data.
Can you tell me about your final goal? Are you exploring the app, or exploring your data, or getting ready to create improvements to the app? If you are testing the app, i suggest reading data from a public channel (like the traffic monitor channel).
If you are trying to view your specific data, I think you could use MATLAB until you get data that is regular over a longer period.
Syed
2023년 2월 15일
I am exploring my data. As you suggested, I'll try to use MATLAB until I get data that is regular over a longer period. Thanks
Syed
2023년 2월 15일
Just to observe the graph or you can say to test the output of your app, I tried to use your app to read data from a public channel (Traffic monitor). Still I am not able to get the plot. I'm getting the same error. Where am I doing wrong? Is it due to the online Matlab software that I am using or something else? Kindly guide. I want to see that your app is working from my side.
oh wow, are you running on MATLAB online? I wrote that app before we could test in MATLAB online. Ill definitely try it soon. I've been testing in desktop MATLAB. I'm glad to hear you are trying it out, sorry its not working out of the box. Let me know if you get anywhere looking at it in debug mode in appdesigner before I get a chance.
I got it to work in MATLAB online, though I wasnt able to debug in app designer in MATLAB online. Here are my settings.

Syed
2023년 2월 16일
Dear Christopher, sorry to say. Still I am facing with the same problem i.e "Not enough Fields selected" even for the public channel. I put the same properties as shown in your figure. I even tried by toggling the time stamp (AM as well as PM). 

Thanks so much for sticking with me on this. Its a strange bug. I just double checked on a second computer using MATLAB online and it works. If you have any more time to work on this, can you try opening the app in appdesigner? I found you need to 'save as' locally in your MATLAB drive in order to debug it. If that works, I can show you where to put break points to see why there is no data being returned.
Syed
2023년 2월 16일
Yes Christopher, I am able to open n AppDesigner
추가 답변 (0개)
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
카테고리
도움말 센터 및 File Exchange에서 Read Data from Channel에 대해 자세히 알아보기
태그
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
