ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview calling c dll caling labview dll

Hello,

There is a Labview module, and a labview DLL that activate some units.
I was asked to create a C DLL, so that the Labview module will call the C DLL and the last one will call the Labview DLL which will activate the unit. like this:

Main LabView modul --> C DLL --> LabView DLL --> unit

Now, the LabView DLL expects some strings IN and returns a string OUT, but when compiled all the strings became of type LStrHandle.
The C DLL receives from the Main LabView module the arguments for the functione in the Labview DLL and uses them (pass them on )in irder to activate the functions on the LabView DLL.

The problem (if I understood right)is that it works one way and crashes on the way back. It activates the unit but somewhere it crashes...
I think it has something to do with the LStrHandle type between DLLs.

Any Help?
Thanks,
Dikla.
0 Kudos
Message 1 of 2
(2,757 Views)
Hi Disa,

Are you using Call Library Function Nodes to access the C DLL library?

Charlie Rodway
Test Engineer - Goodrich Control Systems

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 2
(2,732 Views)