NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

use same device in different executions ( Parallel mode )

Solved!
Go to solution

Hi everyone..

I use a Siemens LOGO! as my I/O expander in my tester device. I've been connected to LOGO! using an standard Modbus DLL through teststand. 

I have no problem in sequential mode, but in Parallel mode in which I have two sockets of test, I get error. in order to not get error I have to initial and connect to LOGO! everytime the test socket changes.. 

 

is there any approach to Initial and connect to LOGO! once, and then just communicate with it in difference places in difference test sockets ?

 

this is Error message:

 

ericmateovisan_0-1614410961405.png

 

and I've also attached the sequence file .

 

thanks in advance

Eric

 

0 Kudos
Message 1 of 3
(1,051 Views)
Solution
Accepted by topic author ericmateovisan

Hello Eric,

 

The PreUUTLoop occurs once each execution has been launched - one for each TestSocket. So I guess it's too late to initiate a ressource shared between executions. I think that the ProcessSetup callback shoud be a better choice, because it is called before Initialize TestSockets sequence call in Test UUTs execution entry point (default ParallelModel.seq).

 

Then, in terms of shared ressource, the reference you get from Init action step has to be stored somewhere the two execution / test socket can have an access to it. An easy way of doing so is to set Sequence File Globals to All Executions Share the Same File Globals in Sequence File Properties:

 

SeqFileProperties.png

 

Be carefull that it applies to all FileGlobals (potential side effects). StationGlobals should work, but I really don't like this option (StationGlobals are not meant for dynamic execution data - IMHO). An other way of storing such shared reference could be the TemporaryGlobals, but it's a bit more tricky to debug, because the variable has to be defined programmatically. So it's more complicated to check expressions that will use TemporaryGlobals.

 

Hope this helps,

 

 

Message 2 of 3
(985 Views)

Hello Mathieu_R..

Thank you for your complete explanation 🤗 I really appreciate it.

I've tested your suggestion solution and share the Siemens LOGO! between two test sockets 🙏🌺

 
0 Kudos
Message 3 of 3
(961 Views)