Trends - rullers.

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Trends - rullers.

Post by vladimir »

How can I be addressed to the ruller lines of the trend, if they have more than one?

getValue("TREND1", "rulerTime", 0, trendTime); // only area index - no ruller index.



How do I get the ruller value of this intersection with the trend curve? Now, I should make a dpGetPeriod, so I have no access to internal "trend" curve data.

WnCCOA 3.13 P008

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Trends - rullers.

Post by mkoller »

To get all ruler times, use: rulerTimes(int area, dyn_time positions)
To get the current data for a curve out of the trend widget without using again a dpGetPeriod(), use: curveValues(string curve, dyn_float value, dyn_time times, dyn_bit64 status)

vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Re: Trends - rullers.

Post by vladimir »

Thanks!

With which event or method I can keep track of adding, deleting, changing position of the ruler line on the trend widget?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Trends - rullers.

Post by mkoller »

Currently there is no script event being triggered when a ruler is added or removed.
Why would you need this ? What is the use case ?

vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Re: Trends - rullers.

Post by vladimir »

I have additional text-fields with current ruler timestamp/value. And I must update this field values for current ruler.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Trends - rullers.

Post by mkoller »

So you want to create a legend / trend ruler window kind of display, right ?
Currently you can only have this when using only one ruler when you set curveValueShape/curveTimeShape, which will automatically display the first rulers
time/value in the given shapes.

vladimir
Posts:25
Joined: Thu Jan 23, 2014 1:34 pm

Re: Trends - rullers.

Post by vladimir »

Yes, you right.
Thanks, I will test it.

7 posts • Page 1 of 1