LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make DLLs independent

Greetings!,
      I want to use a DLL to encapsulate some LabVIEW code so the DLL and caller can be updated independently.  However, there are some utility VIs used by both the caller and the DLL.  After the DLL is compiled, if the utility VI changes in the caller, it breaks the DLL.  If the utility is changed in the DLL, the caller loads first, and it breaks the DLL.
 
Is use of unique-names the only way to cure this behind-the-scenes dependency?  I was hoping for some compiler option, but don't see one. Smiley Sad
 
Thanks.

Message Edited by Dynamik on 02-08-2006 06:38 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 1 of 5
(3,625 Views)


@Dynamik wrote:
Greetings!,
      I want to use a DLL to encapsulate some LabVIEW code so the DLL and caller can be updated independently.  However, there are some utility VIs used by both the caller and the DLL.  After the DLL is compiled, if the utility VI changes in the caller, it breaks the DLL.  If the utility is changed in the DLL, the caller loads first, and it breaks the DLL.
 
Is use of unique-names the only way to cure this behind-the-scenes dependency?  I was hoping for some compiler option, but don't see one. Smiley Sad
 
Thanks.

Message Edited by Dynamik on 02-08-2006 06:38 PM


Yes unique names is the only easy way. In LabVIEW 8 you could also try to fiddle with the contextes to get the DLL code to execute in it's own application context but that is probably a bit of a hassle.
(Or you could create the DLL in a different version than the LabVIEW version your want to call it from. Then the DLL is most probably even running in its own runtime process 😉

Rolf Kalbermatter

Message Edited by rolfk on 02-09-2006 10:10 PM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(3,598 Views)


@rolfk wrote:

(Or you could create the DLL in a different version than the LabVIEW version your want to call it from. Then the DLL is most probably even running in its own runtime process 😉

Rolf Kalbermatter

( lol,  me thinks you're reading too many threads ;^)  )

Thanks Rolf.

Unique-named everything ( would like to see a compiler option to do this...)

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 3 of 5
(3,575 Views)


@Dynamik wrote:

Unique-named everything ( would like to see a compiler option to do this...)


There are several project renaming tools floating around. You can probably even use OpenG's mangle\unmangle name VIs (in the app control palette) for automating it somewhat.

___________________
Try to take over the world!
Message 4 of 5
(3,566 Views)
0 Kudos
Message 5 of 5
(3,253 Views)