Shop OBEX P1 Docs P2 Docs Learn Events
F32 Command Stream Interpreter — Parallax Forums

F32 Command Stream Interpreter

Is there a spin example that shows how to use the F32_1_6 Command Stream Interpreter?

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2016-05-18 03:49
    Malcolm wrote: »
    Is there a spin example that shows how to use the F32_1_6 Command Stream Interpreter?

    I'm not sure what you mean by this question. I wasn't aware of an object with this title. The only reference to "F32_1_6 Command Stream Interpreter" was this thread.

    If you're interested in using F32 from multiple cogs, I could probably help. I have version of F32 which uses a lock to allow only one cog access to it at a time.
  • Hi Duane, the reference to the F32_1_6 was from the mentioned thread. I followed that up and got a F32 spin version that had the Command Stream Interpreter, but I was having trouble figuring out how to use it.

    My interest is using F32 from multiple cogs. I would appreciate getting a copy of F32 that uses a lock.

    Malcolm
  • The version I had been using, had a lot of the methods stripped out (since I didn't use them and I needed the RAM).

    I added these methods back in.

    I haven't tested this version but it should work.

    Let me know if you have any problems.

    You should only call the "Start" method from one cog. Once the object has been started any cog can call the methods.

    All the variables are in the DAT section so these are shared among all instances of the object.
  • Duane thanks for the code. I will implement it in the next day or so. I will let you know how it goes. Thanks again.
    Malcolm
Sign In or Register to comment.