grogerome
Hi guys,

I have a pi toolbox licence which include advanced math and would like to start on it.
I've worked with C# before but never start a script from scratch so I'm looking for some simple Advanced Math script exemple to see how I can work with it.

Is their any place I can get some exemple?

Thanks in advance
Reply 0 0
littleozfella
Hi
  some documents attached that may be of some help.

Cheers
Reply 0 0
grogerome
Hi
Those document are exactly what I needed thanks
Reply 0 0
grogerome
Hi,

I've worked with that and manage to create some channel with no issue when I do simple operation between channel constant etc.
I'm trying to go further but hitting a wall at the moment.
I'm trying to access the data inside channels and constant, from what I understand I should be able to do so using line like:

Constant cste = Constant.GetConstant("CSTE_Name");
double cste_value = cste.Data;

or 

double channel_value;
bool a;
Channel c = Channel.GetChannel("CHANNEL_Name". Channel_Unit);
a = c.GetValueAtTime(2000,ref channel_value"); 

Doing so I get an error: The wrapped class has not been set. Either the DataSelection has not been set or it has been possible to obtain the real channel.
Look like I have to set a DataSelection but so far I haven't succeeded at that. Any information available that could help for that?
Reply 0 0
cjvalverde
grogerome,

Did you ever figure out how to do the above?  I'm trying to figure out the same thing.

Thanks,
Reply 0 0
grogerome
No didn't have any luck with that unfortunattely...
Reply 0 0
Reply