LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

building a dll with labview for CVI

Hi,

I am making some abstract hardware layers for some instruments and i use to work with Labwindows CVI. But i have found ONE instrument, the Instek pst3201 alimentation which is ONLY created with Labview.

So i downloaded the 8.6 LV demo and builded the llb projet in order to obtain some .dll, .h and .lib files and included it to a CVI project in order to construct an intermediate Dll level.

 

Everything builds fine, like usually when i use an IVI driver but my problem is that when i try to call this intermediate Dll level with my abstact hardware layer using LoadLibrary, nothing is returned like if the DLL doesn't exist.

 

So my question is : Do you think that this is a problem from CVI (and i repeat that i have made a lot of others abstract hardware layers using IVi drivers except that this time i haven't got any .fp or .c but  a .h and i include the .lib to the project), or a problem from Labview and i should use the LV Application builder if it's different ?

0 Kudos
Message 1 of 3
(2,496 Views)

Hi,

It's seems that you have no exported function. What function do you have in your header file? did you tryed to create a really simple dll (doing an addition for example ) in LabVIEW only to verify that you are correctly creating the dll?

Manuel R
AE dans une autre vie
0 Kudos
Message 2 of 3
(2,476 Views)

Hi,

 

In this topic: What is the best way to share variables between labview and c#?   you can found the project where DLL was created in LabVIEW and called from CVI (scroll to the last message).

 

Andrey.

 

0 Kudos
Message 3 of 3
(2,471 Views)