OpenComm more than one port in the same time
Posted: 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
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