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: 4491
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 1048 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: 4491
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: 401
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

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

Re: Labview import shared library

Post by AndrewA »

Testing out the dll shared library import tool with the VNA5 API.
As we don't use LabWindows/CVI so can't use the stdint.h suggested on the NI forum page.
I did find a copy here-
C:\Program Files (x86)\National Instruments\Shared\LVDB 2015\include\ansi\stdint.h
It looks to part of the "Database Connectivity Toolkit Readme" see - https://download.ni.com/support/manuals/375329a.html
Regards Andrew
Technical Specialist

Post Reply