摘要
利用计算机高级语言的编程开发工具VB(Visual Basic)6.0来设计制作高分子化学中二元共聚物组成曲线的动态绘制应用程序。在VB编辑器中先进行用户界面设计,再利用其图形方法中Line、Pset等方法实现代码作图。该应用程序主要有新曲线的绘制及其记录的累积显示、当前曲线及其记录的清除、所有曲线及全部记录的清除、退出窗体和坐标的实时捕捉等功能,其主要的操作流程是以输入的竟聚率r_1和r_2为原始数据参数,单击Plot按钮来以事件驱动进行画图。全文阐述了在绘制二元共聚物组成曲线的过程中VB的具体应用,给出了用户界面图效和相应的VB程序代码,并说明生成安装程序文件,方便独立和广泛使用。此项应用的操作有利于探讨竞聚率的不同取值对二元共聚物组成曲线造成影响的变化规律,避免了二元共聚物组成曲线在高分子化学的课程教学中的抽象性和空洞性,再加上程序具有清晰明了的用户界面和运用简便的特点,因此,易于提高教学效率和质量。在高分子化学的课程教学中,该应用程序可作为一种实用于辅助教学的工具。
An application program about dynamically drawing binary copolymer composition curve in polymer chemistry is designed and made by using the programming development tool VB(Visual Basic) 6.0 of the advanced computer language. In VB editor, before drawing with codes is realized through the methods of Line, Pset and so on in VB graph methods, a user interface has been done first. The application program is mainly made up of such some functions as drawing a new curve with showing its record in an accumulative way, cancelling the current curve and its record, cancelling all curves and all records, exiting the window and capturing a coordinate in real time. Its main operation flow is, with inputting a group of reactivity ratios rl and r2 as original data parameters, that drawing is driven by the event which is produced by clicking Plot button. This paper describes a specific application of VB in the process of drawing binary copolymer composition curve, and gives an effect graph of user interface and a corresponding VB program code. In addition, an installer file is generated, then it's convenient to use independently and widely. The operation of this application makes for discussing the change laws how different numerical values of reactivity ratios affect binary copolymer composition curves, and it avoids the abstraction and unintelligibility on binary copolymer composition curve in course teaching of polymer chemistry, at the same time, using simply is the characteristic of this program, which has a clear user interface. Therefore, it easily improves the efficiency and quality of teaching. Apparently, the application program can be used as a tool which is practical to assisted instruction in course teaching of polymer chemistry.
出处
《计算机与应用化学》
CAS
CSCD
北大核心
2014年第4期485-490,共6页
Computers and Applied Chemistry
基金
河南省科技厅重点攻关项目(082102280002)
关键词
VB
高分子化学
二元共聚物组成曲线
用户界面
竞聚率
VB
polymer chemistry
binary copolymer composition curve
user interface
reactivity ratio