-
I'm an authority on this issue:
1 Using the MATLAB Script node Not Math Script2 Using ActiveX
The first two methods are very clear in Chen Xihui's tree.
You need to start the MATLAB process.
3 Using VC++ and MATLAB mixing. Generate dlls for LabView to call.
How to play with the masters.
-
1. Communication with MATLAB through Active X technology;
2. Data communication with MATLAB is realized by calling MATLAB Script Node (i.e., MATLAB Script Node) in LabVIEW;
Compared to the second method, it is simpler and more practical.
-
LabVIEW is a programming language developed by the American company NI, known as G language, G is the first letter of the English "graphic", which means graphic programming language. LabVIEW can be programmed in a flowchart format. The programming method is intuitive and easy to learn, which can provide a simple and powerful programming environment for non-software professionals.
Although LabVIEW is nominally a general-purpose programming language that can be used for programming any task like C++ or Delphi, LabVIEW is actually mainly used in measurement systems, and is widely used in automobile manufacturing, chemical industry, power generation, water treatment, component production, pharmaceutical, rubber and other industries for automatic detection and control.
-
I think LabVIEW is better, I use it a lot in my work, and it's not very difficult to learn, while MATLAB has strong data processing capabilities, but the former has a wider future, and I found that the former is better after learning both :) It's better if you take another course on signal processing!
The graphical programming language is abbreviated as G language. It is a new generation of high-level languages after C. Maybe you've already had such an experience:
Programming in C requires the programmer not only to be familiar with the use of instructions, but also to write a document in a statement that tells the computer how to do it. Designing programs in this type of programming environment allows us to experience the beauty of abstraction while some people find it boring. The G language has fundamentally changed the traditional programming environment.
"Icon" was used instead of "text instruction". In visual programming, the programmer simply calls the "icon (object)" and then specifies the flow direction of the data by "connecting the lines". Programming is like drawing a block diagram, and the whole process becomes intuitive, easy, and fun.
LabVIEW is a mainstream product of the G language. Its translation is Experimental Virtual Instrument Engineering Platform. It not only has the basic functions of the C language, but also provides powerful advanced software libraries such as functions and instrument drivers. Therefore, it is especially suitable for the development of application software in the field of measurement and control.
By now, you probably understand that graphical programming is not computer graphics. It does not study the programming algorithms of geometric figures, nor does it deal with the processing of images.
Although commands from the DOS operating system can also be used to copy files, there are very few people who do this nowadays. This is because we have become accustomed to using shortcut commands in the Windows graphics window environment. As for copying a document in Word, it's even easier to just click on the relevant icon on the toolbar.
In the same way, the number of non-computer science students in many universities in Europe and the United States who take G language and use it to develop application software has exceeded that of C and other text languages. It has been reported that the efficiency of software development in G is 4-10 times higher than that of text languages such as C.
-
Compile MATLAB into a dynamic link library and call it with LabView;
Or use the MATLAB formula node to invoke MATLAB programming in the LabVIEW interface;
-
Compile it in MATLAB first. m file, greetings to the script formula in the Use Formulas node in LabView.
-
These are controls, and there are two ways to create them:
1- You can bring up the Views>>Controls palette on the front panel, and then drag and drop the corresponding controls on the control palette to the front panel to complete the creation.
2- Another convenient way to do this is to create it by right-clicking on the input of the corresponding vi and selecting the Create control.
These controls are the input controls of visa configure serial port vi, if it is the default, it is classic style, from top to bottom, the control selection board path is represented in English, and the Chinese one can be found by itself:
Visa Resource Name: Controls>>Classic>>i O>>Visa Resource Name, Baud Rate: is essentially a U32 numeric input control, Controls>>Classic>>Classic Numeric>>Numeric Cotrol, then right-click the control and select Representation, and then select the corresponding data type.
Digit: Essentially a U16 numeric input control, controls>>classic>>classic numeric>>numeric cotrol, then right-click the control to select Representation, and then select the corresponding data type.
Stop bit: It is essentially a U16 type ring input control, controls>>classic>>classic ring & enum>>text ring, then right-click the control and select Representation, and then select the corresponding data type. Right-click and select Edit Items....
Drop-down options can be corresponded.
Flow control: It is essentially a U16 type of enum input control, controls>>classic>>classic ring & enum>>enum, then right-click the control and select representation, and then select the corresponding data type. Right-click and select Edit Items....
Drop-down options can be corresponded.
However, it is more troublesome to create this way above, so it is recommended to directly right-click the corresponding input terminal of visa configure serial port vi to create the corresponding input control, so that the initialization values are all available, and there is no need to set them separately.
-
Death by mistake B Japan
Related questionsWhat is the phenomenon of subcooling What is the phenomenon of supercooling and the degree of subcoo10 answers2024-02-09Definition of the phenomenon of supercooling:
During crystallization, the actual crystallization temperature is lower than the theoretical crystallization temperature. At a certain pressure, when the temperature of the liquid is lower than the freezing point of the liquid at that pressure, the phenomenon that the liquid still does not solidify is called supercooled phenomena of liquid. The liquid at this point is called supercooled liquid, which is a thermodynamic condition. >>>More
11 answers2024-02-09Nightmares are when you have been sleeping poorly or depressed in recent times. >>>More
8 answers2024-02-09What is the purpose of love? I guess there's a home! Why is puppy love? >>>More
39 answers2024-02-09I highly recommend "Tram Man" to be funny.
I highly recommend "A Liter of Tears" to be explosive and touching. >>>More
13 answers2024-02-09Not the same. Lantern Festival and Tangyuan are both glutinous rice flour products, with different flavors of fillings in the middle, and the production methods are different due to the difference in climate between the north and the south. Lantern Festival generally only uses vegetarian solid sweet filling, cut the filling into small pieces, dip it in water, roll in a basket full of glutinous rice noodles, and sprinkle water while rolling, so that it is naturally covered with glutinous rice noodles and rolled into a round ball, and the rice balls are made of very fine rice balls (the filling is vegetarian and meat). >>>More