LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi running normal when alone but not inside main vi

Solved!
Go to solution
I'm afraid that's about all I can do without seeing your proprietary stuff, but Ray or Mike will probably still be able to help.
Message 21 of 29
(1,994 Views)
Solution
Accepted by Mathan

I too thought it was (and probably is) a race condition...

Here is a little trick you can try..

Go into VI property.  Go into Window Appearance and select Customize.

Put a checkmark at "Show Front Panel when Called" and a checkmark at "Close Afterwards if originally closed"

Run your VI.  If it is better, then maybe you need to put some additional delay...  Humm... although I don't like delays..   😮

Message 22 of 29
(1,984 Views)

JoeLabView wrote:

Humm... although I don't like delays..   😮




Yeah, that seems like it would be masking the problem instead of solving it, which means it could show up somewhere later and be just as confusing
Message 23 of 29
(1,978 Views)

Totally agree, but when you can't see the code, that's about as much as we can do to pinpoint what type of problem there is.

Maybe it's something else.. Something we can't see..

You see? 😉

Message 24 of 29
(1,975 Views)
lol
 
Yeah, the best I can guess is make sure all your VIs enforce dataflow
Message 25 of 29
(1,971 Views)

JoeLabView wrote:                       Put a checkmark at "Show Front Panel when Called" and a checkmark at "Close Afterwards if originally closed"

Well i thought of doing it as last option. But still as per suggestion, i will have to follow it.


Run your VI.  If it is better, then maybe you need to put some additional delay...  Humm... although I don't like delays..   😮

I had used more more and more delays. But no use.
 
I will post if i found the things work.....
 
Thanks,
Mathan
Message 26 of 29
(1,928 Views)
Did I understand correctly that opening the front panel when called didn't help?
 
In that case, the problem may well be elsewhere.
 
Is this the same project that contains Co1.vi & doctor.vi?
 
R
Message 27 of 29
(1,916 Views)

JoeLabView wrote:
Did I understand correctly that opening the front panel when called didn't help?

Dear JLV,
 
Opening the fp when called helped really. It works fine. The problem now is when creating exe, error popups. I explained in a seperate thread. Follow this link.
 
Thanks,
Mathan
0 Kudos
Message 28 of 29
(1,900 Views)

OK... now makes sense....  got confused 😉

Glad it works.

R

Message 29 of 29
(1,890 Views)