minimum and maximum date

조회 수: 5 (최근 30일)
Igor Severov
Igor Severov 2022년 5월 2일
답변: Christopher Stapels 2022년 5월 3일
How do I set the minimum and maximum date in the free version? Thank you in advance
  댓글 수: 2
Christopher Stapels
Christopher Stapels 2022년 5월 2일
Do you mean to set the date range for a data read in the REST API, or for a chart display, or for a read with thingSpeakRead in MATLAB analysis? The method should be independant of your license type.
Igor Severov
Igor Severov 2022년 5월 2일
I mean to set the date range for a chart display,

댓글을 달려면 로그인하십시오.

답변 (1개)

Christopher Stapels
Christopher Stapels 2022년 5월 3일
If you click the pencil icon on the top of a field chart, you can choose the number of points or number of days to display. The date range always ends at the present time.
If you create a custom Visualization in the MATLAB visualizations app, you can set whatever date range you want, by first reading in the range of data you want from your channel using thingSpeakRead.
Here is an example:
[data,timestamps,channelInfo] = thingSpeakRead(12397,Fields=[1 4],...
DateRange=[datetime(2018,8,9,23,59,01),datetime(2018,8,10,0,02,52)])
In the Charts display endpoint, you can select a daterange using a query parameter, and the endpoint will return a custom chart in your browser.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Visualize Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by