LabVIEW is a program development environment developed by National Instruments (NI), similar to the C and BASIC development environments, but the significant difference between LabVIEW and other computer languages ​​is that other computer languages ​​generate code in a text-based language. LabVIEW uses a graphical editing language G to write programs, and the resulting programs are in the form of block diagrams. LabVIEW software is at the heart of the NI design platform and is ideal for developing measurement or control systems. The LabVIEW development environment integrates all the tools engineers and scientists need to quickly build applications that are designed to help engineers and scientists solve problems, increase productivity, and innovate.
LabVIEW application areaLABVIEW has many advantages, especially in certain special areas.
Test Measurements: LABVIEW [5] was originally designed for test measurements, so test measurements are now the most widely used application area for LABVIEW. After years of development, LABVIEW has gained wide recognition in the field of test and measurement. To date, most mainstream test instruments and data acquisition devices have dedicated LabVIEW drivers that can be easily controlled using LabVIEW. At the same time, users can easily find a variety of LabVIEW toolkits for test and measurement. These kits cover almost all the features users need, and it's much easier for users to develop programs based on these kits. Sometimes you can form a complete test and measurement application by simply calling the functions in several toolkits.
Control: Control and testing are two very relevant areas, and LabVIEW, which started as a test, naturally first expanded into the control field. LabVIEW has a module dedicated to the control domain -- LabVIEW DSC. In addition, equipment, data lines, etc., which are commonly used in industrial control, usually have corresponding LabVIEW drivers. LabVIEW makes it easy to program a variety of control programs.
Simulation: LabVIEW includes a variety of mathematical functions, especially for simulation, simulation, prototyping and so on. Before designing the electromechanical equipment, you can use LabVIEW to build a simulation prototype on the computer to verify the rationality of the design and find potential problems. In the field of higher education, sometimes using LabVIEW for software simulation can achieve the same effect, so that students do not lose the opportunity to practice.
Children's Education: LabVIEW is very popular among children because it has a beautiful appearance and is easy to attract children's attention. At the same time, graphics are more easily accepted and understood by children than text. For children without any computer knowledge, LabVIEW can be understood as a special "building block": you can achieve the functions you need by putting together different originals. The famous programmable toy "Lego Block" uses the LabVIEW programming language. After a short instruction, children can use the blocks provided by LEGO bricks to build various vehicle models, robots, etc., and then use LabVIEW to write programs that control their movements and behaviors. In addition to being used in toys, LabVIEW also has a version for primary and secondary school students.
Rapid development: According to some project statistics that the author participated in, complete a large-scale application software with similar functions. The development time required by skilled LabVIEW programmers is about 1/5 of the time required by skilled C programmers. Therefore, if project development time is tight, you should give priority to using LabVIEW to shorten development time.
Cross-platform: If the same program needs to run on multiple hardware devices, you can also prioritize the use of LabVIEW. LabVIEW has good platform consistency. LabVIEW code runs on three common desktop operating systems without any modifications: Windows, Mac OS, and Linux. In addition, LabVIEW supports a variety of real-time operating systems and embedded devices such as popular PDAs, FPGAs, and RT devices running VxWorks and PharLap systems.
Second, CAN bus introductionThe CAN bus is a serial data communication protocol developed by German BOSCH in the early 1980s to solve the data exchange between many control and test instruments in modern automobiles. It is a multi-master bus, and the communication medium can be twisted pair, coaxial cable or optical fiber, and the communication speed can reach 1MBPS. The CAN bus communication interface integrates the physical layer and data link layer functions of the CAN protocol, and can complete the framing processing of communication data, including bit filling, data block coding, cyclic redundancy check, and priority discrimination.
Because of its outstanding advantages such as fast communication speed, high reliability and good performance-price ratio, it is more and more widely used in automobile, machinery industry, textile machinery, agricultural machinery, robots, CNC machine tools, medical equipment, household appliances. And sensors and other fields [2], and more and more attention from the industry, is recognized as one of the most promising fieldbus.
CAN bus advantageCAN belongs to the field bus field and is a serial communication network that effectively supports distributed control or real-time control. Compared with many RS-485 distributed control systems based on R-line construction, the distributed control system based on CAN bus has obvious advantages in the following aspects:
1. The data communication between nodes in the network is strong in real time.The CAN controller works in a variety of ways. Each node in the network can compete for the transmission of data to the bus according to the bus access priority (depending on the message identifier) ​​using a lossless structure of bit-by-bit arbitration, and the CAN protocol abolishes the station. Address coding, and instead of encoding the communication data, allows different nodes to receive the same data at the same time. These characteristics make the data communication between the nodes of the network formed by the CAN bus real-time and easy to form redundancy. Structure to improve system reliability and system flexibility. The use of RS-485 can only constitute a master-slave structure system, and the communication method can only be carried out in the manner of polling by the primary station, and the real-time performance and reliability of the system are poor.
2. Short development cycleThe CAN bus is connected to the physical bus through the two outputs CANH and CANL of the CAN transceiver interface chip 82C250, and the state of the CANH terminal can only be a high level or a floating state, and the CANL terminal can only be a low level or a floating state. This guarantees that there will be no phenomenon in the RS-485 network, that is, when there is an error in the system, when multiple nodes send data to the bus at the same time, the bus is short-circuited, thereby damaging some nodes. Moreover, the CAN node has an automatic shutdown output function in case of a serious error, so that the operation of other nodes on the bus is not affected, thereby ensuring that there is no problem in the network, and the bus is in a "deadlock" due to a problem with an individual node. status. Moreover, the perfect communication protocol of CAN can be realized by CAN controller chip and its interface chip, which greatly reduces the difficulty of system development and shortens the development cycle. These are unmatched by RS-485 with only electrical protocol.
3. Fieldbus that has formed an international standardIn addition, compared with other fieldbuses, the CAN bus is a fieldbus that has formed international standards with many features such as high communication speed, easy implementation, and high cost performance. These are also important reasons why CAN bus is used in many fields and has strong market competitiveness.
4. One of the most promising fieldbuses CAN is the controller area network, which belongs to the category of industrial field bus. Compared with the general communication bus, CAN bus data communication has outstanding reliability, real-time and flexibility. Due to its good performance and unique design, the CAN bus has received more and more attention.
Type-C Connectors,Straight Type Connector,Right Angle Smt Connector,Dip Right Angle Connector
Dongguan SOLEPIN Electronics Co., Ltd , https://www.wentae.com