A fairly basic question, but I couldn't figure it out.

How do you use the "Calculation" controller in the PI WebAPI?

A simple example adding SINUSOID to SINUSOIDU using getatintervals would help me on my way:)

Thanks!

Ivan

A fairly basic question, but I couldn't figure it out.

How do you use the "Calculation" controller in the PI WebAPI?

A simple example adding SINUSOID to SINUSOIDU using getatintervals would help me on my way:)

Thanks!

Ivan

- 2 people found this helpful
I just used the following: to grab sinusoid+sinusoidu every 10 minutes from today to now.

...PIWebAPI/calculation/intervals/?webID=s0ZJnWd-1nSkubD85PH0IbugT05FRklTSA&starttime=t&endtime=*&expression='sinusoid'+'sinusoidu'&sampleinterval=10m

note 'sinusoid' + 'sinusoidu' should be entered as 'sinusoid'%2B'sinusoid'.

Let us know if this points your in the correct direction.

I just used the following: to grab sinusoid+sinusoidu every 10 minutes from today to now.

...PIWebAPI/calculation/intervals/?webID=s0ZJnWd-1nSkubD85PH0IbugT05FRklTSA&starttime=t&endtime=*&expression='sinusoid'+'sinusoidu'&sampleinterval=10m

note 'sinusoid' + 'sinusoidu' should be entered as 'sinusoid'%2B'sinusoid'.

Let us know if this points your in the correct direction.