Realtime and Embedded System Testing for Biomedical Applications
Total Page:16
File Type:pdf, Size:1020Kb
1060 JOURNAL OF SOFTWARE, VOL. 5, NO. 10, OCTOBER 2010 Realtime and Embedded System Testing for Biomedical Applications Jinhe Wang, Jing Zhao, Bing Yan School of Computer Engineering, Qingdao Technological University, Qingdao, 266033, China [email protected] Abstract—With realtime and embedded systems we propose machine interface and peripheral interface, and control a software testing approach to build a testing architecture module. Figure 1 shows the overall diagram of the for biomedical applications, it can check the reliability embedded system. based on the failure data observed during software testing and can be applied to make the use of test task more flexible. The reliability of data of the system is computed Realtime & Biomedical System through the test panel and simulation of the testing system by testing the reliabilities of the individual modules in the embedded system. One of the fundamental requirements for embedded system is the ability to obtain the testing data from command line of the program for process control in the testing system. Hence, the testing instructions can be Peripheral Man-machine formally described as a sequential decision commands in Interface Interface terms of their temperature, action time, incremental quantity and gradient. The testing approach has been applied in the system and achieved the testing requirements of the embedded system. Data Storage Execution Control Sampling Index Terms—Software testing, reliability, embedded module system I. INTRODUCTION Figure 1. The overall diagram of the system. Embedded System have been developed in high speed, and used for many electronic devices in the field of Testing system includes several modules for the routine diagnostics of biomedical applications. It biomedical embedded system, such as digital signal test performs a variety of functions for the users, and the man-machine interface test, analog-to-digital module test, complexity of embedded system is increased control unit test and heat execution module test. dramatically. Because of mass-production and fast time- A. Man-machine Interface Test to-market, the quality of product and overall cost has Man-machine interface is a human-machine interaction become important factors. The multi-level testing platform, which receive commands from users and technique allows using partially defective logic and translate them into operating steps, and then transfer the routing resources for normal operation, it spans over steps into execution module, whereas, Sensor several engineering disciplines: mechanical engineering, information, parameters of output or other output electrical engineering and control engineering. There are informaiton will be sent to human-machine interface, and many types and design methods for software testing in then as results, transfer them to the user via LCD display. the Biomedical Embedded system, especially for With the Human-machine interface module, users edit temperature control testing [1-12]. The application of this a program (existing program or new one) with program method is focused on polymerase chain reaction editor that developed, the program can be loaded into the embedded system, which has cycling reactions such as processing level via user command. This is applicable for Denaturation, Annealing and extension [13-15]. Several programs from the internal device memory. After different models have been designed and applied for programming, the program data can be saved and remains testing in the field of basic research. The following stored even when the apparatus is switched off. Only sections will provide a description for the software testing programs can be started for execution. The program that on the realtime& embedded system. In Section II, we displayed in the processing level can be started directly describe the architecture of the system testing. Finally, a by user command via human-machine interface, and at brief conclusion is given in Section III. the same time, the human-machine interface will translate the program into control instructions for execution line by II. THE ARCHITECTURE OF THE SYSTEM TESTING line. The embedded system is for a gene amplification Here we will introduce the functions of keys briefly, system consisting of data sampling, heat execution, man- the key board consists of 24 keys in the embedded © 2010 ACADEMY PUBLISHER doi:10.4304/jsw.5.10.1060-1067 JOURNAL OF SOFTWARE, VOL. 5, NO. 10, OCTOBER 2010 1061 system, they are programming keys, cursor/confirm keys, LED fails to light, the key, functions with the control keys, file key, setting key, reverse key and 10 key, or the program codes edited for the key digital keys. should be checked properly. The programming key consists of Ins Key, Del Key Step 5. End. and Exit Key; cursor/confirm key consists of Left key, Right key, Up key, Down key and Confirm key; Control key includes Start key, Stop key and Pause key. TABLE I. THE RELATIONSHIP BETWEEN KEYS AND LEDS Let us take the programming key as an example: During the creation of a program, program lines can be Relationship Type inserted by pressing Ins Key, or they would be deleted by Description LED pressing Del Key. Ins Key LED1 In order to test the program executed in the Man- Programming Del Key LED2 machine interface module, a test system is designed, the keys panel of the system is show as Figure 2, There are 40 Exit Key LED3 lights on the panel, the first light-line includes 20 lights, Left key LED4 which named LED1, LED2, LED3, …, LED20 respectively, the second light-line includes 10 lights, the Right key LED5 Cursor/confirm names of these lights are LED21, LED22, LED23, …, Up key LED6 LED30, and the third includes LED31, LED32, key LED33, …, LED40. Down key LED7 Confirm key LED8 Start key LED9 Control key Stop key LED10 Pause key LED11 0-key LED12 1-key LED13 2-key LED14 3-key LED15 4-key LED16 Digital Key 5-key LED17 6-key LED18 7-key LED19 8-key LED20 9-key LED21 File key LED22 Figure 2. The test panel of the system Other key Setting key LED23 There three software testing tasks for Man-machine Reverse key LED24 interface module. 1 Key-board Test Keys on the key-board are pointed to their very LEDs Special test for keys: on the test panel , the relationship between keys and In order to avoid the twice times or more between a LEDs is shown in Table I. given interval when a key is pressed, the testing strategy The steps for testing task are as following: let the corresponding LED to be triggered many times when the phenomenon occurs. Step 1. connect the 40-pin cable to the hardware of the embedded system and the test panel 2 Command-line Test Step 2. connect the 4-pin cable to the hardware of the A program edited for the embedded system contains embedded system and the test panel two basic commands for controlling the temperature of Step 3. start testing the program of man-machine the thermal block and of the heated lid as well as seven interface different command lines for programming. A program Step 4. For each testing key, it corresponds to one of the can contain up to 200 program lines. The command-lines LEDs shown in Table I, press the key, if the (CML) may be repeated as desired. Digits or letters may be pressed via key board. Selections should be made for © 2010 ACADEMY PUBLISHER 1062 JOURNAL OF SOFTWARE, VOL. 5, NO. 10, OCTOBER 2010 all the command lines in programming. The command lines are divided into seven categories, such as TABLE II. Temperature Command Lines (TCL) , Hold Command THE RELATIONSHIP BETWEEN COMMAND LINE AND LEDS Lines (HCL), Repeat Command lines (RCL), Goto Relationship Type Command Lines (GCL), Pause Command Lines (PCL) , Description LED Voice Command Lines (VCL) , Link Command Lines TCL LED1 (LCL) and End Command Lines (ECL). All the digits inputted by the user should be within the given HCL LED2 specifications. Figure 3 shows a program, for example, it GCL LED3 contains 8 command-lines, they are TCL(Index 1), PCL LED4 HCL(Index 2) , TCL(Index 3), TCL(Index 4), GCL(Index Command Line 5), RCL(Index 5), HCL(Index 6), HCL(Index 7) and VCL LED5 ECL(Index 8) LCL LED6 ECL LED7 Edit User Name:A001 Program Name:B09001 RCL LED8 Edit Menu Block LED11 Control Mode: Block Lid Temperature:100 Wait LED12 Mode Wait Fix Fix LED13 Body of Program _______________________________________ ___ Gradient LED14 Index T Time δT δTime S δS G 1 92.0°C 0:12:08 +0.0 +0.00 0.0 +0.0 0.0 2 84.0°C 0:01:00 The five digits for time in TCL/HCL is pointed to their 3 44.0°C 0:01:00 +0.0 +0.00 0.0 +0.0 0.0 4 70.0°C 0:01:00 +0.0 +0.00 0.0 +0.0 0.0 corresponding LEDs on the first line on the test panel , 5 Goto 02 Rep 10 from left, the first digit is for hours, it is pointed to 6 70.0°C 0:01:00 LED16; the second and third digits are for minutes, they 7 4°C 1:00:00 are pointed to LED17 and LED18; the last two digits are 8 End for seconds, they are pointed to LED19 and LED20. The relationship between time and LEDs is shown in Table IV. Figure 3. An example of program editing. After Step 4 above, the program code for control mode is executed, the black number means the ID of LEDs, and the red number means digit that the LED is to Each command line is pointed to its corresponding be indicated. If the LED11,LED12 and LED13 turn on, it LED on the first line on the test panel, the Block-mode is succeeds in Step 4, if the result fails, the program code pointed to LED17, the Wait-mode is pointed to LED18, about the control mode and related parameters should be the Fix-mode is pointed to LED19, and the Gradient- checked carefully, in this case, the testing software will mode is pointed to LED20.