LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional load of DLL -- error check

I'm new to using external code in LabView so I might be missing something obvious.

Is there a way to check for the presence of a DLL before making the call? How can you avoid an error (or catch the error) when a DLL is missing? The "Call Library Function Node" doesn't seem to have any way of handling the error.

I'm using LV7.0

0 Kudos
Message 1 of 5
(3,185 Views)

Hi cosborne,

you can place the dll call into a vi. If you load this vi dynamically, then you can check the presence of the dll before you try to load it.

 

Mike

0 Kudos
Message 2 of 5
(3,182 Views)

If you load this vi dynamically, then you can check the presence of the dll before you try to load it.

 

Mike could you please elaborate it? Give some bit more details about checking the presence of the dll.

 

Thanks,

Mathan

 

0 Kudos
Message 3 of 5
(3,162 Views)

Hi mathan,

please see the attached picture. It shows what i mean.

 

Mike

Message 4 of 5
(3,151 Views)
Ohhhh Thanks a lot mike.... Smiley Happy
0 Kudos
Message 5 of 5
(3,148 Views)