Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
修改时间 12-11-2016 01:25 AM
一个DLL文件里有个函数,要求传递字符串数组指针。
我试过字符串、字符串数组、字节二维数组、匹配到类型等,没有解决。
网上搜过,大多没有办法、或给出字符串(而非字符串数组)解决办法。
有个地方“http://blog.sina.com.cn/s/blog_79bb01d0010169ux.html”明确提到这个问题,但我没有试通。求一个明确点儿的说法。
已解决! 转到解答。
修改时间 12-11-2016 01:35 AM
修改时间 12-11-2016 01:11 PM
LabVIEW 自带的例子看了吗?
修改时间 12-12-2016 01:52 AM
看了“Libraries and Executables.lvproj”,没有说到字符串数组。
修改时间 12-12-2016 09:05 AM
LabVIEW 2012 有更多例子.
修改时间 12-12-2016 09:48 AM
确实没找到。能否明示例子?盼复。
修改时间 12-12-2016 10:09 AM
修改时间 12-12-2016 09:13 PM
谢谢回复。
该方法试过,可将字符串传递给dll,但不能传递字符串数组。
只找到一个明确提到传递字符串数组的文章,在一楼的链接里,但该方法不可用。我试着穷举了一下其他方法,未成功。
盼复。
12-12-2016 10:39 PM - 编辑日期 12-12-2016 10:42 PM
> void abcd(char* efgh); efgh是字符串数组
2D array of char*.
LabVIEW can NOT handle.
Who create the dll ?
If you can't change the dll, then you have to create a wrapper dll.
i.e. LabVIEW calls your wrapper dll;
your wrapper dll calls the given dll.
修改时间 12-12-2016 11:41 PM
一楼链接里的方法是可行的. 我用过多次. 前提是: 你能修改 dll.
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!