当前位置:网站首页>从KEIL仿真界面导出数据的技巧
从KEIL仿真界面导出数据的技巧
2022-07-29 12:52:00 【挖矿大亨】
第一步:函数,根据需要编写,遵循linux编程规范
FUNC void GetADValue(void)
{
int i;
exec("log > Data.log");
printf ("******v28_in_r1*****\n");
for (i = 0; i < 40; i++)
{
printf ("%f\n", g_ADData.v28_in_r1[i]);
}
printf ("******v28_in_r2*****\n");
for (i = 0; i < 40; i++)
{
printf ("%f\n", g_ADData.v28_in_r2[i]);
}
printf ("******v28_in_iplus*****\n");
for (i = 0; i < 40; i++)
{
printf ("%f\n", g_ADData.v28_in_iplus[i]);
}
exec("log off");
}
第二步:将脚本命名为ini格式
第三步:导入ini格式的函数脚本
第四步:编译函数
第五步:在command window界面输入执行函数名称
第六步:查看导出数据,文件名称(也是可以修改,根据脚本来修改)为Data.log
边栏推荐
猜你喜欢

MLX90640 红外热成像仪测温传感器模块开发笔记(九)

DVWA full level customs clearance tutorial

gee引擎修改UI界面图文教程

SIP system composition format

MySQL基础篇(三)-- 数据类型

传奇人形怪爆率怎么设置?人形怪增加教程

npm出现报错 npm WARN config global `--global`, `--local` are deprecated. Use `--location=global

【云原生】-Docker容器迁移Oracle到MySQL

Nacos hierarchical storage model - the cluster configuration and NacosRule load balance
![[Numpy] np.select](/img/d6/5dfa767ad24dab3f7289d861011d00.jpg)
[Numpy] np.select
随机推荐
别再问我如何制作甘特图了!
MySql string splitting realizes the split function (field splitting, column switching, row switching)
The strategy pattern replacement if the else
【云原生】微服务之Feign的介绍与使用
SIP system composition format
A recent paper summarizes
Go-Excelize API源码阅读(七)—— CopySheet(from, to int)
如何把Netflix数据集转换成Movielens格式?
CentOS7安装Oracle数据库的全流程
超年轻!34岁教授,任985王牌学院副院长!
Mysql stored procedures, rounding
栈“后进先出”和队列中“先进先出”的含义
How Navicat Connects to MySQL
来自 Qt 官网的呐喊
JS advanced four (map, reduce, filter, sort, arrow function, class inheritance, yield)
【微信小程序】一文解决button、input、image组件
[Mysql] LENGTH函数
Windows系统Mysql8版本的安装教程
C# 1秒跑一个数字的展示,主要练习 事件相关内容
asyncawait和promise的区别