02-13-2015 12:58 PM
I want the DLL to run a main loop and allow the calling program to call vis to control it. I'm having trouble loading the vi server reference once compiled.
02-13-2015 01:03 PM
The Open Vi Reference does not work when compiled.
02-13-2015 01:07 PM
Looks like I got it to work.
02-13-2015 03:15 PM
Steve,
others might find it helpful if you shared the solution you found here.
Kind regards
02-13-2015 04:40 PM
I had to use a text string instead of file path. The problem I have now is that the DLL is only running single thread and the GUI is not accepting user input. Is there a way to enable this?
02-13-2015 05:09 PM
Please provide more information. What language is the calling program written in? Is it the LabVIEW GUI that isn't accepting input? What do you mean by "not accepting input" - the GUI appears, but you can't click anything in it? Or something else? Have you tried enabling remote debugging, then connecting to the running VI from the development environment? I'm pretty sure this works for VIs inside DLLs, although I haven't tested it.
02-16-2015 06:41 AM
The dll is a labview compiled dll. Once I exit the launching call, the GUI appears but does not accept mouse clicks on any of the buttons.
02-16-2015 07:13 AM
02-16-2015 07:24 AM
It is a standard event based queue driven state machine. I opened it this way but opted not to wait for the vi to complete and did not close the reference.
https://decibel.ni.com/content/docs/DOC-3413
It turns out that the GUI will lock up independently of whether it is compiled into a DLL so I don't know what else could be the cause.
02-16-2015 10:32 AM
If I understand correctly, you're calling a DLL built in LabVIEW, from LabVIEW? Why? If you do the same thing but without building the called VI into a DLL, it still "locks up" the same way? Can you create a simplified example the demonstrates the same problematic behavior?