OOPic III+ Ver C.1.1+ Compiler 6.1.1
I'm seeing similar squirrly behavior. I have a complex program that
used an event triggered by a bumper switch. When the switch was
activated the event handler did not execute but the main loop stopped
executing as well. To track down what is wrong, I started out with the
sample code in "Chapter 9 - Event Driven ProgrammingC". It didn't work.
I was reading this thread and I wrote the following test program which
is very similar to your test:
Dim BLINK As New oEvent
Dim WIRE As New oWire
Dim LED As New oDIO1
Sub Main()
LED.IOLine = 20
LED.Direction = cvOutput
' Call BLINK_Code()
WIRE.Input.Link(ooPIC.Hz1)
WIRE.Output.Link(BLINK.Operate)
WIRE.Operate = cvTrue
Do
Loop
End Sub
Sub BLINK_Code()
LED = cvOn
ooPIC.Delay = 500
LED = cvOff
ooPIC.Delay = 500
End Sub
When I run it as is, nothing happens. The led does not light up. I put
in the extra line to prove to myself that the problem was not in the led
and wierd behavior ensued. The led flashed on and off exactly ten times
with a little pause during the eighth off period. The tenth on period
stays on contiuously. After the tenth flash, one of the servos moves
slightly. At this point, I have to reset the OOPic to reprogram it.
This behavior is repeatable.
In my original complex program, everything execpt the event works fine.
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:
No comments:
Post a Comment