02-20-2018 10:49 AM
Hallo,
I need to execute a subvi in background (reading data) and after some steps in Teststand, close it and get the array with all data.
For that, i have created a sequence with execution Options: Use New Thread, so the sequence carry on with the new steps in parallel (see picture sequence.png)
In the subvi, i included FP.Open and Hide State (Attached picture read_data.png)). So until here everything was working pretty fine, but when i am trying to close the subvi the system is stopped in this step, crashes. For that i was using the following subvi (Stop.png)
Could you please help me with this??
I would apreciate any idea,
Thanks in advance
02-21-2018 03:00 AM
well you don't need the Exit function in STOP.vi. You don't what to close LabVIEW.
Also pop a Close Reference function after the FP.Close.
02-21-2018 09:22 AM
Thanks so much for your reply.
I was trying to do it with the FP.Close and the Close reference as you indicated in your email, but with that, i only close the Front Panel and the subvi is still running, so my teststand program crashes.
I was also trying to do it with "Abort VI" but i am getting the following error
"Error 1000 occurred at Invoke Node "
Any idea how should i proceed??
Thanks again for your time