dtarsitano
Hello, 

I'm using Advanced Math methods included in:

- Pi.Research.dll
- Pi.Research.Data.Analysis.dll

I'm trying to create a channel A that would normally be defined in Math Channel manager as:

if B>0

Could you please help with what syntax I should use to make such a channel? Seemingly it is not allowed to use Channel and Scalars in a direct comparison to produce such a channel, even though there is a specific operator belonging to Pi.Research.Data.Analysis.Channel

Capture.png 
Thanks

Reply 0 0
littleozfella
Hi,  I am not a user of Pi Toolbox 11 but you need an answer.   normally in pi Maths you would make a simple maths channel choose ([B]>0,1,0)  Choose is like IF, so the maths is Choose Channel B, if it is greater than 0, return 1, otherwise return 0. the channel you wish to use must be in square brackets [] and the channel name must match exactly the channel title. For instance if you want [Engine_Temp] you cannot use [engine_temp], the maths will allow you to construct this channel but it will not function.
           Also you could make a Soft Event.  Tools, Soft Events, Edit        [B]>0    This will return a soft event which when you select it will display an up facing arrow to mark the occurrence of the event on the bottom of a Time/Distance chart.   Please remember  F1 or Help tab contains good help.

cheers. 
Reply 0 0
dtarsitano
Thanks littleozfella, 
I'm very familiar on how the Pi Math section works inside Pi but I'm trying to use the Advanced Math methods to design math channels in C#, outside of the PI environment. My question wants to target: how to use logical operators between Channel and Scalar objects. 
Reply 0 0
littleozfella
Hi. I thought that maybe the case. PM'd
Reply 0 0
Reply