简体   繁体   中英

How to execute the same Python scripts in parallel in TestStand?

I am using TestStand with a setup consists of 2 sockets (DUTs). Each DUT is connected with a serial interface to send/receive datae. Now I have a pyhton script which opens the serial interface and exchange data. The python script uses the Com-Port number as input parameter.

So far the python script works for DUT 1 or DUT2 without any problem. Now I would like to implement and use this python sript in TestStand.

Questions:

  • is it possible to use TestStand to execute this python script in parallel?
  • if yes, how do I need to setup the TestStand in order to run the test in parallel?

When using the batch model I do have access to both DUTs but the data are not coming in parallel and rather in sequence (first DUT1 then DUT2). So I assume there is something wrong in the setup of TS.

Thanks

Yes it is possible to do this in parallel in TestStand.

You would want to use the asynchronous function. Here is an example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM