I have read a lot of posts about calling LabVIEW dll's from visual basic using activeX and calling compiled exe's from visual basic but none of the examples from devzone or posts on the forums quite cover my problem.
I am trying to compile a LabVIEW VI into either a dll or exe and have it called from VB. The VB app then must wait for the dll/exe to finish and return a number before continuing.
From what I have seen in the example code, calling a dll is easy and works if the vi acts as a function only (pass it inputs and it returns outputs). I have yet to see an example where a VB app calls a labview dll that involves user interaction through a front panel etc.
I have also seen examples of VB apps calling LabVIEW VI's through activeX and they work quite well, except I won't have a LabVIEW licence running on the destination system, just the run-time engine.
I have tried calling a LV exe but either the VB app hangs or it does not wait for a return value.
I think I have tried nearly every combination of activeX, dll, exe, VI server etc but can't get a working solution.
Thanks in advance for any help.
Phil