简体   繁体   English

如何在 TestStand 中并行执行相同的 Python 脚本?

[英]How to execute the same Python scripts in parallel in TestStand?

I am using TestStand with a setup consists of 2 sockets (DUTs).我正在使用包含 2 个 sockets (DUT) 的设置的 TestStand。 Each DUT is connected with a serial interface to send/receive datae.每个 DUT 都与一个串行接口连接以发送/接收数据。 Now I have a pyhton script which opens the serial interface and exchange data.现在我有一个 pyhton 脚本,它可以打开串行接口并交换数据。 The python script uses the Com-Port number as input parameter. python 脚本使用 Com-Port 号作为输入参数。

So far the python script works for DUT 1 or DUT2 without any problem.到目前为止,python 脚本适用于 DUT 1 或 DUT2,没有任何问题。 Now I would like to implement and use this python sript in TestStand.现在我想在 TestStand 中实现和使用这个 python 脚本。

Questions:问题:

  • is it possible to use TestStand to execute this python script in parallel?是否可以使用 TestStand 并行执行此 python 脚本?
  • if yes, how do I need to setup the TestStand in order to run the test in parallel?如果是,我需要如何设置 TestStand 才能并行运行测试?

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).使用批次 model 时,我确实可以访问两个 DUT,但数据不是并行出现,而是按顺序出现(首先是 DUT1,然后是 DUT2)。 So I assume there is something wrong in the setup of TS.所以我认为TS的设置有问题。

Thanks谢谢

Yes it is possible to do this in parallel in TestStand.是的,可以在 TestStand 中并行执行此操作。

You would want to use the asynchronous function.您可能想使用异步 function。 Here is an example .这是一个例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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