Skip to main content
3-Newcomer
July 17, 2023
Question

How to import adaptive sampling on Thingworx?

  • July 17, 2023
  • 2 replies
  • 855 views

As subject, I would like to import adaptive sampling on Thingworx before transporting the data into DataBase, or the other way is adaptive adjust the interval of data consumption?

2 replies

5-Regular Member
July 17, 2023

Hi 嘉吳_10657286,

Thank you for your question.

I encourage you to bring more details and context to your initial inquiry. This will make it easier for you to receive meaningful help from other Community members..
 
18-Opal
July 20, 2023

You can use any available method to get your data into ThingWorx, e.g. ValueStreams, with arbitrary sampling. Then you can interpolate / regularize it using this service:

let result = Resources["InfoTableFunctions"].Interpolate({
	mode: undefined /* STRING */,
	timeColumn: undefined /* STRING */,
	t: undefined /* INFOTABLE */,
	ignoreMissingData: undefined /* BOOLEAN {"defaultValue":true} */,
	stats: undefined /* STRING */,
	endDate: undefined /* DATETIME */,
	columns: undefined /* STRING */,
	count: undefined /* NUMBER */,
	startDate: undefined /* DATETIME */
});