Friday, February 22, 2008

[oopic] Re: trying to link a oKnob to a oPWM

--- In oopic@yahoogroups.com, "fred_feuerstein8173"
<fred_feuerstein8173@...> wrote:
>
> Hello Denis,
>
> Thanks for your fast replay.
> Maybe it is better if i explain what i want to do a maybe you could
> tell me what best to use, since you wrote that the oKnob is not very
> stable in the extreme situations of its working range.
> I need to control a PWM from a data logger with a 0-5 Volt analogue
> output from the logger this should than give me the full range on
the
> PWM at a frequency of 19,6 kHz. Also i need a digital high when a
> pulse is produced that is between 1 and 255 binary on the oPWM.
>
> Thanks for your help in advance.
>
> Regards,
>
> Fred

This code is known to work with Ver 6 and a B.2.2+ chip:

Dim Knob As New oKnob
Dim PWM As New oPWM
Dim Bus As New oBus

Sub main()
Knob.IOLine = 1
Knob.Operate = cvOn

PWM.IOLine = 17
PWM.Operate = cvOn

Bus.Input.Link(Knob)
Bus.Output.Link(PWM)
Bus.Operate = cvOn
End Sub

The problem Dennis mentioned is that the Knob value may never get to
exactly 0 or exactly 255. As a result, the oPWM may never turn fully
on or fully off. But it's darn close. YMMV

Richard



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:

Post a Comment