ArrayArrayArrayArray BrainModular BrainModular Users Forum 2016-05-12T21:28:55+02:00 https://brainmodular.org/forums/app.php/feed/topic/5415 2016-05-12T21:28:55+02:00 2016-05-12T21:28:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35265#p35265 <![CDATA[How to create "pass if changed" output in script in HH??]]>
[c] for i := 0 to SEND_COUNT-1
do begin
setLength(OUTs,-1);
//setValue(OUTs, -1); // undoes the previous code!!
end; [/c]

Maybe this will help someone someday (maybe me ;))

Statistics: Posted by woodslanding — 12 May 2016, 21:28


]]>
2016-05-12T13:43:46+02:00 2016-05-12T13:43:46+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35256#p35256 <![CDATA[How to create "pass if changed" output in script in HH??]]> for i:=0 to some_number
do begin
SetDataArrayValue(your_output_data_array,i,element_value);
end;
SetLength(output_data_array,some number); //you dont need to do this after setting each value, doing it after you end the iteration is fine

if you want just send "empty array" SetLength(output_data_array,0);

Statistics: Posted by drakh — 12 May 2016, 13:43


]]>
2016-05-12T01:35:47+02:00 2016-05-12T01:35:47+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35246#p35246 <![CDATA[How to create "pass if changed" output in script in HH??]]> [c]
for i := 0 to SEND_COUNT-1
do begin
setLength(OUTs,-1);
setValue(OUTs, -1);
end; [/c]

And just getting zeroes on output.

Regular tParameters work.

Statistics: Posted by woodslanding — 12 May 2016, 01:35


]]>
2016-05-12T01:24:30+02:00 2016-05-12T01:24:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35244#p35244 <![CDATA[How to create "pass if changed" output in script in HH??]]>
setLength(output, -1);

and

setValue(output, -1);

and both A and B.

And in all cases my outputs are tied....

How can I free them up??

Statistics: Posted by woodslanding — 12 May 2016, 01:24


]]>
BrainModular BrainModular Users Forum 2016-05-12T21:28:55+02:00 https://brainmodular.org/forums/app.php/feed/topic/5415 2016-05-12T21:28:55+02:00 2016-05-12T21:28:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35265#p35265 <![CDATA[How to create "pass if changed" output in script in HH??]]>
[c] for i := 0 to SEND_COUNT-1
do begin
setLength(OUTs,-1);
//setValue(OUTs, -1); // undoes the previous code!!
end; [/c]

Maybe this will help someone someday (maybe me ;))

Statistics: Posted by woodslanding — 12 May 2016, 21:28


]]>
2016-05-12T13:43:46+02:00 2016-05-12T13:43:46+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35256#p35256 <![CDATA[How to create "pass if changed" output in script in HH??]]> for i:=0 to some_number
do begin
SetDataArrayValue(your_output_data_array,i,element_value);
end;
SetLength(output_data_array,some number); //you dont need to do this after setting each value, doing it after you end the iteration is fine

if you want just send "empty array" SetLength(output_data_array,0);

Statistics: Posted by drakh — 12 May 2016, 13:43


]]>
2016-05-12T01:35:47+02:00 2016-05-12T01:35:47+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35246#p35246 <![CDATA[How to create "pass if changed" output in script in HH??]]> [c]
for i := 0 to SEND_COUNT-1
do begin
setLength(OUTs,-1);
setValue(OUTs, -1);
end; [/c]

And just getting zeroes on output.

Regular tParameters work.

Statistics: Posted by woodslanding — 12 May 2016, 01:35


]]>
2016-05-12T01:24:30+02:00 2016-05-12T01:24:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=5415&p=35244#p35244 <![CDATA[How to create "pass if changed" output in script in HH??]]>
setLength(output, -1);

and

setValue(output, -1);

and both A and B.

And in all cases my outputs are tied....

How can I free them up??

Statistics: Posted by woodslanding — 12 May 2016, 01:24


]]>