07-21-2011 05:33 AM
The idea is that I have a framework for collecting data. The thing is that I don't know beforehand how the data is collected. Therefore a vi is opened dynamically to retreive this data.
When I use udp controls in this vi to retreive data over a network, everything works fine. However, when I use tcp controls I get error 1003: "The VI is not executable". The error appears in the "Open VI Reference" control.
I don't see why this should be a problem.
Solved! Go to Solution.
07-21-2011 06:01 AM
07-21-2011 07:59 AM
"sandvik.vi" is the vi I want to open. "callout_vi_check.vi" is one vi I use to open a vi.
I forgot to mention, opening "callout_vi_check.vi" and running it works just fine. It's when I compile it to a dll and call the function that I get the error.
07-21-2011 08:15 AM
A little more detail might be needed to understand this.
Exactly what are you compiling into a dll?
I can see that callout_vi_check.vi has the "Default path" function, so I presume you keep your VIs in the LabVIEW installation folder?
If you are building a dll, what method are you using to call the dll?
07-21-2011 09:10 AM
"Default path" in this case returns the folder where my program is.
Anyway, I've found a solution. The problem is somewhere inside the "TCP Listen.vi" subvi. I switched it for the "TCP Create Listener" and "TCP Wait On Listener" controls and now everything works fine.