| With the gradual improvement of smartphone performance,it has been able to perform many tasks previously accomplished by PC,such as running specific virtual instruments to accomplish specific measurement tasks.However,compared with PC software,mobile APP has more installation restrictions.People usually do not want to install too many APPs on mobile phones.Due to the variability of measurement tasks,usually a measurement task is an APP,such as a sound level meter,a brightness meter,an electrocardiograph,etc.,which is in contradiction with people's mobile phone software installation habits.To this end,this paper adopt Reactive Programming principle to develop a script-based reconfigurable virtual instrument platform APP.By loading different instrument scripts,users can instantiate different measurement instrument applications on their phones.It facilitates the development of virtual instruments and also facilitates the acquisition and online upgrade of virtual instrument instances.The main work of this thesis includes:Firstly,Reactive Programming and virtual instrument technology are studied.Reactive Programming is introduced into virtual instrument,and a reactive reconfigurable virtual instrument software architecture is proposed.A reactive virtual instrument data port variate was designed to serve as the basis for virtual instrument control communication.A model of the reactive virtual instrument control was designed.The description language of the reactive reconfigurable virtual instrument is discussed.Secondly,the reactive reconfigurable virtual instrument is implemented on Android.The hierarchy analysis of the virtual instrument system and the function analysis of the virtual instrument platform are carried out.Based on the mechanism and characteristics of Android platform,the method and principle of implementing reactive reconfigurable virtual instrument on Android platform are described.The parallelization scheme of virtual instrument is analyzed and its thread model is given.Thirdly,the grammar of description language for mobile phone reactive reconfigurable virtual instrument is defined,and its interpreter is implemented.It is implemented to dynamically construct a virtual instrument by executing a script.In the process of implementing the interpreter,the technology of Java dynamic compilation is studied,and the technology scheme of Java dynamic compilation under Android platform is given.And focus on the research and implementation of expression data binding and function data binding,and refine it into a principle.Finally,in order to verify the effectiveness of the method of this paper,several virtual instrument applications in several aspects were developed and tested on the mobile virtual instrument platform using scripts.The verification results show that the virtual instrument platform of this paper has sufficient usability,practicability and professionalism. |