Make sure that the path which you use to load STUB will work correctly when this is built into an executable. The error you mentioned, "input is not specified", occurs usually when the path you pass to open VI reference is incorrect. If you are building the path, and something goes wrong, it will send
which is what causes this error. That's my best guess. Hope this gets you started.
J.R. Allen