Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

cwserial in Windows XP

Hello, we are involved in the development of an application (written in VB6) which controls an enviromental sensor via RS-232. For this task we  use the CWSerial class which is embedded in the cwinstr.ocx ver. 3.0.3. Everything  works well under Windows NT 4.0 and 2000. The problem arises when we try to run the application under XP, so we updated the component by downloading the cwinstr.ocx ver. 6.0.
For other reasons, we are forced to reset and reconfigure the COM port a certain number of times in a second, i.e:

Private Sub tmrTimeMaxRx_Timer()
    tmrTimeMaxRx.Enabled = False
    CWSerial.Reset
    ArrowRxRed (True)
    PcRedImage (True)
    CWSerial.Configure
    tmrTimeDelay = True
End Sub

This code, as I said, do not work anymore, it seems that under  XP the COM port is not able to follow this on/off command (4 times per second).
Can anybody give me suggestions?
Thanks
Geordie
0 Kudos
Message 1 of 3
(7,251 Views)
Hi Geordie,
 
what error code does the application return? What function call return the error?
Have you verified that the problem is related to all the serial functions library or to particular subsets?
Verify also if all the settings in the serial ports properties are correct, the devices work correcly and the driver is configured in the right way.
Hope these suggestions could help.
 
Best regards,
 
Marco
0 Kudos
Message 2 of 3
(7,237 Views)
Well, I don't think the problem is related with the serial port configuration, because it actually occurs on every machine I ran it, notebooks and PCs. Even if I change the Timer interval (from 250 to 500ms or higher) nothing happens.
Thanks anyway
Geordie
0 Kudos
Message 3 of 3
(7,234 Views)