Announcement

Collapse
No announcement yet.

Communications Buffers

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

  • Lance Edmonds
    replied
    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>

    Leave a comment:


  • Brent Boshart
    started a topic Communications Buffers

    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" ?

    ------------------
Working...
X