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