05-07-2009 04:49 AM
Hello,
My attachment will explain my problem. I am surprised I am not getting an error once when I am calling a VI through invoke node method from Main. But when I try calling VI-2 from VI-1 calls a fault. I have used the same method in both vis. upon clicking continue in the error window opens up the VI-2 from VI-1. Clsoing out VIs in the reverse order does not create any problem.
Thank you for your help.
Kousy
05-07-2009 06:20 AM
05-07-2009 06:33 AM
File name will tell you which is the caller & which one is callee vi. I purposely not closing the Main because there I am running my hardware daqmx device and getting the status via FG to the called VI-1.vi .
05-07-2009 07:16 AM
In Call VI-2 from VI-1 you are not closing a reference to VI-2 that is set to Not Auto Dispose. You need to handle this reference if you are not going to Auto Dispose it.
Also, you need to abort the current vi last. With your existing error cluster wiring, you are not ensuring that the subvi is called before the calling vi is aborted.
05-15-2009 05:36 AM
Hello Thoric,
I have originally tried that way only. When I got error msg only, I just thought of changing auto dispose property and try out. that too did not work. LV not only popped up this error and closed the LV application itself few times.
After somedays when I tried with the original code it didnt create any problem and woking well now. Then I conclude that becos of LV error only I got into mess that day!
Anyway thanks.
Kousy