LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW dll not called correctly from visual c

Hi all.
I am attempting to package a labview application as a dll and call it from visual C++. I have no experience of C++ (only reason I�m am attempting this is to check the dll functions in visual c++ as a customer requires to integrate our labview app into their C++ platform)
I followed the example "Calling a DLL from Microsoft Visual C++ that Was Generated by LabVIEW 6i" as a guide line and had no problem getting this basic example to work.

Our application uses a DIO 32HS 5633 board to implement a BER tester. When I generate the dll and call it in C++ the app runs with no reported error but the BER tester isn't called. (The front panel should show itself when called and the user is required to pre
ss continue before a test is run so app should at least hang if panel was not displayed).

When I package the dll without any of the dio specific vis enclosed the dll runs correctly in C++ (i.e. front panel is displayed). From this it appears to me that it is a daq driver problem. Maybe C++ can�t link properly to LVDaq.dll? Has anyone encountered a similar problem? I am working with LabVIEW7 , windows XP and visual C++ 6.
I have attached the .c , .h and dll file which may shed more light on my problem.

Hope someone out there can help.
t.i.a
dec
Download All
0 Kudos
Message 1 of 2
(2,759 Views)
THis simplest answer is to install NI-DAQ and ensure support for VC++ is selected.

It is also possible to include the required NI-DAQ functions in the install of your dll, but I can not give you the specific off the top of my head.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,759 Views)