‎11-29-2007 07:46 PM
LabVIEW Programming with calling class(DLL File)
Two questions : (About LabVIEW Class Object)
(1)How to use LabVIEW Class object in other LabVIEW project?(The LabVIEW Class must be compiled to DLL file, without source code)
(2)How to inherit from this Class in DLL file?
Step :
(a)Cearte one LabVIEW Class , then compile to DLL file.
(b)Create another project to reference this DLL file.....??????
Thanks.
‎02-18-2008 02:35 AM
Hello,
You can use any language to write shared libraries as long as the shared libraries can be called using one of the calling conventions LabVIEW supports, either stdcall or C. Examples and troubleshooting information help you build and use shared libraries and successfully configure the Call Library Function Node in LabVIEW.
LabVIEW loads shared libraries in a unique application instance. Opening a shared library in a unique application instance prevents naming conflicts with VIs in the shared library, and VIs outside of the shared library.
Refer to the labview\examples\dll directory for examples of using shared libraries.
Hope this helps.
‎02-18-2008 07:04 AM - edited ‎02-18-2008 07:08 AM
Have you tried to use the Adapt to Type possibility for the DLL Node? Sorry can't help you more, haven't ventured into LabVIEW OOP yet.
@Jacky576 wrote:LabVIEW Programming with calling class(DLL File)
Two questions : (About LabVIEW Class Object)
(1)How to use LabVIEW Class object in other LabVIEW project?(The LabVIEW Class must be compiled to DLL file, without source code)
(2)How to inherit from this Class in DLL file?Step :
(a)Cearte one LabVIEW Class , then compile to DLL file.
(b)Create another project to reference this DLL file.....??????Thanks.