Sorry for the bother your again, I cannot success to use the Owire2
to replace the oFanout(2) in complier Ver.6 in oopic-R. However, I
had successed the following program by complier Ver.5, the oopic-R
can make the two LED flash.
Could you kindly revise my the following program? it could download
to oopic-R by complier Ver.6, the oopic-R can make the LED flash.
>>> Dim W As New oFanout(2)
>>> Dim LED_1 As New oDIO1
>>> Dim LED_2 As New oDIO1
>>> Dim a As New oClock
>>>
>>> Sub Main()
>>>
>>> LED_1.IOLine = 6
>>> LED_1.Direction = cvOutput
>>> LED_2.IOLine = 5
>>> LED_2.Direction = cvOutput
>>>
>>> a.Rate = 200
>>> W.Input.Link(a)
>>> a.Operate = cvTrue
>>>
>>> W.Output1.Link(LED_2)
>>> W.Output2.Link(LED_1)
>>> W.Operate = cvTrue
>>>
>>> End Sub
I am waiting for your revise program
Thank you for your kindly support
Michael
--- In oopic@yahoogroups.com, ooPIC Technical Support
<dennis.clark@...> wrote:
>
> You didn't say what to link oClock to. By just using:
> W.Input.Link(a)
> you probably linked to a pointer, which is used to Link to another
> object. If instead you did this:
> W.Input.Link(a.Result)
> everything will work as you expected.
>
> Some objects can be quite complex, you'll need to read closely on
them
> to make sure that you are doing what you think that you are
doing. And
> by all means experiment, you won't hurt anything with just code on
the
> "R" board. One comment, it is a good idea to put an ooPIC.delay =
500
> at the start of your programs just in case you write a program
that
> hangs your ooPIC - This will allow the IDE to make contact with
the
> board before it goes "off into the weeds" as we say.
>
> DLC
>
> aibomc wrote:
> > Dear sir,
> >
> > I tried to use the Owire2, it doesn't on oopic-R, the two LED no
> > flash when i download the program by complier version-6.
> >
> > Could you check my program again thanks?
> >
> > Michael
> >
> > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> > wrote:
> >
> >>Don't use the clocked versions. It doesn't matter what of those
> >
> > objects
> >
> >>you use, don't use one that has the "C" in it, use the simpler
one.
> >>
> >>DLC
> >>
> >>aibomc wrote:
> >>
> >>>Dear sir,
> >>>
> >>>I have tried the Owire2 but oopic-R only turn only the LED no
> >
> > flash.
> >
> >>>Pls, help
> >>>
> >>>Michael
> >>>
> >>>--- In oopic@yahoogroups.com, ooPIC Tech Support
<dennis.clark@>
> >>>wrote:
> >>>
> >>>
> >>>>You have linked your clock to the oWire input, you have not
> >
> > linked
> >
> >>>>anything to the oWire.ProcessClock. I recommend that you
don't
> >
> > use
> >
> >>>>oWire2C and simply use oWire2. I have found little reason to
> >
> > use
> >
> >>>>
> >>>
> >>>the
> >>>
> >>>
> >>>>"C" options unless you are needed a special synchronization to
> >>>>
> >>>
> >>>another
> >>>
> >>>
> >>>>object. To copy across the oWire using oWireC you need to
> >
> > toggle
> >
> >>>>
> >>>
> >>>the
> >>>
> >>>
> >>>>ProcessClock flag. I repeat, simply use oWire2 and it should
> >
> > work.
> >
> >>>>DLC
> >>>>
> >>>>aibomc wrote:
> >>>>
> >>>>
> >>>>>Dear Sir,
> >>>>>
> >>>>>I write the these two case of program and download to oopicR
> >>>>>
> >>>
> >>>B2.2+ by
> >>>
> >>>
> >>>>>complier 6.1.1. Unfortunately, I cannot success on it.
> >
> > however,I
> >
> >>>>>success the case(1) program by complier 5.0.1, the oopic-R
> >
> > could
> >
> >>>>>
> >>>
> >>>make
> >>>
> >>>
> >>>>>the two LEDs to flash.
> >>>>>
> >>>>>Could you kindly check this matter? thanks
> >>>>>
> >>>>>*Case(1)
> >>>>>Dim W As New oFanout(2)
> >>>>>Dim LED_1 As New oDIO1
> >>>>>Dim LED_2 As New oDIO1
> >>>>>Dim a As New oClock
> >>>>>
> >>>>>Sub Main()
> >>>>>
> >>>>>LED_1.IOLine = 6
> >>>>>LED_1.Direction = cvOutput
> >>>>>LED_2.IOLine = 5
> >>>>>LED_2.Direction = cvOutput
> >>>>>
> >>>>>a.Rate = 200
> >>>>>W.Input.Link(a)
> >>>>>a.Operate = cvTrue
> >>>>>
> >>>>>W.Output1.Link(LED_2)
> >>>>>W.Output2.Link(LED_1)
> >>>>>W.Operate = cvTrue
> >>>>>
> >>>>>End Sub
> >>>>>
> >>>>>Result:
> >>>>>Case(1) Program is only turn on the two LED in oopic-R.
> >>>>>
> >>>>>*Case(2)
> >>>>>Dim W As New oWire2C
> >>>>>Dim LED_1 As New oDIO1
> >>>>>Dim LED_2 As New oDIO1
> >>>>>Dim a As New oClock
> >>>>>
> >>>>>Sub Main()
> >>>>>
> >>>>>LED_1.IOLine = 6
> >>>>>LED_1.Direction = cvOutput
> >>>>>LED_2.IOLine = 5
> >>>>>LED_2.Direction = cvOutput
> >>>>>
> >>>>>a.Rate = 200
> >>>>>W.Input.Link(a)
> >>>>>a.Operate = cvTrue
> >>>>>
> >>>>>W.Output1.Link(LED_2)
> >>>>>W.Output2.Link(LED_1)
> >>>>>W.Operate = cvTrue
> >>>>>
> >>>>>End Sub
> >>>>>
> >>>>>Result:
> >>>>>Case(2) the two LED no any respond.
> >>>>>
> >>>>>Thank you for your kindly support
> >>>>>
> >>>>>Michael
> >>>>>
> >>>>>--- In oopic@yahoogroups.com, "aibomc" <aibomc@> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>--- In oopic@yahoogroups.com, "aibomc" <aibomc@> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Dear sir,
> >>>>>>>
> >>>>>>>Actually, I tried the oFanOut2,oWire2 and oWire2c, it does
> >
> > work
> >
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>>at
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>oopic V6.
> >>>>>>>Pls, help
> >>>>>>>
> >>>>>>>Michael
> >>>>>>>--- In oopic@yahoogroups.com, ooPIC Tech Support
> >>>>>>>
> >>>
> >>><dennis.clark@>
> >>>
> >>>
> >>>>>>>wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Please check out the manual and example programs. This
line:
> >>>>>>>>Dim W As New oFanOut2/OWire2/Owire2c
> >>>>>>>>will not compile. Try this instead:
> >>>>>>>>Dim W As New oFanOut2
> >>>>>>>>
> >>>>>>>>DLC
> >>>>>>>>
> >>>>>>>>aibomc wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>Dear Sir,
> >>>>>>>>>
> >>>>>>>>>I write the following program by oopic complier Ver6
using
> >>>>>>>>>
> >>>>>>>>>
> >>>>>
> >>>>>the
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>>>OFanout, Owrie and owire2c
> >>>>>>>>>However, It cannot seccess in Window XP.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>
> >
*********************************************************************
> >
> >>>
> >>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>>>'ooPIC Version: ooPIC R B2.2
> >>>>>>>>>
> >>>>>>>>>The oClock Object generates specific clock rate To LED-1
&
> >>>>>>>>>
> >>>>>>>>>
> >>>>>
> >>>>>LED-2
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>>>interface by oFanOut2
> >>>>>>>>>
> >>>>>>>>>' *********** ************** ------> LED-1
> >>>>>>>>>' *Oclock(a)*----->*OFanout2 (w)*
> >>>>>>>>>' *********** ************** ------> LED-2
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>Dim W As New oFanOut2/OWire2/Owire2c
> >>>>>>>>>Dim LED_1 As New oDIO1
> >>>>>>>>>Dim LED_2 As New oDIO1
> >>>>>>>>>Dim a As New oClock
> >>>>>>>>>
> >>>>>>>>>Sub Main()
> >>>>>>>>>
> >>>>>>>>>LED_1.IOLine = 6
> >>>>>>>>>LED_1.Direction = cvOutput
> >>>>>>>>>LED_2.IOLine = 5
> >>>>>>>>>LED_2.Direction = cvOutput
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>a.Rate = 200
> >>>>>>>>>W.Input.Link(a)
> >>>>>>>>>a.Operate = cvTrue
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>W.Output1.Link(LED_2)
> >>>>>>>>>W.Output2.Link(LED_1)
> >>>>>>>>>W.Operate = cvTrue
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>End Sub
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>
> >
*********************************************************************
> >
> >>>
> >>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>>>Could you kindly reply my problem?
> >>>>>>>>>
> >>>>>>>>>Thank you for your concern
> >>>>>>>>>
> >>>>>>>>>Michael
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>Yahoo! Groups Links
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>--
> >>>>>>>>------------------------------------------------------
> >>>>>>>>Dennis Clark ooPIC Tech Support
> >>>>>>>>www.oopic.com
> >>>>>>>>------------------------------------------------------
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>Yahoo! Groups Links
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>--
> >>>>------------------------------------------------------
> >>>>Dennis Clark ooPIC Tech Support
> >>>>www.oopic.com
> >>>>------------------------------------------------------
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>
> >>--
> >>------------------------------------------------------
> >>Dennis Clark ooPIC Tech Support
> >>www.oopic.com
> >>------------------------------------------------------
> >>
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
> --
> ===================================================
> Dennis Clark ooPIC Technical Support
> ===================================================
>
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