Андрей., индикатор при этом не должен останавливаться.
------------ Дoбавленo:
Вот пример
------------ Дoбавленo:
Вот, примерно вот так мне нужно было.
Add(MainForm,2519821,21,105) { Left=20 Top=105 Width=411 Height=256 } Add(Timer,11901339,98,161) { Interval=300 link(onTimer,8182439:doRandom,[]) } Add(Grapher,3144567,273,98) { Left=10 Top=55 Width=330 Height=120 Grid=16535 MaxH=32767 MaxValues=30 } Add(Hub,15310049,210,161) { OutCount=3 link(onEvent1,3144567:doAdd,[(255,167)(255,104)]) link(onEvent2,11803606:doPosition,[]) } Add(Random,8182439,147,161) { Max=32766 link(onRandom,15310049:doEvent1,[]) } Add(ChildPanelEx,11803606,336,168) { } BEGIN_SDK Add(EditMultiEx,4549742,21,21) { WorkCount=#36:doPosition=Pokazat_tekushuiu_poziciu| Width=699 Height=592 link(doPosition,7344814:doValue,[(102,27)(102,223)]) } Add(LedLadder,533669,287,420) { Top=5 Width=30 Height=100 Kind=1 Gradient=1 Max=98 NoSegColorMin=0 NoSegColorMid=0 NoSegColorMax=0 } Add(Panel,1833628,35,105) { Left=350 Top=60 Width=30 Height=105 BevelInner=0 } Add(ChildPanelEx,15717098,140,63) { } BEGIN_SDK Add(EditMultiEx,14996891,21,21) { WorkCount=#29:doColor=Cvet_Verhnigi_Signala| link(doColor,3238055:doColor,[(73,27)(73,125)]) } Add(Panel,3238055,126,112) { Width=30 Height=5 Align=2 Color=0 BevelInner=0 Point(doColor) } END_SDK Add(Memory,7344814,203,217) { } Add(Timer,11035883,91,287) { Interval=100 link(onTimer,12934773:doEvent1,[]) } Add(DoData,15339000,203,287) { link(onEventData,2226689:doCalc,[]) link(Data,7344814:Value,[]) } Add(Hub,12934773,147,287) { link(onEvent1,15339000:doData,[]) link(onEvent2,7761683:doCalc,[(191,300)(191,363)(65,363)(65,426)]) } Add(MathParse,2226689,259,287) { MathStr="abs( %1 / 32767 * 100 )" link(onResult,4037242:doEvent1,[]) } Add(If_else,1356871,469,294) { Type=4 Op2=Integer(98) link(onTrue,1715522:doEvent1,[]) } Add(Hub,4037242,315,287) { OutCount=3 link(onEvent1,2250724:doPosition,[(359,293)(359,62)]) link(onEvent2,1356871:doCompare,[]) link(onEvent3,13896266:doCompare,[(370,307)(370,606)(184,606)(184,559)]) } Add(DoData,11775310,574,294) { Data=Integer(255) link(onEventData,3822419:doEvent1,[]) } Add(If_else,13896266,196,553) { Type=2 link(onTrue,653934:doEvent2,[(247,559)(247,467)(135,467)(135,433)]) link(Op2,11486690:Data1,[]) } Add(Memory,15280967,203,420) { link(onData,533669:doPosition,[]) } Add(LedLadder,2250724,371,56) { Left=5 Top=5 Width=20 Height=100 Kind=1 Gradient=1 NoSegColorMin=0 NoSegColorMid=0 NoSegColorMax=0 } Add(MathParse,7761683,77,420) { MathStr="%1 - 0.1" link(onResult,653934:doEvent1,[]) link(X1,11486690:Data2,[(83,408)(157,408)(157,527)(216,527)]) } Add(GetData,11486690,203,476) { link(Data,15280967:Value,[]) } Add(Hub,653934,147,420) { InCount=2 link(onEvent1,15280967:doValue,[]) } Add(Timer,7609793,469,357) { Interval=30000 Enable=1 link(onTimer,4646203:doEvent1,[]) } Add(Hub,1715522,518,294) { OutCount=3 link(onEvent1,11775310:doData,[]) link(onEvent2,1856353:doEvent1,[(562,307)(562,339)(401,339)(401,370)]) link(onEvent3,7609793:doTimer,[(562,314)(562,338)(457,338)(457,363)]) } Add(Hub,4646203,518,357) { link(onEvent1,9041869:doData,[]) link(onEvent2,1856353:doEvent2,[(563,370)(563,402)(401,402)(401,377)]) } Add(Hub,3822419,630,294) { InCount=2 OutCount=1 link(onEvent1,15717098:doColor,[(667,300)(667,184)(128,184)(128,69)]) } Add(DoData,9041869,574,357) { Data=Integer(0) link(onEventData,3822419:doEvent2,[(618,363)(618,307)]) } Add(Hub,1856353,413,364) { InCount=2 OutCount=1 link(onEvent1,7609793:doStop,[]) } END_SDK
|