PDA

View Full Version : Problem with Propeller tutorial lesson 7



dragonvet
07-11-2009, 06:34 PM
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

SamMishal
07-11-2009, 07:47 PM
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

hover1
07-11-2009, 10:21 PM
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

Loopy Byteloose
07-11-2009, 10:31 PM
(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 [ 黃鶴 ] in Taiwan

Post Edited (Loopy Byteloose) : 7/11/2009 3:53:39 PM GMT

SamMishal
07-12-2009, 12:12 AM
Hover1,



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

hover1
07-12-2009, 12:32 AM
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)

SamMishal
07-12-2009, 12:53 AM
Hover1



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



Way cool ...I wish....

dragonvet
07-12-2009, 07:22 PM
Yes thanks very much. I knew it was something obvious. I removed th Ch3-Ex07 and it worked fine.

Thanks again,

Rich

hover1
07-12-2009, 07:30 PM
@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 Lindsay
07-14-2009, 12:59 AM
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.