Home > Software engineering >  Vb serial communication data format
Vb serial communication data format

Time:10-01

Everybody is good? Using VB6 own serial port control to develop a small program, receiving data from the workshop equipment (count), and stored in the network database, before in my computer (main board with a serial port) to run on this small program, there is no problem, return the data can be received and saved to the database, but when the program transplant to another computer (the computer did not bring a serial port, is through a USB transfer 232 adapter receiving return data), the problem goes something like this: with serial assistants or in the condition of using breakpoint debugging VB6 can receive return data and run normally, but if the compiler to run the program, can't receive the correct data (the code is a statement by to pick up and save the data, if the returned data format conforms to the requirement of judgment statements, receiving and preservation of the following statements should be executed, but at this moment is not executed),
Say so many, I think the problem is now on the returned data format, own a serial port can return data correct format; But not a use of switching equipment, I don't know if each master have met this kind of situation, help me to judge it, whether this problem? Or I have a question of program statements,
Online urgent! Thank you for your attention!
  • Related