LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW DLL redeclaration errors

Hello all,
 
I have created a LabVIEW (8.2) DLL that I want to call from LabWindows CVI (8.0).  I have added the required header and library files to my LabWindows project per instructions.  When I attempt to compile I get the type redeclaration errors described elsewhere in other threads.  I have removed all references to the native LabVIEW data types in my DLL VIs. 
 
It is my understanding that I should be able to compile the project with the "extcode.h" commented out in the library header file, but then I get project link errors to the DLL functions when I try to call them.  What's going on?
 
Slowpoke
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 1 of 7
(4,264 Views)
Hi Slowpoke,

Can you post a simple version of your VI and C code, so I can check out why this may be happening?

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 2 of 7
(4,238 Views)
Hi Gavin,
 
Thank you for responding.  I believe I've solved my original problem; I had forgotten to move the .dll file into the same directory as the LabWindows dbg.exe file.  Butn now I have a different problem. 
 
I've included a DAQmx task in my DLL project.  When I build the DLL I add that VI to the list of exported VIs, which gives me a void function with no arguments.  However, when I try to call the function from my LabWindows program it doesn't run the VI.  Does this mean I will have to start the task VI with another VI containing a call by reference node, or is something else the issue? 
 
It might be better if I addressed this issue in another thread.  If so, thanks again!
 
Slowpoke
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 3 of 7
(4,212 Views)
Hi Slowpoke,

I'm not sure why this would be happening from CVI.  You will get faster response in a LabVIEW forum, but I can look into this.

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 4 of 7
(4,195 Views)

Hi Gavin,

I appreciate it but that won't be necessary.  Nothing but a mild case of noobitis (mine).  Smiley Tongue

Thanks!

Slowpoke 

Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 5 of 7
(4,173 Views)

Oops.  Spoke too soon.  I could still use some help on this issue.

Thanks,

Slowpoke

Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 6 of 7
(4,167 Views)

Nope, still noobitis.  Sorry!

 

Slowpoke

Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 7 of 7
(4,144 Views)