system.kanoa.analysis.queryChkItemEventData(masterChkShtId, chkItemPaths, startDate, endDate, minRange, maxRange)
Returns check item event data formatted to display in the trend chart
Parameters
masterChkShtId Integer: Id of the masterChkSht
chkItemPaths List of Strings: list of check item paths i.e. 'Main\Check 1'. Can be None.
startDate DateTime: Start date of the range
endDate DateTime: End date of the range
minRange Integer: Ignore values less than this value. Can be set to None to return all values
maxRange Integer: Ignore values greater than this value. Can be set to None to return all values
Returns
data pyDataset
Example
masterChkItemId = 123
chkItemPaths = ['Main\Motor Amps']
startDate = system.date.getDate(2023, 1, 1)
endDate = system.date.getDate(2023, 12, 31)
minRange = None
maxRange = None
data = system.kanoa.quality.analysis.queryChkItemEventData(masterChkItemId, startDate, endDate, minRange, maxRange)