完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我目前正在尝试使用Agilent VEE将USB连接到I2C / SPI适配器。
我使用提供的.NET程序集引用来执行此操作。 I2C_read函数请求一个参数,该参数是指向数据的指针。 在VEE中输入指针的正确方法是什么? 正确地回读。 我已经初始化了所有零UInt8 arrary,我没有错误,但我无法看到回读。 任何指导都非常感谢。 谢谢你-Edwin *更具体地说,我正在使用Total Phase的Aardvark USB转I2C / SPI主机适配器。 也许有人之前已将此设备与VEE接口并有示例。 以上来自于谷歌翻译 以下为原文 Hello, I am currently trying to interface a USB to I2C/SPI adapter with Agilent VEE. I am using a provided .NET assembly reference to do so. The I2C_read function asks for an argument that is a pointer to data. What is the correct way to input a pointer in VEE? to properly get the read back. I have input an all zero UInt8 arrary intialized and I get no errors, but I am unable to see the read back. Any guidance in this is much appreciated. Thank you -Edwin *More specifically I am using Total Phase's Aardvark USB to I2C/SPI host adapter. Maybe someone has interfaced this equipment with VEE before and has examples. |
|
相关推荐
2个回答
|
|
下面是.NET程序集APIMaster读取(aa_i2c_read)int aa_i2c_read(Aardvark aardvark,aa_u16 slave_addr,AardvarkI2cFlags标志,aa_u16 num_bytes,aa_u08 * data_in);从I2C从设备读取字节流.Argumentsaardvark:Aardvark adapterslave_addr的句柄:
readflags的slave:“Notes”部分和belownum_bytes中描述的特殊操作:要读取的字节数(最大65535)data_in:指向数据的指针返回值读取的字节数。特定错误代码AA_I2C_READ_ERROR:读取错误 Aardvark适配器。 这很可能是通信错误的结果。 以上来自于谷歌翻译 以下为原文 Below is the .NET assembly API Master Read (aa_i2c_read) int aa_i2c_read (Aardvark aardvark, aa_u16 slave_addr, AardvarkI2cFlags flags, aa_u16 num_bytes, aa_u08 * data_in); Read a stream of bytes from the I2C slave device. Arguments aardvark: handle of an Aardvark adapter slave_addr: the slave from which to read flags: special operations as described in "Notes" section and below num_bytes: the number of bytes to read (maximum 65535) data_in: pointer to data <-----This is the argument I do not know how to realize in VEE Return Value Number of bytes read. Specific Error Codes AA_I2C_READ_ERROR: There was an error reading from the Aardvark adapter. This is most likely a result of a communication error. |
|
|
|
对我来说,这看起来更像是一个C / C ++语法。
如果它是C / C ++ DLL,我相信VEE帮助文件中的以下主题将对您有用。内容>讲述我...>用户定义函数>编译函数内容>我如何...>创建自定义对象和 功能>使用编译功能一些主题,例如 定义文件描述了VEE接受的数据类型。 请注意,VEE使用简单的定义头文件,它应该只包含(,, ...)列表;在您的情况下,您需要找出aa_u08的数据类型,然后将其转换为定义中的VEE接受数据类型 file.Hope这有帮助。-mk 以上来自于谷歌翻译 以下为原文 That looks more like a C/C++ syntax to me. If it is C/C++ DLL, I believe topics below in VEE help file will be useful to you. Contents > Tell Me About ... > User-Defined Functions > Compiled Functions Contents > How Do I ... > Create Custom Objects and Functions > Using a Compiled Function Some topics e.g. The Definition File describe VEE accepted data type. Please take note that VEE use simple definition header file, which should contains just list of ( , , ...) ; In your case, you will need to find out data type of aa_u08 then convert it to VEE accepted data type in the definition file. Hope this helps. -mk |
|
|
|
只有小组成员才能发言,加入小组>>
1223 浏览 0 评论
2347 浏览 1 评论
2157 浏览 1 评论
2022 浏览 5 评论
2902 浏览 3 评论
965浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
701浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
801浏览 0评论
1224浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 05:25 , Processed in 2.019322 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号