ArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2010-04-13T12:30:02+02:00 https://brainmodular.org/forums/app.php/feed/topic/2129 2010-04-13T12:30:02+02:00 2010-04-13T12:30:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13381#p13381 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by 23fx23 — 13 Apr 2010, 12:30


]]>
2010-04-13T12:14:02+02:00 2010-04-13T12:14:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13380#p13380 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by bsork — 13 Apr 2010, 12:14


]]>
2010-04-13T11:29:01+02:00 2010-04-13T11:29:01+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13375#p13375 <![CDATA[[script] wait one and send update pulse.]]>
btw do you have an idea on this one:

I prepare some messages to send with iml in the script, and at some point I make a FloatToStr to convert my single to string.
it seems working but on the console i can see:

process msg : SET_VALUE DRAW WIDTH-15 0,25
Var not found :0,25

In fact 0,25 comes from in my script something like FloatToStr(WIDTH)

if I replace this by 0.25 in the script it work, but ideally i need to link it to some variable. is there a trick to make FloatToStr return 0.25 and not 0,25 or something else to know to bypass the pb? mmm i can make some integers and concat '0.' in string before..
just wonder if it's the usual way to go?

Statistics: Posted by 23fx23 — 13 Apr 2010, 11:29


]]>
2010-04-13T10:55:54+02:00 2010-04-13T10:55:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13373#p13373 <![CDATA[[script] wait one and send update pulse.]]> [c]
VAR blockCounter : Integer;
...

Callback(n : Integer);
BEGIN
IF (n = some_parameter) THEN BEGIN
blockCounter := 0;
...

PROCEDURE Process;
BEGIN
IF (blockCounter >= 0) THEN BEGIN
IF (blockCounter < number_of_waits) THEN BEGIN
blockCounter := blockCounter + 1;
END
ELSE IF (blockCounter = number_of_waits) THEN BEGIN
SetValue(some_trigger, 1);
END
ELSE IF (blockCounter > number_of_waits) BEGIN
SetValue(some_trigger, 0);
blockCounter := -1;
END;
END;
...
[/c]

Statistics: Posted by bsork — 13 Apr 2010, 10:55


]]>
2010-04-13T08:42:55+02:00 2010-04-13T08:42:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13367#p13367 <![CDATA[[script] wait one and send update pulse.]]>
but in fact my pb is the iml i use in the script (send usine mess to set some draw parameter) must be tiny delayed relating to input changes, and probably of a variable delay , so if i directly pick some haschd from input to swich my patch on only on changes i got dropouts, as the iml action must arrive few blocs later..

i would need to make something change via iml, then repick up has changed from there, but my plan was to gain cpu swiching off the patch when no process, so in fact i think it's impossible, would need kind of iml activity led to make the patch active, or maybe i can make the change on uper level patch, have to try that maybe.

otherwise, how can we make some Delta computation via script?

In fact im note sure it's a good idea, but i thought about converting to script my encoders tests wich have many wires, i think with a lot of instances it will become slow in wiring, thought having scripts with less wires would bypass that...but it seem quite complicate to deal with lots of events flow.. couldn't there be a"convert patch to script" feature hehe..

Statistics: Posted by 23fx23 — 13 Apr 2010, 08:42


]]>
2010-04-13T08:05:54+02:00 2010-04-13T08:05:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13366#p13366 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by bsork — 13 Apr 2010, 08:05


]]>
2010-04-13T01:28:19+02:00 2010-04-13T01:28:19+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13362#p13362 <![CDATA[[script] wait one and send update pulse.]]> im a bit lost trying to remake some "has chg" by script..

for exemple, i send some usine message via script , my item (draw panel) need a draw pulse to update.
how could i make an output led that pulse just after the script has send the message, or wait n blocs after.
or any advice on dealing events, havechgd ?

Statistics: Posted by 23fx23 — 13 Apr 2010, 01:28


]]>
BrainModular BrainModular Users Forum 2010-04-13T12:30:02+02:00 https://brainmodular.org/forums/app.php/feed/topic/2129 2010-04-13T12:30:02+02:00 2010-04-13T12:30:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13381#p13381 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by 23fx23 — 13 Apr 2010, 12:30


]]>
2010-04-13T12:14:02+02:00 2010-04-13T12:14:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13380#p13380 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by bsork — 13 Apr 2010, 12:14


]]>
2010-04-13T11:29:01+02:00 2010-04-13T11:29:01+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13375#p13375 <![CDATA[[script] wait one and send update pulse.]]>
btw do you have an idea on this one:

I prepare some messages to send with iml in the script, and at some point I make a FloatToStr to convert my single to string.
it seems working but on the console i can see:

process msg : SET_VALUE DRAW WIDTH-15 0,25
Var not found :0,25

In fact 0,25 comes from in my script something like FloatToStr(WIDTH)

if I replace this by 0.25 in the script it work, but ideally i need to link it to some variable. is there a trick to make FloatToStr return 0.25 and not 0,25 or something else to know to bypass the pb? mmm i can make some integers and concat '0.' in string before..
just wonder if it's the usual way to go?

Statistics: Posted by 23fx23 — 13 Apr 2010, 11:29


]]>
2010-04-13T10:55:54+02:00 2010-04-13T10:55:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13373#p13373 <![CDATA[[script] wait one and send update pulse.]]> [c]
VAR blockCounter : Integer;
...

Callback(n : Integer);
BEGIN
IF (n = some_parameter) THEN BEGIN
blockCounter := 0;
...

PROCEDURE Process;
BEGIN
IF (blockCounter >= 0) THEN BEGIN
IF (blockCounter < number_of_waits) THEN BEGIN
blockCounter := blockCounter + 1;
END
ELSE IF (blockCounter = number_of_waits) THEN BEGIN
SetValue(some_trigger, 1);
END
ELSE IF (blockCounter > number_of_waits) BEGIN
SetValue(some_trigger, 0);
blockCounter := -1;
END;
END;
...
[/c]

Statistics: Posted by bsork — 13 Apr 2010, 10:55


]]>
2010-04-13T08:42:55+02:00 2010-04-13T08:42:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13367#p13367 <![CDATA[[script] wait one and send update pulse.]]>
but in fact my pb is the iml i use in the script (send usine mess to set some draw parameter) must be tiny delayed relating to input changes, and probably of a variable delay , so if i directly pick some haschd from input to swich my patch on only on changes i got dropouts, as the iml action must arrive few blocs later..

i would need to make something change via iml, then repick up has changed from there, but my plan was to gain cpu swiching off the patch when no process, so in fact i think it's impossible, would need kind of iml activity led to make the patch active, or maybe i can make the change on uper level patch, have to try that maybe.

otherwise, how can we make some Delta computation via script?

In fact im note sure it's a good idea, but i thought about converting to script my encoders tests wich have many wires, i think with a lot of instances it will become slow in wiring, thought having scripts with less wires would bypass that...but it seem quite complicate to deal with lots of events flow.. couldn't there be a"convert patch to script" feature hehe..

Statistics: Posted by 23fx23 — 13 Apr 2010, 08:42


]]>
2010-04-13T08:05:54+02:00 2010-04-13T08:05:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13366#p13366 <![CDATA[[script] wait one and send update pulse.]]> Statistics: Posted by bsork — 13 Apr 2010, 08:05


]]>
2010-04-13T01:28:19+02:00 2010-04-13T01:28:19+02:00 https://brainmodular.org/forums/viewtopic.php?t=2129&p=13362#p13362 <![CDATA[[script] wait one and send update pulse.]]> im a bit lost trying to remake some "has chg" by script..

for exemple, i send some usine message via script , my item (draw panel) need a draw pulse to update.
how could i make an output led that pulse just after the script has send the message, or wait n blocs after.
or any advice on dealing events, havechgd ?

Statistics: Posted by 23fx23 — 13 Apr 2010, 01:28


]]>