Electrochemistry is a significant research branch of chemistry. Electrochemical instrumentsplay important role in electrochemical researches and experiments. It promotes the development ofelectrochemical as well as helps researchers to investigate this field.This paper focused on a novel method, which based on Domain-Specific Language (DSL), todevelop a series of software-product lines. These software-product lines were used to build varioussoftware according to different scenarios of electrochemical experiments. Based on abovementioned strategies, we developed three different types of electrochemical instruments. Eightyvarious experimental methods were included in these three instruments. Firstly, Feature-orientedDomain Analysis (FODA) was adopted to compile the upper software-product lines and generatethe feature models. Secondly, DSL was used to construct the domain models using the featuremodels. Thirdly, domain models instances were gained based on actual requirements of produces,and software products and various experimental codes were produced by using DSL tools and codegenerators. |