{"title":"在PC机上进行了软件生成时间间隔的对比实验","authors":"Nuo Li, M. Ai, Yanghai Jiang, Tianshu Wei","doi":"10.1109/BMEI.2015.7401597","DOIUrl":null,"url":null,"abstract":"The accuracy of time interval created by software in PC is crucial for data acquisition system. The inaccuracy can cause the unstable of sampling number and some other problems. Usually we create time interval by the software which is made by programming language in PC. In this paper, we want to compare the accuracy of time interval created by seven methods in PC. In order to calibrate the time interval precisely, first, we use the serial port to create positive pulse; second, use the space of time between two rising edge to represent the time interval created by software; third, use seven methods (sleep function, WM_TIMER message mapping, COleDateTime class, GetTickCount function, multimediatimer, callback function and QueryPerformance-Counter function) to create time interval and measure it by universal counter. In the end, we analyze the experiment data and find that the callback function method based on multimediatimer is suitable for creating time interval for its high accuracy and low CPU occupancy rate.","PeriodicalId":119361,"journal":{"name":"2015 8th International Conference on Biomedical Engineering and Informatics (BMEI)","volume":"40 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2015-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A comparison experiment about time interval created by software in PC\",\"authors\":\"Nuo Li, M. Ai, Yanghai Jiang, Tianshu Wei\",\"doi\":\"10.1109/BMEI.2015.7401597\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The accuracy of time interval created by software in PC is crucial for data acquisition system. The inaccuracy can cause the unstable of sampling number and some other problems. Usually we create time interval by the software which is made by programming language in PC. In this paper, we want to compare the accuracy of time interval created by seven methods in PC. In order to calibrate the time interval precisely, first, we use the serial port to create positive pulse; second, use the space of time between two rising edge to represent the time interval created by software; third, use seven methods (sleep function, WM_TIMER message mapping, COleDateTime class, GetTickCount function, multimediatimer, callback function and QueryPerformance-Counter function) to create time interval and measure it by universal counter. In the end, we analyze the experiment data and find that the callback function method based on multimediatimer is suitable for creating time interval for its high accuracy and low CPU occupancy rate.\",\"PeriodicalId\":119361,\"journal\":{\"name\":\"2015 8th International Conference on Biomedical Engineering and Informatics (BMEI)\",\"volume\":\"40 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2015-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2015 8th International Conference on Biomedical Engineering and Informatics (BMEI)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/BMEI.2015.7401597\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2015 8th International Conference on Biomedical Engineering and Informatics (BMEI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/BMEI.2015.7401597","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A comparison experiment about time interval created by software in PC
The accuracy of time interval created by software in PC is crucial for data acquisition system. The inaccuracy can cause the unstable of sampling number and some other problems. Usually we create time interval by the software which is made by programming language in PC. In this paper, we want to compare the accuracy of time interval created by seven methods in PC. In order to calibrate the time interval precisely, first, we use the serial port to create positive pulse; second, use the space of time between two rising edge to represent the time interval created by software; third, use seven methods (sleep function, WM_TIMER message mapping, COleDateTime class, GetTickCount function, multimediatimer, callback function and QueryPerformance-Counter function) to create time interval and measure it by universal counter. In the end, we analyze the experiment data and find that the callback function method based on multimediatimer is suitable for creating time interval for its high accuracy and low CPU occupancy rate.