Send data PIC to PC


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    konter you have an array of text1(n).text boxes and, with your VB code, in every box you transfer just one byte, so you must have all the boxes on the form to see something.


    Code:
    Text1(1).Text = BufferIn(2)
    Text1(2).Text = BufferIn(3)
    Text1(3).Text = BufferIn(4)
    Text1(4).Text = BufferIn(5)
    Text1(5).Text = BufferIn(6)
    Text1(6).Text = BufferIn(7)
    Text1(7).Text = BufferIn(8)
    Text1(8).Text = BufferIn(9)

    It is much better with one single text box

    Code:
    Dim I as Integer
    Text1.text = ""
    ' first byte is the report ID, e.g. BufferIn(0) so you start with 1
    For I=1 to 9
    Text1.text = text1.text + BufferIn(I)
    next
    In the above example you will have all the bytes nicely added to text1.text box

    Al.
    Last edited by aratti; - 24th December 2009 at 09:09.
    All progress began with an idea

  2. #2
    Join Date
    Dec 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Thanks for the clarification, well I put it with intent for all who would help them to understand, because if everyone does not know how to program in VB.
    Anyway still not working,
    I put a Timer every 1ms buffer but I read nothing at all, for me the bug is in the sequence of programming the PIC, but no where with. "GoSub DoUSBOut" or "Gosub DoUSBIn" I've changed so many ways not to do.
    For the program to read the VB inside PIC and see it in textBox.

    THX

Similar Threads

  1. Forward Serial Data from pic to pc
    By Muller in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd September 2008, 21:46
  2. Replies: 11
    Last Post: - 12th July 2008, 02:36
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. send serial data to PIC 16f84 ausing VB6
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th March 2006, 21:14
  5. send and receive data using pic 16f84a
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2006, 20:12

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts