VB.net and Picbasic Pro


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default VB.net and Picbasic Pro

    Hi,

    I have a Question ,did some one k'now how can I receive Bytes Values that are greater than 127 in Picbasic.

    VisualBasic axample:
    I use this SerialPort.Write("!" & Chr(1) & Chr(189) & vbCrLf)

    This command work ! but When I put a Value In my CHR() Greater than 127 PicBasic dont recognize this Value.

    I see on the Manual that I have on Picbasic just 127 Characters.
    Ok but I need another simple solution to do this!

    Picbasic:
    hserin 10000,Receive,[WAIT("!"),Data[0],HEX Data[1]]

    This work too but just when values are <=127.

    Thank you for any Answer.

    Regards

    Pesti

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Ok !

    I have found the way,the Problem is in my VB.Net routine !

    Maybe this help someone else!

    Dim newMsg As Byte() = {33, 1, 189, 13, 10} ' 33 = !,1,Problem Byte 189,13,10
    SerialPort.Write(newMsg, 0, newMsg.Length)

    Regards Pesti

Similar Threads

  1. PicBasic Pro Demo
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th August 2009, 20:10
  2. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 19:31
  3. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 18:15
  4. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 22:19
  5. PicBasic Pro FSK Modem
    By mikep in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th October 2003, 15:21

Members who have read this thread : 1

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