cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[labview求助] 各位大虾,如何用CLF调用DLL,万分感激

[复制链接]
发表于 2011-3-22 08:49:51 | 显示全部楼层 |阅读模式
First at all setup memory block for hardware using
Public UIP(2048) As Long
Public UCP(1023, 1023 + 11, 7) As Byte


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1、 FindHardware1:Call it at beginning when load program first, it can let program automatic detect printer
model of dso29xxab.
Declare Function FindHardware1 Lib "Dso29xxa.dll" (ByRef board_model As Byte, ByRef UIP As Long, ByRef UCP As Byte, ByVal winversion As Long) As Byte
parament
winversion:
winversion = 0
"Win32s"
winversion = 1
"Windows 95,98,ME"
winversion = 2
"Windows NT,XP"
UIP:  open UIP(2048) array
UCP: open  UCP(1023, 1023 + 11, 6) array
return:
board_model:
  dso2902_1mega = 34 (dso-2902a_g2 or dso-2902a_g512)
  dso2904_1mega = 35(dso-2904a_g2 or dso-2904a_g512)

  dso2902_512 = 38 (dso-2902a_m2 or dso-2902a_m512)
  dso2904_512 = 39(dso-2904a_m2 or dso-29024_m512)
发表于 2011-3-22 09:08:01 | 显示全部楼层
调用dll需要知道LabVIEW的数据如何存储的,这个可以看下LabVIEW的data storage的application note。
开始菜单,national instruments下有个bookshelf,打开有指向很多pdf的链接,有个很大块是application note和while paper
或者去LabVIEW安装目录搜索data*.pdf。
然后去example里搜索dll,出来的例子看下。
大约需要3天,如果有c基础
发表于 2011-3-22 09:34:47 | 显示全部楼层
调用dll需要知道LabVIEW的数据如何存储的,这个可以看下LabVIEW的data storage的application note。
开始菜单,national instruments下有个bookshelf,打开有指向很多pdf的链接,有个很大块是application note和while paper
或者去LabVIEW安装目录搜索data*.pdf。
然后去example里搜索dll,出来的例子看下。
大约需要3天,如果有c基础
 楼主| 发表于 2011-3-22 09:39:43 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-7 17:08 , Processed in 0.765357 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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