Returns the data index of value of TimeSeries1 in TimeSeries within Period.

ValueOf and IndexOf functions are used in cases where you need the value of a certain sensor when a different sensor meets a certain criteria.

Parameter

Description

Input Data*

Defines the time series data fed into the function. This can be a sensor ID or another function.

PeriodNumber of data intervals considered in the function.

*Input data is optional in most cases. If Info360 detects that the first input is time series data, it will be applied to the function. Otherwise, the current active sensor's data will be used, which is often the case in Reference Charts.

Expression:

IndexOf([input timeseries], [comparison timeseries], [Period] ) – Returns the most recent index of the primary time series (input 1) where the primary time series is equal to the comparison time series within the previous period.

Example Usage as an Expression:

IndexOf({@Input A}, {@Input B}, 30) - This expression returns the index from the primary time series Input A where it is equal to the comparison time series Input B within the previous period of 30.

Notes:

  • The @ symbol is used to access the defined name of an input. When accessing a specific sensor ID, there is no need to use the @ symbol.
  • You can specify whether to use OpenHighLowClose, or Average in your expression. When this is not defined, the calculation uses the values from the data chart. 
  • For more information about writing expressions, refer to Advanced Use of Analytical Functions.

Example Reference Chart:

In the following example, an IndexOf expression in Biz Block is used to get the index from the primary series Input A (W05 Station Flow Rate) where it is equal to the comparison time series Input B (W15 Station Flow Rate), within the period of 30. The resulting graph, represented by the blue line, shows the index of these two time series given the specified period.

For information on setting up custom equations and syntax, please refer to Analytical Functions.

To learn more about writing expression for Biz Block, please refer to Biz Block.