From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the same file in all testsockets in parallel model

Solved!
Go to solution

I have parallel model with 4 test sockets. 

All 4 test sockets contains step where .ini file is read/write.

All 4 test sockets are using the same .ini file.

 

If any two or more test sockets want to read/write into same .ini file at the same time program crashes since for test socket .ini file is not available.

 

How can I solve this?

 

 

0 Kudos
Message 1 of 2
(1,881 Views)
Solution
Accepted by topic author AndrazS

Lock the step that is writing the .ini file.

 

Click on the step and in the step Properties click the Synchronization section.  Check the Use Lock to Allow Only One Thread at a Time to Execute the Step box.  You can give it a name of anything you like or just leave it blank and it will use the step ID (which is what you want in this case).

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 2
(1,814 Views)