Shop OBEX P1 Docs P2 Docs Learn Events
Problem with Propeller tutorial lesson 7 — Parallax Forums

Problem with Propeller tutorial lesson 7

dragonvetdragonvet Posts: 17
edited 2009-07-13 17:59 in Propeller 1
I'm having trouble with the code for Spin Lesson 7
in the OBJ block
what does
"(Ch3-Ex07)-Output"· mean?
when I try to compile it keeps saying that file isn't found
Thanks in advance,
Rich

Comments

  • SamMishalSamMishal Posts: 468
    edited 2009-07-11 12:47
    I am not familiar with the lessons you are referring to but in the Obj section you are telling Spin
    to use a file that has to either be in the Propeller tool directory (folder)
    or in the same folder as
    the file that uses it.

    ·
    Example
    Obj
    ··· MyObject: "ObjectFileName"
    This is telling Spin to use the File named ObjectFileName.Spin and it gives it the Alias MyObj. The file ObjectFileName.Spin
    has to be
    residing in the same directory as the file that has the above code. OR....in the directory where the Propeller Tool
    exe resides in.

    Lets assume that the· file ObjectFileName.Spin has a few functions (methods) and lets say one of them is called
    ·· Pub DoSomething(someparameter)
    ······ 'code
    then you would use this function (method) within the top-level-0bject (calling program) this way
    ····· MyObject.DoSomething(somevalue)
    or if the method returns a value then
    ··· somevar := MyObject.DoSomething(somevalue)
    I hope that helps.....if you need more then please let me know what lessons you are referring to....do you have a link?
    ·
    Samuel




    Post Edited (SamMishal) : 7/11/2009 5:13:05 PM GMT
  • hover1hover1 Posts: 1,929
    edited 2009-07-11 15:21
    The "(Ch3-Ex07)-Output.spin" object can be found in the Ver 1.2.5 of the Propeller Tool.

    Example: C:\Program Files\Parallax Inc\Propeller Tool v1.2.5\Examples\Manual

    In Ver1.2.6 version of the tool, the object is just called "output.spin" and is located in:

    C:\Program Files\Parallax Inc\Propeller Tool v1.2.6\Examples\Help\Spin Tutorial\Exercise 07-1

    Hope that helps.

    Jim
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2009-07-11 15:31
    (Ch3-Ex07) seems to obviously refer to Chapter 3, Exericise 7 and so that can be tied into Propeller Manual V1.01. The latest version no longer has the tutorial. And will notice that they don't number the code examples in Chapter 3, you have to do that your self.

    It seems this was an interim notation that crept into public use.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ain't gadetry a wonderful thing?

    aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan

    Post Edited (Loopy Byteloose) : 7/11/2009 3:53:39 PM GMT
  • SamMishalSamMishal Posts: 468
    edited 2009-07-11 17:12
    Hover1,



    are these hovercrafts sitting in your driveway????? (in your picture)
  • hover1hover1 Posts: 1,929
    edited 2009-07-11 17:32
    Yep,


    1990 Hoverdynamics RX2000 Cuyuna 430
    1987 Scat I Rotax 503
    1988 Scat II Rotax 503

    Hover Club of America Member·#5812



    @dragonvet...was there enough information provided here to answer your question?


    SamMishal said...

    Hover1,



    are these hovercrafts sitting in your driveway????? (in your picture)



  • SamMishalSamMishal Posts: 468
    edited 2009-07-11 17:53
    Hover1



    WAYYYYYY COOOL.....are they 1 seater or two?.....is it fun...I bet....



    Way cool ...I wish....
  • dragonvetdragonvet Posts: 17
    edited 2009-07-12 12:22
    Yes thanks very much. I knew it was something obvious. I removed th Ch3-Ex07 and it worked fine.

    Thanks again,

    Rich
  • hover1hover1 Posts: 1,929
    edited 2009-07-12 12:30
    @Rich Glad to have helped.

    @SamMisal The red and white crafts are two seater and the blue craft is one seater, set up in racing configuration.
    dragonvet said...

    Yes thanks very much. I knew it was something obvious. I removed th Ch3-Ex07 and it worked fine.

    Thanks again,

    Rich

  • Steph LindsaySteph Lindsay Posts: 767
    edited 2009-07-13 17:59
    My apologies Dragonvet,

    As Loopy Byteloose noted, that is indeed an artifact left from moving the tutorial from the printed manual to the Help.· I will make a note to correct it the next time I update the Help.

    Just FYI, if you click on the little Propeller Hat icon above the code listing on that page of the tutorial, the Spin file will open in a new tab in the Propeller Tool. The error was not included in the actual Spin file. An anti-reward for those who actually hand-enter the code!

    -Stephanie Lindsay
    Editor, Parallax Inc.
Sign In or Register to comment.