NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SequenceFileUnload callback starts parallel thread

Solved!
Go to solution

Hello All,

 

I would like to create a SequenceFileUnload callback to my client sequence files, which would start a parallel thread starting a sequence of another sequence file.

This new Thread would perform some actions (access) on the client sequence file itself , but always returns with an error, because the client sequence file is not closed until the parallel thread is running.

I already unchecked the "Automatically Wait for the Thread to Complete..." setting

 

Thank you in advance for you help and time.

CsBihacker

0 Kudos
Message 1 of 5
(2,369 Views)
Solution
Accepted by topic author CsBihacker

I would do it in a new execution.  Executions cannot complete until all threads are completed.  So you can't operate on the file because it won't be done until the thread it spawned completes.  Executions, however, are different.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(2,340 Views)

Thank you for the hint.

Does this mean that an execution entry point is used when running SequenceFileUnload callback?

Which one?

CsBihacker

0 Kudos
Message 3 of 5
(2,315 Views)

I managed to create a new execution, and started this without process model, so this is running after the client sequence file is closed.

 

CsBihacker

0 Kudos
Message 4 of 5
(2,297 Views)

Glad you got it working!!

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(2,291 Views)