LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi is not executable error, but it has no error

Hey I hope you can help me with a weird error.

 

I got the error "SubVi  'name' : SubVi is not executable" but when I click on the SubVi and open it it does not show me any description of an error. If I open the main vi or the SubVi alone it shows no error. Could it be a problem of a library or something else?

 

I am using Labview 2012 and Labview 2012 Mindstorms NXT.

 

If you neew more screenshots or the rest of the SubVis please tell me so 🙂

Thank you!

Jan

0 Kudos
Message 1 of 6
(4,266 Views)

This is one of those times I almost hate to post a reply.

 

I did take a quick peek at your "Code"  did you realize that you have two infinite loops in there?  I won't even attempt to decipher why you would need to re-initialize arrays of single elements 5 times each second.

 

Perhaps you should go through a quick introduction on getting started with LabVIEW


"Should be" isn't "Is" -Jay
Message 2 of 6
(4,241 Views)

Hey Jeff,

 

this is my first real Labview project. Thanks for your link.

Could you please tell me, why is it a problem to have two timed while loops and where did you find a re-initialisation of arrays 5 times each second? I use arrays to save data, from my point of view I only add an element at the end.

 

I used the same code one month earlier and it worked, but last days (dont know what happened) it did not worked, so I had to create a new project. Actually I am thinking about wrong links or an uncomplete library. Do you have any idea?

 

Best wishes, Jan

0 Kudos
Message 3 of 6
(4,215 Views)

You can remove both the sequence frame and the 1-time for loop in the upper right and it'll be the same code. Ofcourse it's a race condition with the "main loop", but one problem at a time.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(4,203 Views)

Thanks for all your replies!

 

I found the error, the NXT does not support global variables in Target on NXT- Mode so I changed to Target on Computer - Mode and now it works.

 

Unfortunately the program crashes after 15 minutes more or less. Could you imagine why? Is it because of to many bluetooth connections or a bad programm structure?

 

0 Kudos
Message 5 of 6
(4,161 Views)

@SmartCity-Project wrote:

Thanks for all your replies!

 

I found the error, the NXT does not support global variables in Target on NXT- Mode so I changed to Target on Computer - Mode and now it works.

 

Unfortunately the program crashes after 15 minutes more or less. Could you imagine why? Is it because of to many bluetooth connections or a bad programm structure?

 


After a very quick look at the code I would say that it is probably bad code. Your overuse of global variables, sequence structures and silly things like a For loop set to run once with everything inside the loop wrapped in a sequence frame is a goo dindication that you need to learn much more about data flow programming techniques. With the amount of global variables you are using your program is probably ripe with race conditions. In addition, you did not include any of the subVIs so we cannot see what is happening in them.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 6
(4,142 Views)