找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 797|回复: 1

请教牛人调用动态链接库问题

[复制链接]
jimmy.123 该用户已被删除
发表于 2008-7-13 14:02:22 | 显示全部楼层 |阅读模式
用调用库函数节点调用动态链接库时,需要选择输入参数的类型,可是硬件厂商提供的这个windows底层动态链接库中大多数函数的原型类似如下:
int AcquireToSabP14 (P14ID *pBrd , BOOL bBufferedAcq);
其中P14ID为数据结构类型:
typedef struct _P14ID
{
HANDLE hDev; /* Handle to PDA14 device */
ULONG SerialNum; /* Board's serial number */
ULONG PortPlx; /* Port to PLX */
ULONG PortBrd; /* Port to board */
ULONG dwFlags; /* Internal implementation flags */
USHORT BrdNum; /* Number of this board type in system */
/* Registers */
struct _P14REG00 Reg0;
struct _P14REG01 Reg1;
struct _P14REG02 Reg2;
struct _P14REG03 Reg3;
struct _P14REG04 Reg4;
struct _P14REG05 Reg5;
struct _P14REG06 Reg6;
struct _P14REG07 Reg7;
struct _P14REG08 Reg8;
struct _P14REG09 Reg9;
struct _P14REG10 RegA;
struct _P14REG11 RegB;
struct _P14REG12 RegC;
/** Utility DMA buffer used by library implementation */
p14_dma_buf_t pUtilityDmaBuf;
/** Length of pUtilityDmaBuf in samples */
ULONG dwUtilityDmaBufLen;
} P14ID, *PP14ID;
那么我应该怎么配置参数的类型呢?
非常非常感谢!!!
发表于 2008-7-13 15:12:48 | 显示全部楼层
examle里搜索call dll,看下那个例子。。。。
想顺利在labview中调用dll,需要有中等程度的c的基础,需要对数据 如何在内存中存储有一定了解。
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-30 04:09 , Processed in 0.026217 second(s), 9 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表