Menu

HSerSend

Help
viscomjim
2016-06-08
2016-06-08
  • viscomjim

    viscomjim - 2016-06-08

    In the help docs for HSerSend it shows

    HSerSend(13) 'sends a CR

    but in the HSerPrint it shows

    HSerPrint "GCBASIC RS232 Test"
    HSerSend 13
    HSerSend 10

    Both are in the "example" part of the description.

    Does HSerSend need the paranthesis to send the byte? I don't have a setup right now where I can test, but need to know if possible.

     
  • mmotte

    mmotte - 2016-06-08

    Yes, the paranthesis are optional. either way will work.

    Also did you know there is two other ways to do the CR LF. ( My wife says I give too much information and it confuses people.)

    1) A command HSerPrintCRLF will send CR LF with one statement
    2) If you look at the constants menu ,you will find "SerPrintCR" and "SerPrintLF". These are used in conjunction with the "HserPrint" to automatically send One or both CR and LF. "HserPrint" is overload so it can print a byte,word, long, Or string. This may be handy for data logging but may get in the way for other printing. You use them by: #define SerPrintCR and/or #define SerPrintLF in the defines at the beginning of your program.

    73 Mike

     
  • viscomjim

    viscomjim - 2016-06-08

    Thank you kind sir. Tell your wife we actually really appreciate all the info you are willing to share!!!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.