Data Inconsistency Between PI Vision Display and Exported CSV And PI WEB API

Hello , PI Square Community

When I attempt to download a CSV file from PI Vision or retrieve data through the API in Python, I am currently dealing with a data-related problem, and as an illustration, I would like to discuss two attributes: "inlet air flow actual value" and "inlet air temperature actual value." The problem lies in the sequential time series data values for these attributes, which are not consistent while exporting the csv file with what is visually displayed in the PI Vision graph.

 

Specifically, during the initial batch with any given time duration, the data accurately reflects the values of "inlet air flow actual value" and "inlet air temperature actual value" between the batch start and stop times. However, when I examine subsequent batches, the data does not provide the expected values for these attributes, despite noticeable fluctuations in the corresponding graph within PI Vision during the same time periods.

 

I would like to address this discrepancy and seek assistance in resolving this issue within the PI System.

Structure Of PI WEB API Request

url="https://servername/piwebapi/streamsets/WEBID/recorded"

 

params = {

  "startTime": "2023-05-29T00:20:24",

  "endTime": "2023-06-29T10:20:24",

  "timeZone": "Asia/Kolkata" # Specify the desired timezone

 

}

 

response = requests.get(url, auth=auth, verify = False)