Home > Software engineering >  VB modbus protocol how to implement an interface two serial data, a great god, and may now be a seri
VB modbus protocol how to implement an interface two serial data, a great god, and may now be a seri

Time:09-22

Now need to gathers the data of vortex flowmeter are smart meters and two instruments are 485 communication, MODBUS protocol can now use VB to realize data acquisition and save your work, but in different VB project.
To realize the two instrument under an interface of data acquisition, as if to use two mscom controls, multithreading... How to implement, have great god had done, please answer......

CodePudding user response:

If the same serial port, is the same serial port a mscom went, also address the difference,
Two words that you mscom controls, use the timer control to distributed data, their respective fermented events have to do is to collect data, do not need a multithreaded,
Or consider my code, http://blog.csdn.net/bakw/article/details/50487609 directly direct reading in the timer,

CodePudding user response:

You can use a single serial port receives the data using a site id to differences such as 01 there under the project specified textbox or label can use another data message sending sendmessage sent to different engineering and even sent to another exe program inside the machine running handle to get it to send message data




  • Related