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.
和奇怪的数据: