NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Labview subvi in parallel

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

Download All
0 Kudos
Message 1 of 3
(2,081 Views)

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.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,050 Views)

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

0 Kudos
Message 3 of 3
(2,038 Views)