Install:/m0_38106923/article/details/88654150
Each labview program is called a vi, file – create a new vi
Front panel: Put some controls, eg: input control, output control, display control
Right-click – select controls (there are some commonly used controls in express) – drop-down box – new style (the control content in new style, silver, system, classic are the same, but the style is different) – numerical input control – select and drag to the front panel –
Click the numerical input control on the program block diagram panel to map to the control on the front panel
Program Block Diagram Panel: Used to put programs
A small program for adding:
Two inputs, one output
Put two numerical input controls – rename the control name – put a display control – right-click – drop-down box – new style – value – numerical display control – rename the control name – right-click the program block diagram panel – drop-down box – programming – value – plus sign – left mouse button does not place the input 1 and input 2 and the display control – run in the front panel (single run, continuous run (click the panel after writing), abort the run) – file – save – close the front panel and the program block diagram panel – show the program’s startup interface – double-click the saved file to open the front panel, shortcut key ctrl+e toggle back and forth to open the program block diagram panel
copy:
+c
2. Select and drag on the full board
labview programming features:
1. Graphic programming
2. Run in parallel (execute from left to right, function runs at the same time)
3. Based on data flow (right-click on the program block diagram panel – Programming – Structure – Tiled sequential structure – Put operation 1 into the structure box – Right-click – Add frames behind – Put another operation 2 into the structure box – Execute: Operation 1, Operation 2 – Add delay between Operation 1 and Operation 2: Right-click-Programming – Timed – Wait (milliseconds) – Click the question mark in the upper right corner – Right-click to wait on the left – Create – Constant – 5000)