Announcement

Collapse
No announcement yet.

Communications Buffers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Communications Buffers

    When using the COMM DDT commands to open and configure a serial port, can I use statements like:

    purgecomm hcomm&,%purge_txclear

    Would hcomm& be the file handle (fnum) when using COMM OPEN "COMn" AS [#]fnum
    Also can I set Comm timeouts such as "tmout.readintervaltimeout=50" ?

    ------------------
    Brent Boshart

  • #2
    The file number used by PowerBASIC is not the same as the Operating System's File Handle, but you can obtain the file handle from the file number with the FILEATTR() function.

    And yes, you can adjust COMM timeouts (and other things) this way.

    BTW, COMM is not DDT... they are completely separate features of PB/DLL.




    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X