OpenComm more than one port in the same time

OpenComm more than one port in the same time

Postby Surasak » Fri Sep 28, 2007 6:06 am

I found the problem with Opencomm function.
In FW the result for nComm1=0 and nComm2=2 but in FWH result of nComm1 and nComm2 are the same = 1, So I cannot open more than one port in the same time

( Can I open port more than 9 ports )

function Main()

local cDcb1,nError1
local nComm1 := OpenComm( "COM1", 1024, 128 )

local cDcb2,nError2
local nComm2 := OpenComm( "COM3", 1024, 128 )

msginfo("Port1 = "+str(nComm1))
msginfo("Port2 = "+str(nComm2))

return nil
Surasak
 
Posts: 29
Joined: Fri Jul 20, 2007 1:30 pm

Re: OpenComm more than one port in the same time

Postby Enrico Maria Giordano » Fri Sep 28, 2007 6:57 am

Yes, FWH communication management is currently limited to one port at a time, as far as I know.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests