Пример
Add(MainForm,2953706,63,49)
{
Width=503
}
Add(ChildPanel,89727,63,126)
{
link(onEvent1,10599594:doEvent1,[(105,132)(105,55)])
link(onEvent2,9896551:doEvent,[])
}
BEGIN_SDK
Add(EditMulti,2771935,21,21)
{
EventCount=2
}
Add(Panel,14154515,35,105)
{
Width=95
Height=261
Align=1
}
Add(Button,5813389,154,77)
{
Left=10
Top=5
Caption=">>"
link(onClick,16177243:doWork1,[(193,83)(193,132)])
}
Add(Button,6630295,154,133)
{
Left=10
Top=40
Caption="II"
link(onClick,16177243:doWork2,[])
}
Add(RadioButton,16743071,98,35)
{
Left=10
Top=80
Selected=0
Caption="Red"
link(onSelect,7868200:doWork1,[])
}
Add(RadioButton,4735209,98,77)
{
Left=10
Top=100
Caption="Blue"
link(onSelect,7868200:doWork2,[(137,83)(137,48)])
}
Add(RadioButton,11327505,98,119)
{
Left=10
Top=120
Caption="Green"
link(onSelect,7868200:doWork3,[(144,125)(144,55)])
}
Add(ChanelToIndex,16177243,203,126)
{
link(onIndex,2771935:onEvent2,[(242,132)(242,34)])
}
Add(ChanelToIndex,7868200,154,35)
{
Count=3
link(onIndex,2771935:onEvent1,[(193,41)(193,27)])
}
END_SDK
Add(Plotter,14168666,252,77)
{
Left=95
Width=392
Height=261
Align=5
Name="Red"
MinH=-1.1
MaxH=1.1
Point(doVisible)
}
Add(Plotter,11732574,294,84)
{
Left=95
Width=392
Height=261
Align=5
Visible=1
Name="Blue"
MinH=-1.1
MaxH=1.1
Point(doVisible)
}
Add(Plotter,3132756,336,91)
{
Left=95
Width=392
Height=261
Align=5
Visible=1
Name="Green"
MinH=-1.1
MaxH=1.1
Point(doVisible)
}
Add(PlotLines,13528726,371,133)
{
Grapher="Red"
Size=2
Step=1
MaxValues=100
}
Add(PlotLines,10820900,371,175)
{
Grapher="Blue"
Color=16711680
Size=2
Step=1
MaxValues=100
}
Add(PlotLines,15548220,371,217)
{
Grapher="Green"
Color=32768
Size=2
Step=1
MaxValues=100
}
Add(IndexToChanel,3982694,182,84)
{
Count=3
Data=Integer(1)
link(onEvent1,11647205:doWork2,[])
link(onEvent2,16465213:doWork2,[])
link(onEvent3,9600650:doWork2,[])
}
Add(Hub,4097517,196,49)
{
OutCount=3
link(onEvent1,11647205:doWork1,[(242,55)])
link(onEvent2,16465213:doWork1,[(235,62)])
link(onEvent3,9600650:doWork1,[(228,69)])
}
Add(HubEx,11647205,238,84)
{
link(onEvent,14168666:doVisible,[])
}
Add(HubEx,16465213,231,91)
{
link(onEvent,11732574:doVisible,[])
}
Add(HubEx,9600650,224,98)
{
link(onEvent,3132756:doVisible,[])
}
Add(Timer,6647537,182,133)
{
Interval=10
Enable=1
link(onTimer,13441783:doNext,[])
}
Add(IndexToChanel,9896551,140,133)
{
link(onEvent1,6647537:doTimer,[])
link(onEvent2,6647537:doStop,[])
}
Add(Counter,13441783,231,133)
{
Max=359
Step=10
link(onNext,11721601:doEvent1,[])
}
Add(MathParse,11647517,315,133)
{
DataCount=1
MathStr="sin(%1)"
AngleMode=1
link(onResult,13528726:doAdd,[])
}
Add(Hub,11721601,273,133)
{
OutCount=3
link(onEvent1,11647517:doCalc,[])
link(onEvent2,7548582:doCalc,[(305,146)(305,181)])
link(onEvent3,4520804:doCalc,[(298,153)(298,223)])
}
Add(MathParse,7548582,315,175)
{
DataCount=1
MathStr="sin(2*%1)"
AngleMode=1
link(onResult,10820900:doAdd,[])
}
Add(MathParse,4520804,315,217)
{
DataCount=1
MathStr="sin(3*%1)"
AngleMode=1
link(onResult,15548220:doAdd,[])
}
Add(Hub,10599594,112,49)
{
link(onEvent1,3915346:doData,[])
link(onEvent2,3982694:doEvent,[(137,62)(137,90)])
}
Add(DoData,3915346,147,49)
{
Data=Integer(0)
link(onEventData,4097517:doEvent1,[])
}