完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我购买了MKI062V2演示板,我在使用st.com提供的AN3138 matlab Wrapper时遇到了问题。包装器用于V1,但我找不到V2。
代码编译但只有流零。 INEMO_SDK_GetSample命令中的i32值为4,表示数据堆栈为空。 我已经开始尝试将iNEMO_SDK.dll调整为iNEMO2_SDK.dll,但功能不同。有谁知道如何使用Matlab Wrapper与V2进行通信? #stevalmki062v2#steval-mki062v2 以上来自于谷歌翻译 以下为原文 I purchased a MKI062V2 demo board and I am having trouble with the AN3138 Matlab Wrapper provided from st.com. The wrapper is for the V1 but I cannot find one for V2. The code compiles but only streams zeros. My i32 value at the INEMO_SDK_GetSample command is 4 which means the stack of data is empty. I have started trying to adjust the iNEMO_SDK.dll to the iNEMO2_SDK.dll but the functions are different. Does anyone know how to communicate with the V2 using the Matlab Wrapper? #stevalmki062v2 #steval-mki062v2 |
|
相关推荐
5个回答
|
|
嗨凯文,
我附加了两个matlab功能,为设备提供连接和断开连接。我不确定你是在寻找这种解决方案,但是我使用这些函数来运行我的Matlab算法并与iNemo通信,也许它们对你也很有用...... 注意在Matlab路径中插入文件中指定的必需库。 再见 以上来自于谷歌翻译 以下为原文 Hi Kevin, i've attached two matlab functions providing connection and disconnection to the device. I'm not sure that that you are looking for these kind of solutions, however i use these functions to run my Matlab algorithm and comunicate with iNemo, maybe they could be useful for you too... Pay attention to insert in Matlab path the required libraries, specified in the files. Bye |
|
|
|
感谢您提供示例代码。为了测试我是否可以连接,我运行了以下内容
[handle_dev pFD] = INEMO_Connection() [error5] = calllib('iNEMO2_SDK','INEMO2_IsConnect',handle_dev) 我得到一个error5 = 0的返回,所以我仍然没有连接。无论是否插入IMU,handle_dev值都是相同的。 我收到警告:结构FrameData_s使用的数据类型不存在。该结构可能无法使用。有什么指针吗? 以上来自于谷歌翻译 以下为原文 Thank you for the example code. Just to test if I could connect, I ran the following [handle_dev pFD] = INEMO_Connection() [error5] = calllib('iNEMO2_SDK', 'INEMO2_IsConnect',handle_dev) I get a return of error5 = 0 so I am still not connecting. The handle_dev value is the same whether the IMU is plugged in or not. I get a warning: the data type used by structure FrameData_s does not exist. The structure may not be usable. Any pointers? |
|
|
|
您收到的警告是由于使用了最新版本的库,因为我编写的函数是使用较旧版本测试的。然而,我尝试使用最新版本,虽然警告,他们的工作原理相同。
您是否在相关代码中指定的INEMO_Connection函数中设置了正确的端口号? 以上来自于谷歌翻译 以下为原文 The warning you get is due to the usage of the latest version of the library, since the functions i have written are tested with an older one. However i tried them with the latest version and, although the warning, they works the same. Have you set the correct port number in the INEMO_Connection function as specified in the related code? |
|
|
|
有用!我整天都在摆弄东西,所以我不确定究竟是什么问题,但它与下列之一有关:
- iNEMO应用程序套件和iNEMO SDK具有不同版本的iNEMO2_SDK.h。我正在使用SDK redestrib文件。 - 我的matlab代码和dll和.h文件都在同一个文件夹中:C - 插入了iNEMO 无论如何,非常感谢你的帮助,我很高兴开始玩它。 以上来自于谷歌翻译 以下为原文 It works! I spent all day fiddling with things so I am not sure what exactly the problem was but it has to do with one of the following: - The iNEMO application suite and iNEMO SDK have different versions of iNEMO2_SDK.h. I am using the SDK redestrib files. - My matlab code and the dll and .h file are all in the same folder in :C - The iNEMO is plugged in Anyway, thank you very much for the help, I am excited to start playing with it. |
|
|
|
对于遇到类似问题的人,我应该注意到我将固件升级到2.0.0版。
以上来自于谷歌翻译 以下为原文 And for anyone who has similar problems to mine, I should note that I upgraded the firmware to version 2.0.0. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2265 浏览 1 评论
3042 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1617 浏览 1 评论
3431 浏览 6 评论
5772 浏览 21 评论
778浏览 4评论
1147浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
417浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1130浏览 3评论
1179浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 21:16 , Processed in 1.018382 second(s), Total 53, Slave 47 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191