This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Sunday, March 9, 2008

Re: [oopic] more debugging

Brian Lloyd wrote:
> OK, I am starting to tear my hair out here. I have pretty simple logic
> but the behavior of my program doesn't seem to be following my logic.
> And, yes, I am assuming I am doing something wrong but I don't have
> enough background with the OOPic to know for sure.
>
> It appears that I can create a data object, i.e. an oByte, set it to
> various values in my program, and look at how it changes at run-time
> to give me an idea of how my logic flow is working. (While this
> *seems* to be working, please correct me if I am wrong in this
> assumption.)
>
> Is there any reason that, insofar as program flow is concerned, data
> objects and variables, e.g. oByte and Byte, might behave differently
> in program structure, e.g. a switch statement? I have looked through
> the documentation but can't see any differentiation but some of my
> results suggest that this might be the case.
>
>
Yes, they can operate differently. If you have an oByte tied to a VC
then that value can change unpredictably while in the running VC. A
Byte variable will be what you set it to. An oByte will reflect
whatever the VC is doing at that moment, and a VC is running _many_
times faster than the script code. So, in effect you will get a
snapshot of the window of the VC operation that happens to be doing
something when the script code interprets it.

DLC
> --
>
> Brian Lloyd Granite Bay Montessori
> brian AT gbmontessori DOT com 9330 Sierra College Blvd.
> +1.916.367.2131 (voice) Roseville, CA 95661, USA
>

http://www.gbmontessori.com
>
> I fly because it releases my mind from the tyranny of petty things . . .
> — Antoine de Saint-Exupéry
>
> PGP key ID: 12095C52A32A1B6C
> PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: