MsComm Buffer
-
Hi! I want to know can I have a mscomm buffer of one mb? Currently my initialization part look like the following : '''''''''''''''''''''''''''''''''''''''''''''''' If MSComm1.PortOpen = True Then 'double check to avoid error if this sub re-called MSComm1.PortOpen = False End If MSComm1.CommPort = 1 'portnumber MSComm1.Settings = "9600,N,8,1" '9600 baud, no parity, 8 data and 1 stop MSComm1.InputMode = comInputModeText 'text mode MSComm1.InputLen = 1 'Set INPUT to read ONE char MSComm1.RTSEnable = False 'disable MSComm1.DTREnable = False 'disable MSComm1.Handshaking = comNone 'for 3 wire connection MSComm1.InBufferSize = 1024 ' MSComm1.RThreshold = 1 MSComm1.PortOpen = True 'open the port MSComm1.InBufferCount = 0 '''''''''''''''''''''''''''''''''''''''''''''''''' but the problem is with the buffer, the device i am connecting with can transfer one mb of data, so i may need to get the full amount of data in one go, but if i increase the size to around 5000, the program gives error. Is there any way to solve this problem? Regards Arunendra
-
Hi! I want to know can I have a mscomm buffer of one mb? Currently my initialization part look like the following : '''''''''''''''''''''''''''''''''''''''''''''''' If MSComm1.PortOpen = True Then 'double check to avoid error if this sub re-called MSComm1.PortOpen = False End If MSComm1.CommPort = 1 'portnumber MSComm1.Settings = "9600,N,8,1" '9600 baud, no parity, 8 data and 1 stop MSComm1.InputMode = comInputModeText 'text mode MSComm1.InputLen = 1 'Set INPUT to read ONE char MSComm1.RTSEnable = False 'disable MSComm1.DTREnable = False 'disable MSComm1.Handshaking = comNone 'for 3 wire connection MSComm1.InBufferSize = 1024 ' MSComm1.RThreshold = 1 MSComm1.PortOpen = True 'open the port MSComm1.InBufferCount = 0 '''''''''''''''''''''''''''''''''''''''''''''''''' but the problem is with the buffer, the device i am connecting with can transfer one mb of data, so i may need to get the full amount of data in one go, but if i increase the size to around 5000, the program gives error. Is there any way to solve this problem? Regards Arunendra