Open LabVIEW, create a new VI, and place the following controls on the front panel; 1)XML file path, Used to save the generated XML file (front panel menu-view-panel selection-control-new style-character string and path-file path input control) 2) Marriage Boolean control (front panel menu-view-panel selection-control-new style-Boolean-round indicator light (which needs to be converted into input control)), 3) Age plastic numerical control (front panel menu-view-control panel selection-control-new-numerical value-numerical value input control (note that the data type needs to be changed to plastic)), 4) 5)Value floating-point data control (front panel menu-view) matrix and cluster-array- and then put the floating-point numerical value input control into the array) 6) Info cluster control (front panel menu-view-control panel selection-control-array, Matrix and cluster- and then put the married Boolean input control, the age value input integer control and the address string input control into the cluster respectively).
2/3
Open the VI program block diagram and place the following functions:1) Flat to XML function (program block diagram menu-view-function selection board-function-programming-file IO file -XML-LabVIEW mode-Flat to XML), 2) connection string function (program block diagram menu-view-function selection board-function string-connection string), 3) writing XML file functions (program block menu-view-function selection board-function-programming-file IO file -XML-LabVIEW mode-writing XML files), 4) finally connecting terminals of various controls and functions;
3/3
Running VI will generate a file with. XML suffix;
1/3
In the same way, open LabVIEW, create a new VI, and place the following controls on the front panel; 1)XML file path, Used to save the generated XML file (front panel menu-view-control panel selection-control-new style-character string and path-file path input control) 2) Marriage Boolean control (front panel menu-view-control panel selection-new style-Boolean-circular indicator light) 3) Age plastic numerical control (front panel menu-view-control panel selection-control-new-numerical value display control). Address string control (front panel menu-view-control panel 5) value floating-point data control (front panel menu-view) matrix and cluster-array-and then put floating-point numerical display control into array), 6) information clustering control (front panel menu-view-control panel selection-control-array, matrix and cluster-and then put married Boolean display control, age numerical display integer control and address string display control into cluster).
2/3
Open the VI program block diagram and place the following functions: 1) read XML file function (program block diagram menu-view-function selection board-function-programming-file IO file -XML-LabVIEW mode-read XML file), 2) index array (program block diagram menu-view-function selection board-function-array-index array), 3) restore the function from XML (program block menu-view-function selection board-function-programming-file IO file -XML-LabVIEW mode-restore from XML), 4) finally connect the terminals of each control and function;
3/3
When running VI, LabVIEW will use. XML suffix and display the content to the front panel control.