CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - use LabVIEW Call Library Function with c Sharp D
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - use LabVIEW Call Library Function with c Sharp D - List
[
CSharp
]
Csharp_Lv
DL : 0
C#调用LV做成的DLL 主要为Boolean、数值、字符串、路径、数组、VISA设置名称 Boolean可以用数值代替,false:0 ture:1 路径及VISA设备名称可以改为字符串型。 注意:可以将Lv的输出字符串定义为32位。 在定义Labview的函数时,都使用Standard Calling Conventions。值型的Bass by都设置为Value,字符串型设置为C String Pointer。 在定义函数参数时,注意Labview与C#的数据类型必须相同。 Csheap中的函数名称必须与Labview中的函数名称一致。否则Csheap报告“无法找到入口点”。函数中的参数可以不同。 例子:主程序CallLv.sln;LV库程序:lvllb.lvproj -C# call DLL caused LV mainly Boolean, numerical, string, path, array, VISA set name in lieu of Boolean values can be used, false: 0 ture: 1 path and the name of VISA equipment could be converted to string type. Note: Lv output can be defined as a 32-bit string. Labview in the definition of the function, use the Standard Calling Conventions. Bass by value type are set to Value, string-type is set to C String Pointer. Function parameters in the definition, the attention of Labview and C# data types must be the same. Csheap in Labview function name must be consistent in the name of the function. Otherwise Csheap report " can not find entry point." Function of the parameters can be different. Example: the main program CallLv.sln LV Treasury program: lvllb.lvproj
Update
: 2025-02-19
Size
: 75kb
Publisher
:
zhw63
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.