应用背景可应用在上位机软件,与下位机相连,实时分析下位机的数据情况,示例用随机数模拟示波器效果,可将此效果应用在串口通信类软件上,用下位机反馈的数据代替随机数,根据需求修改程序代码,达到个性定制示波器的原理。关键技术程序使用了scope类,是对scope类的一个应用,在源码包中单独放置了一个文件夹来放scope类,方便大家查找学习。(程序可用visual studio 2013 打开运行)
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001438s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.097920s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001314s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.002056s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.002397s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.011868s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.006906s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003805s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.023174s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001120s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 206958 [ RunTime:0.017715s ]