. NET relative to VC in the field of industrial control the advantages of the application

Source: Internet
Author: User
Tags character set garbage collection relative

I want to use in the field of industrial control. NET latest WPF and WCF to complete interface and monitoring as well as distributed communications. In order to persuade the leadership to write the following point, there may be something wrong, forget the high people advice!

1, in terms of the speed of execution, binary C + + will be slightly faster, but for today's new PCs, the hardware performance of their computers is not the same as that, unless the use of very old-fashioned computers, otherwise the performance is enough. Just like the communication of the sorting machine has photoelectric IO, infrared, rail, leaky cable and so on, each speed is different, there is a slightly faster there are slightly slow, but each of us in the actual machine used, so that the speed is good enough. When you run the program for the first time, the system initializes the buffer, so the initialization time may be longer than the VC (machine performance-related). We can use 2 examples to prove similar. NET intermediate language can also be run in the field of high performance of industrial control: first, as the development of OPC standards and development agencies, The OPC Foundation, in addition to the binary OPCDAAuto.dll, also provides OpcNetApi.Com.dll and OpcNetApi.dll based on. NET, which can be used in industrial control. Second, as very high-performance database software Oracle, the installed people know that installation Oracle has to install the Java Runtime JDK first, and Oracle has recently acquired Java's development company Sun, indicating that Oracle and Java are increasingly inseparable.

2, do not need pointers, C # do not have to use pointers (of course, it is also available to use), so it is not easy to produce due to improper use of pointers produced by the error is not easily found.

3, garbage collection mechanism allows the program to automatically release memory, you can avoid forgetting to release memory caused by memory leaks and system crashes.

4, must to VC more aspects of the use of multiple threads and shared resources control

5, TCP Scoket is based on multithreading, not easily blocked

6, with multithreading asynchronous timer, you can avoid the timer too much or the timer to execute too much and produce the main thread without corresponding problems.

7, the use of WCF (a distributed development architecture), is the use of service-oriented SOA this new concept to develop distributed systems, to deal with the future of the increasingly large sorting system more appropriate. For example, a number of artificial platform programs are basically the same, you can use the same server to provide data services, or a routing master to multiple sorting machine master to provide data services and so on.

8, the use of VC drawing monitoring screen, not only more ugly and difficult to draw and after a long time running, may lead to unintended consequences (due to the use of the device context of the pointer to the drawing work), and WPF in the drawing and animation in the production of experts. At the same time, redrawing the interface of the work system will be automatically completed, VC will be complex processing functions. After resizing the form, WPF programs that use the appropriate container layout automatically adjust the size and layout of the controls within the container.

9, from the point of view of the efficiency of the development program, the new architecture has more debugging means, thread observation, call stack observation and so on, and other such as the use of the control is simpler

10, another noteworthy place is that when communicating with the external system, because the communication process will be used in Chinese, and different development programs use different character sets, such as GB2312,UTF-8, etc., use. NET can easily change the character set, while VC words change the character set quite troublesome

11, as the user experience of the interface, we can do with VC program development of the user experience consistent, but the use of color can be more rich, especially WPF will interface layout and program logic to execute the file to separate, make the production interface becomes simple, but also richer, There is even another set of professional tools expression, the ability to make the interface, animation, sound effects, such as the production of Flash

12, as Microsoft is now the main product, for a long time, you can say. NET is not going to be eliminated. Microsoft's new operating system, for example, has its own Windows Vista. Net3.0, as the system kernel. Perhaps a later new operating system will default to a newer version of the. Net Framework.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.