LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DLL converted from VI in Visual Studio 2K5

Good Morning,

 

I do hope this is the right place for this question.

 

I am using LV8.6 (barely - it doesn't like me).

 

The steps so far:

 

1)  Took 4 VI"s created in 8.5 and made sure they work in 8.6.

2)  Took these 4 VI's and created a project with a .lvproj extension

3)  Opened Visual Studio 2005 and created a blank solution

4)  Included necessary .h files

5)  Linked to the library created by Labview

6)  Created a program that calls a function from the Labview DLL

 

Question:  How do we determine what the values are for the parameters on the functions from the Labview DLL?

 

Here is my main:

 

#include "BG1Power.h"

 

int main()

{

TD1 in;

TD1 out;

double power; double psd;

Channel9FullPower(&in, &power, &psd, &out);

return 0;

}

0 Kudos
Message 1 of 2
(2,276 Views)

Hi James,

 

The header file from the DLL should have all of the function prototypes declared in it. 

 

I am afraid I might be misunderstanding your question, please let me know if that is the case. 

Regards,

Jeremy_B

Applications Engineer
National Instruments
Message 2 of 2
(2,249 Views)