Shop OBEX P1 Docs P2 Docs Learn Events
Vb (pulling out hair) — Parallax Forums

Vb (pulling out hair)

ArchiverArchiver Posts: 46,084
edited 2003-07-19 18:59 in General Discussion
FROM: Frog again
I am now using my vb program with a stamp in my visual basic interface it
works I wrote the code from scratch however not correctly here is whats going on
when look at my total text box and say to total value will be 800 then as I
increment my pot up it will go to number 7 and then reset but after 7 more it
double my value will be reached at 800 but it goes up and down it is not stable
what have I done. every seven bits it resets and starts over but is still
incrementing.






Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-19 18:59
    I'd have to see the VB code.
    It sounds like the problem is there.
    On the other hand, what is this 'pot'?

    I guess I need more information about what
    you are doing to be helpful. What's on the
    BS2 side? (sounds like a potentiometer).
    What do you want on the VB side? (Timer
    driven sample? Wait for serial input which
    comes from the BS2?) How often does the
    BS2 send values, and what event tells it
    to send values? (Every time it reads a
    value? It has a 'pause' before it reads
    the next value?)

    Also, more '.' and ',' characters in your
    post, properly placed, would make it easier
    to read. Also, less use of 'it' and more
    use of 'BS2', 'PC', 'VB program', 'Display value'.
    This will help in determining what is going
    on, and what needs fixing.

    --- In basicstamps@yahoogroups.com, frog28043 <frog28043@y...> wrote:
    > FROM: Frog again
    > I am now using my vb program with a stamp in my visual basic
    interface it works I wrote the code from scratch however not
    correctly here is whats going on when look at my total text box and
    say to total value will be 800 then as I increment my pot up it will
    go to number 7 and then reset but after 7 more it double my value
    will be reached at 800 but it goes up and down it is not stable what
    have I done. every seven bits it resets and starts over but is still
    incrementing.
    >
    >
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.