We use the ‘Save Data For Excel’ feature on Easy Chart. We have a 2 second sample rate, unless the user changes the range of data displayed. Is there a way to maintain the sample rate for data exports even with variable sample size?
You can create a consistent sample rate by capturing the data by another means. I would take a look at the system.tag.queryTagHistory function. You can write a script with this function and have it return a set amount of data each time. This could be executed from a button press.
To follow up on the queryTagHistory() function solution. Is there a trick to use if we want data returned at a frequency less than 1 minute, like every 10 seconds? Right now the function will only allow specify the intervals in hours and minutes.
Thank you for any pointers.
Yes you can. Specify a range and then specify your return size.
For example if you specified 1 minute for rangeMinutes and specified a returnSize of 6 then you would return data with a sample rate of 10 seconds.
Best,