Varable name with cogid
user82
Posts: 9
hi!
i want to start a task on several cogs in parallel and make them use var1,var2 etc
now "cogid" is not recognized if i write "varcogid"
how can i solve this?(hope its not needed on compile time because i wanted to write one PUB for all cogs)
greetings
user
i want to start a task on several cogs in parallel and make them use var1,var2 etc
now "cogid" is not recognized if i write "varcogid"
how can i solve this?(hope its not needed on compile time because i wanted to write one PUB for all cogs)
greetings
user
Comments
hmh yes thats good my concept is:
one "master" cog
several worker cods that do exactly the same thing
now every worker cog gets its global variable with number 1-7 where it puts the results that cog0 needs for doing its own work based on the results the other cogs deliver
i could use the bunch of longs for doing this, thank you!
-Phil
also good hint, thanks
i will test both methods since its a first test code