求助:利用DLL从数据采集硬件中读取数据的问题
DLL中涉及到的函数说明如下所示:命令:USB_BulkInport(char Addr, WORD Len, void * Data, int * ReadLen);
参数:
addr 地址: CHNO/*通道号*/ * 16 + 1;
Len数据包个数: 以64字节为一个包,如果需要读取32768字节的数据,则本参数应该是 32768 / 64;
*Data 数据缓冲区地址: 数据缓冲区的大小应该被64字节整除;
ReadLen 读到的数据长度: 返回读到的数据长度;
我是这么做的:
运行后得到的这样的提示:
Possible reason(s):
LabVIEW:An exception occurred within the external code called by a Call Library Function Node. The exception may have corrupted LabVIEW's memory. Save any work to a new location and restart LabVIEW.
和奇怪的数据:
这是因为我用的方法不对呢还是我的参数设置有问题。
谢谢!
LV调用DLL出错解决办法详解之一!
http://www.cpubbs.com/bbs/viewthread.php?tid=15544&fromuid=19
兄弟看看是不是这个问题呢? 一般是配置类型不对! Thanks for your help !
页:
[1]