Would the built-in export functionality work for you?
See this video for details: OSIsoft: Use the Details docking window to export data to a file v3.2 - YouTube
It only exports the datapoint selected in the dropdown list.
Thanks for the suggestion but I have some more clarification. I have already tried details and annotations. It would be great if you can suggest an idea for my below idea.
I have an idea where i have an export button in the form of dropdown menu. this export button will have all my parameters (calcium, nitrate, ammonium, magnesium). for instance if i select nitrate from my drop down menu, it should get all the data points from my trend (nitarte) and export it in the csv file (without manually).
2 of 2 people found this helpful
Maybe this discussion will help you towards your goal?
The magic happens within this line:
ThisDisplay.Trend.GetTraceValue(lValueIndex, TimeOfValue, MyStatus)
3 of 3 people found this helpful
One thing you should be aware of is that the data PI ProcessBook uses to render a trace is a "special" version of the truth that may not align exactly with the underlying data.
When rendering a trace for the first time or each time the user clicks "Revert", PI ProcessBook executes a PlotValues call. Please see the Remark for PIPoint.PlotValues method
By default PI ProcessBook updates each 5 seconds. For this purpose, it's getting the new snapshot events which have arrived since the latest update. Depending on the compression settings of a PI Point these snapshots may become compressed out, meaning that one or more events have not made it to the archive.
If your report needs to contain compressed (archived) data, using PI DataLink is probably the best approach.