摘要:计算机的应用越来越广泛,人机交互也越来越自然。本文设计了基于三轴加速计LIS302的识别与控制系统,采用STM32F407进行数据采集,使用LabVIEW研究并实现了运动分析、模式识别等技术。通过实验测试,设计的运动识别与控制系统能实时监测运动,并准确输出识别结果。关键字:人机交互 三轴加速计 STM32F407 LabVIEW 引言人机交互从早期的手工作业阶段到作业控制语言及交... Read More
posted @ 2014-05-06 17:11 bacazy Views(2798) Comments(0) Diggs(0)
1、摘要 STL文件是快速成型设备中常用的文件格式,随着3D打印技术的发展,STL格式文件的应用日益广泛。Python语言具有丰富和强大的类库,其语言简洁而清晰,因而Python语言越来越受欢迎。PLY是具名的LEX、YACC的Python版本,本文介绍了利用PLY模块对STL文件进行基本信息统计... Read More
posted @ 2014-05-04 10:46 bacazy Views(1650) Comments(1) Diggs(0)
使用平台:VS2010语言:C++先预览下:新建工程:选择MFC应用程序,输入工程名称,然后确定点击下一步后出现如下对话框,选择基于对话框,点击完成 MS自动帮我们创建了一个基础模板,并打开界面资源编辑窗口: 使用工具箱向界面拖控件,添加一个BUTTON控件,修改其属性:出现属性对话框:修改其Caption及ID,其他的属性就不罗嗦了类似的将其他的控件拖放到合适位置,并调整好位置,设定相应的属性。打开类视图,有三个类关于三个类的说明就不解释了我们双击BUTTON按钮就会自动帮我创建点击事件处理代码:看到在XXXDlg.cpp文件中添加了如下代码:void CtestDlg::OnBnClic. Read More
posted @ 2013-12-31 22:02 bacazy Views(444) Comments(0) Diggs(0)
参考:SerialPort窗体设计:数据词典:串口设置: 串口:cbx_PortName 波特率:cbx_BaudRate 奇偶校验:cbx_Parity 停止位:cbx_StopBits 数据位:cbx_DataBits 功能操作: 串口检测:btn_PortTest 发送数据:btn_SendData 接收数据:btn_ReceiveData 关闭串口:btn_Close 发送数据:tbx_SendData 接收数据:tbx_ReceivedData添加属性: SerialPort sp = null;//新建一个串口对象,作为全局对象 bool isOpen = false;//记录串. Read More
posted @ 2013-12-31 21:54 bacazy Views(5216) Comments(0) Diggs(0)
一、构建实验网络top图: ip规划: 路由器配置: PC1配置: PC2配置: 连接测试: Read More
posted @ 2013-12-29 22:36 bacazy Views(230) Comments(0) Diggs(0)
服务开启与关闭:开启MySQL服务:NET SATRT [MySQL服务名]关闭MySQL服务:NET START 【MySQL服务名]例如:NET START MYSQL56_1 NET STOP MYSQL56_1查询已开启的服务;NET START创建表:例如:(1) 建立教学管理中的三个基本表:Students(S#,SNAME,AGE,SEX) 学生(学号,姓名,年龄,性别)Courses(C#,CNAME,SCORE,PC#) 课程(课程号,课程名,学分,先行课号)SC(S#,C#,GRADE) 选修(学号,课程号,成绩)mysql> Create table Student Read More
posted @ 2013-12-10 23:16 bacazy Views(425) Comments(0) Diggs(0)
第一种方法#计算 弹性模量设置:晶格类型:diamond晶格常数:3.567 Aregion box block 0 20 0 20 0 20 units latticecreate_box 1 boxcreate_atoms 1 box势:pair_style tersoffpair_coeff ... Read More
posted @ 2013-09-28 20:46 bacazy Views(10047) Comments(6) Diggs(0)
1. Cd :改变工作目录 a) Cd: 显示当前工作目录 b) W=cd: 把当前工作目录赋给变量w c) Cd(‘directory’):把当期工作路径设为directory。 d) Cd(‘..’):返回当前目录的上级目录 2. Copyfile :复制文件或目录 a) Copyfile(‘source’,’destination’[,’f’]):把文件和目录从source中复制到des... Read More
posted @ 2013-09-08 20:25 bacazy Views(7104) Comments(0) Diggs(0)
每天学一点MATLAB函数——软件操作函数(1)1. exit 关闭MATLAB函数2. clc 清空命令窗口3. commandhistory 打开CommandHistory窗口,若已经打开则选中该窗口4. diary 把matlab操作记录存储到指定的文件中5. winopen 打开Windows操作系统下的文件6. open 打开文件7. web 打开网址8. format 设置输出数据格式9. home 清空CommandWindow当前界面,并把光标置于command window左上角10. clear 从工作空间中清空变量clear:清空工作空间中所有的变量clear name Read More
posted @ 2013-09-07 20:48 bacazy Views(4063) Comments(0) Diggs(0)
1 数组: 数组初始化:type[] array-name={val1,val2,val3,val4...valN}; 交错数组:元素为数组的数组。 Type[][]array-name=new type[size][]; 例如: Int[][]jagged=new int[3][]; Jagged[0]=new int[4]; Jagged[1]=new int[3]; Jagged[2]=new int[5]; 2 参数: 参数传递的方式:默认的情况下,C#按值传送 使用ref与out参数: A 使用ref参数:创建引用调用 B 使用out参数:使用引用参数从方法中... Read More
posted @ 2013-08-28 16:05 bacazy Views(251) Comments(0) Diggs(0)
regsvr32.exe regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname 参数: /u 反注册控件 /s 指定 regsvr32 安静运行,且不显示任何消息框。 /n 指定不调用 DllRegisterServer。此选项必须与 /i 共同使用。 /i:cmdline 调用 DllInstall 将它传递到可选的 [cmdline]。在... Read More
posted @ 2013-08-25 19:14 bacazy Views(247) Comments(0) Diggs(0)
import java.awt.*; import java.awt.event.*; public class ChessBoard extends Frame { /** * */ private static final long serialVersionUID = 1L; /** * */ public static void main(String[]args){new Ch... Read More
posted @ 2013-08-19 18:16 bacazy Views(222) Comments(0) Diggs(0)
判断式是一个返回boolean值的韩叔叔,通常被用来指定排序准则和搜索准则。一 Unary Predicates(一元判断式)检查唯一参数的某项特性:如:搜索第一个质数:#include#include#include#includeusing namespace std;bool isPrime(int number){//ignore negative signnumber = abs(number);//0 and 1 are prime numbersif (number==0 || number==1){return true;}int divisor;for(divisor=num Read More
posted @ 2013-08-19 00:42 bacazy Views(447) Comments(0) Diggs(0)
仿函数:1 仿函数比一般函数更灵巧,他可以拥有状态。2 每个仿函数可以拥有其型别。可以将仿函数的型别当做template参数进行传递,从而指定某种行为模式。如此一来,容器的型别也会因仿函数的不同而不同。3 在执行速度上,仿函数通常比函数指针更快。-----------------------------------------------------------------------------------------------一 仿函数做排序准则------------------------------------------------------------------------ Read More
posted @ 2013-08-18 23:11 bacazy Views(390) Comments(0) Diggs(0)
STL文件的基本数据格式:solid OBJECT facet normal 0 -0 -1 outer loop vertex -17.220884323120117 17.570217132568359 0.81012475490570068 vertex -17.220884323120117 18.465063095092773 0.81012475490570068 vertex -15.970458030700684 17.570217132568359 0.81012475490570068 endloop endfacet facet normal -0 -0 -1 outer Read More
posted @ 2013-08-18 19:41 bacazy Views(6907) Comments(4) Diggs(1)