Assistance Required with VB.net


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi Henrik,

    Quick question:

    The serial port object has a RecevieThreshold property
    In VB6 it does but does it in VB2008?

    Dave

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default

    Hi,Mine does....but it's called ReceivedBytesThershold, by default it's set to 1.

    I told you my syntax might be off ;-)

    /Henrik.
    Attached Images Attached Images  
    Last edited by HenrikOlsson; - 10th September 2010 at 17:09. Reason: I don't get this new editor....

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    So does mine and I've set it to two

    How did you copy yours and make it an attachment?

    Dave

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Me too

    A really useful little program

    Dave
    Attached Images Attached Images  

  6. #6
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Not sure what happened then. I went to edit and ended up posting twice, sorry.

    Dave

  7. #7
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Well the VB program now displays WORD size output, see attachment

    I'm not sure about what I'm going to type next (nothing new there then they all shout ) But I'm outputting a Random WORD from the PIC, however do I need to send the WORD out as HighByte - LowByte so the VB program reads it correctly? Or is the WORD sent in the right order from the PIC (Byte-wise) for the VB program to read it properly.

    As ever thanks for your help you two.

    Almost forgot, my 'Greenshot' seems to have gone a bit mad on the resolution front, any ideas? (Correction the resolution on my pc has gone mad, it looks fine on here).


    Dave
    Attached Images Attached Images  
    Last edited by LEDave; - 10th September 2010 at 23:41.

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,
    You must send the WORD one byte at the time. Doing HSEROUT [myWORD] will only send the low byte.

    If you send the high or the low byte first doesn't really matter - it's up to you - as long as you write the VB code to match.

    As for the screenshot thing, Win7 have screencapture tool built in, you just drag a box around the area you want to capture and you're done.

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