Democode Variable-access across Cogs and across objects
StefanL38
Posts: 2,292
Hello,
as these questions come up again every few weeks. I wrote two demo-codes that show how variable-access across cogs and across objects work.
There are some more methods to realise that. The way it is described here is the the way that is easier to understand by newbees.
If someone would like to add the other ways feel free to do it.
Download attached zip-files and play around with them.
The demos require just any kind of propellerboard, propeller-IDE, PST.EXE and programming-cable
(no additional hardware)
PST.EXE is the Propeller-Serial-Terminal that can receive serial data.
best regards
Stefan
as these questions come up again every few weeks. I wrote two demo-codes that show how variable-access across cogs and across objects work.
There are some more methods to realise that. The way it is described here is the the way that is easier to understand by newbees.
If someone would like to add the other ways feel free to do it.
Download attached zip-files and play around with them.
The demos require just any kind of propellerboard, propeller-IDE, PST.EXE and programming-cable
(no additional hardware)
PST.EXE is the Propeller-Serial-Terminal that can receive serial data.
best regards
Stefan
Comments
I think in the variable section it should discuss the many different ways to work with data and cogs and objects.
The method of using DAT to share variables between COG's is missing from the manual. (or im blind)
This thread talks about it and my last post in that thread shows the owner of that thread a method to use the same variable in two cogs.
http://forums.parallax.com/forums/default.aspx?f=25&m=391108
rs_jim