NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

(十万火急)LV6.1的CLF节点调用VC DLL的问题??(程序见附件)


GGJJ:
本人须对采集一组数据进行处理,看了论坛上的文章得知用DLL可实现数据处理,且执行速度
快。但是本人编写了一个简单的测试程序,DLL的功能是直接将读入的长度为5数组原样输出,在
程序执行时发现了如下错误:
Error #3 : "memory.cpp",line 563 LabVIEW version 6.1. For assistance
in
resolving this problem, please record the preceding information and navigate
to
www.ni.com/failure,or contact National Instrumemts.
本人也曾登ni.com/failure但还是找不到解决问题的方法。还有在CIF配置中添加的函数的
参数,我不知道哪些是输入哪些是输出,望好心的GGJJ能够指点指点,若能给我一个输出类型数
组的例子就最好不过了,在这里先谢过了。
程序见附件。
0 项奖励
1 条消息(共 3 条)
5,657 次查看

"一个迷茫的人" <lattos@163.com> wrote:
>GGJJ:
> 本人须对采集一组数据进行处理,看了论坛上的文章得知用DLL可实现数据处理,且执行速度
>快。但是本人编写了一个简单的测试程序,DLL的功能是直接将读入的长度为5数组原样输出,在
>程序执行时发现了如下错误:
> Error #3 : "memory.cpp",line 563 LabVIEW version 6.1. For assistance
>in
>resolving this problem, please record the preceding information and navigate
>to
>www.ni.com/failure,or contact National Instrumemts.
> 本人也曾登ni.com/failure但还是找不到解决问题的方法。还有在CIF配置中添加的函数的
>参数,我不知道哪些是输入哪些是输出,望好心的GGJJ能够指点指点,若能给我一个输出类型数
>组的例子就最好不过了,在这里先谢过了。
> 程序见附件。


1. Check you VI, make sure you are using the right calling convention.

2. I would recommand you use LabVIEW's data type instead of C data type.
For LabVIEW array data type definition, take a look extcode.h

3. Initialize output array in LabVIEW if you can.
0 项奖励
2 条消息(共 3 条)
5,649 次查看
There are many resons for your case
so maybe you can reference this link to make sure your program is correct

About Using External Code in LabVIEW,you can reference this link:
http://digital.ni.com/manuals.nsf/websearch/8D930295FFBF9F7686256D2C00624728?OpenDocument&node=132100_US

About Why Does LabVIEW Crash When I Call My dll,you can reference this link:
http://digital.ni.com/public.nsf/websearch/3B994675B17C654A86256FDD00754DD2?OpenDocument
0 项奖励
3 条消息(共 3 条)
5,647 次查看