What I do is the following (simplified):
//variables declarations;
int event1 = 0;
int event2 = 0;
//on bar update
if (condition) {event1++;}
else {event2++;}
Plot0.Set(100/(event2+event1)*event1);
If i try to plot just event1 or event2, or their sum, it plots correctly. But that division don't plot anything.
Is there a reason for this? Am I doing something wrong?
Comment