Another round of passing data
bdickens
Posts: 110
Can someone point me to some simple examples in SPIN where two or more COGS are accessing the same set of data ? I see some assembler, but I'd rather not add to my list. The application has a sensor package that is posting an array of longs. Two other COGS are running and use the data (one to make physical changes, one to log to storage). I'm pretty new to this so simple is best.
Thanks
Thanks
Comments
As long as you aren't using data sizes bigger than longs, it doesn't take much. Any longer and you'll have to start dealing with methods to synch using locks or what not.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!
Here the routine running on the first cog
and here the routine(s) running on an other:
This is a stepper motor routine that (when finished!?) will run some stepper motors simultaneous controlled by the main program!
Saluti Joerg