LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot open vi dynamically when it contains tcp controls

Solved!
Go to solution

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. 

Lars Melander
Uppsala Database Laboratory, Uppsala University
0 Kudos
Message 1 of 5
(2,609 Views)

Can you confirm the VI is not broken?

 

For error 1003 there must be either a missing dependency, or the VI itself is not executable.

 

If you could post your VIs that would be helpful.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 5
(2,603 Views)

"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.

Lars Melander
Uppsala Database Laboratory, Uppsala University
Download All
0 Kudos
Message 3 of 5
(2,593 Views)

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?

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 4 of 5
(2,590 Views)
Solution
Accepted by topic author LarsM

"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. 

Lars Melander
Uppsala Database Laboratory, Uppsala University
0 Kudos
Message 5 of 5
(2,581 Views)