Labview import shared library

Post your LabVIEW discussions here
Post Reply
mikaellindgren
Newbie
Posts: 0
Joined: Fri Jan 26, 2018 4:35 pm

Labview import shared library

Post by mikaellindgren »

LabView recommends to import the dll-file: (from help file)
Importing Functions from a Shared Library File
Use the Import Shared Library wizard to create or update a LabVIEW project library of wrapper VIs for functions in a Windows .dll file

When I try this I need the header-file (*.h) also. I use the ps3000a.dll but there was no header file in the SDK. I tried the ps3000aWrap.dll which had a h-file but it did not work?

Martyn
Site Admin
Site Admin
Posts: 4059
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Labview import shared library

Post by Martyn »

Have you checked for ps3000aapi.h in C:\Program Files\Pico Technology\SDK\inc
Martyn
Technical Support Manager

mikaellindgren
Newbie
Posts: 0
Joined: Fri Jan 26, 2018 4:35 pm

Re: Labview import shared library

Post by mikaellindgren »

Thanks, I found it.

However, I get this reply from LV:
The shared library contains 74 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.

The same applies if I try the ps3000aWrap version.

mikaellindgren
Newbie
Posts: 0
Joined: Fri Jan 26, 2018 4:35 pm

Re: Labview import shared library

Post by mikaellindgren »

LV(64-bit) complains about a missing header file: stdint.h see attachment.
LV Import shared library-1.pdf
(84.35 KiB) Downloaded 502 times
Several such files are available on C: but I do not know which to use? Why is it not supplied by Pico in the SDK?

Martyn
Site Admin
Site Admin
Posts: 4059
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Labview import shared library

Post by Martyn »

Have you tried using our LabVIEW examples

I would also suggest emailing support@picotech.com as you have posted a number of questions regarding LabVIEW development using our drivers, which can be handled directly by a specialist.
Martyn
Technical Support Manager

AndrewA
PICO STAFF
PICO STAFF
Posts: 312
Joined: Tue Oct 21, 2014 3:07 pm

Re: Labview import shared library

Post by AndrewA »

FYI-
Here is a solution suggested on the NI fourm, I have not tested this.
https://forums.ni.com/t5/LabVIEW/Cannot ... anguage=en
I know some users have had success using the import wizard.
I would check how some functions that pass C structures are created in LabVIEW function (Call library function)
(psXXXXtriggerInfo and all trigger functions)
And compare them to how these done in the current Pico examples-
https://github.com/picotech/picosdk-ni-labview-examples
As these can give issues if passed incorrectly.
Regards Andrew
Technical Specialist

Post Reply