修改TestStand Testsocket 从非0开始
Issue Details
I am running the parallel process model or batch model and want my test sockets to be numbered from 1 onwards. Currently my socket number settings are zero based. How do I make this change?
Solution
In order to change test socket numbers you need to edit the modelsupport2 source code. Before doing this, you should first copy over the components to the TestStand user directory. To accomplish these tasks, use the following steps:
In TestStand 4.0 and earlier:
- Copy the directory
<TestStand>\Components\NI\Models\TestStandModelsto<TestStand>\Components\User\Models\TestStandModels. - Open
<TestStand>\Components\User\Models\TestStandModels\ modelsupport2.prjfile in LabWindows™/CVI. If you are working in the parallel process model, openparalleluutdlg.cin the workspace. If you are working in the batch model, openbatchuutdlg.c - For either parallel process model or batch model, search for the line containing the code
- sprintf(tmpNumBuf, "%d", testSocketIndex);
and change this line to
- sprintf(tmpNumBuf, "%d", testSocketIndex+1);
- Save the file.
- Compile the project in CVI.
- In CVI 2012 and earlier: select Build»Create Debuggable Dynamic Link Library.
- In CVI 2013 and later: select Build»Target Type»Dynamic Link Library and then Build»Build.
In TestStand 4.1 and later:
- Copy the directory <TestStand>\Components\Models\TestStandModels to <TestStand Public>\Components\Models\TestStandModels, if those files are not already copied there.
- Open
<TestStandPublic>\Components\Models\TestStandModels\ modelsupport2.prjfile in LabWindows/CVI. If you are working in the parallel process model, open paralleluutdlg.c in the workspace. If you are working in the batch model, open batchuutdlg.c - Follow steps 3-5 from above. The Test UUT panel in TestStand will now show the desired numbering.
Note: The previous steps will not change the numbering of the test sockets in the process model, as doing this would take additional modifications to the process model.
修改TestStand Testsocket 从非0开始的更多相关文章
- samba共享修改匿名用户为非nobody
samba共享修改匿名用户为非nobody 1)linux的samba用户,如果开启匿名用户登陆共享权限,security 设置为 share ,配置如下:[root@centos69:~]$grep ...
- matlab计算矩阵每列非0元素个数
在统计分析中,有时候需要计算矩阵每列非0元素的个数,可以用以下方法: 先用find找到每列不为0的元素index,然后用count计数. 假设有矩阵A[M,N], 结果存在countZeros cou ...
- js中的0就是false,非0就是true及案例
在处理js代码判断真假时经常会这么写. 但fun()可能得到的是数字0,这可不是表示的没有值,但是!js中的数字0就是false,非0就是true. 于是0就被无情的当做false了. 已经被这个坑过 ...
- JS中if判断 非空即为真 非0即为真
1.字符串参与判断时:非空即为真判断字符串为空的方法if(str!=null && str!=undefined && str !='')可简写为if(!str){ ...
- 2017-12-15python全栈9期第二天第七节之x or y ,x 为 非 0时,则返回x
#!/user/bin/python# -*- coding:utf-8 -*-# x or y ,x 为 非 0时,则返回xprint(1 or 2)print(3 or 2)print(0 or ...
- py-统计一个矩阵中每一列的非0数的个数
1.文件类型类似于这样: 不过数据量比这个要更大一点. 2.对应上述数据的运行结果: import matplotlib.pyplot as plt with open('test.txt') as ...
- NYOJ1026 阶乘末尾非0 【模板】
阶乘末尾非0 时间限制:2000 ms | 内存限制:65535 KB 难度:3 描写叙述 我们的问题非常是简单.n! 末尾非0数是几? 比方n=5的时候,n! =120,那么n!末尾非0数是2. ...
- Oracle 数据 查询 一对多 取最新一条非 0 数据
主键id 待查字段 日期 1 6 2019/5/1 1 0 2019/5/2 需求: 找出 ...
- js中的0就是false,非0就是true。
在处理js代码判断真假时经常会这么写. var vale = fun();//从某个地方获取的值. if(!value){ 进入这里表示value为false或不存在 }但fun()可能得到的是数字0 ...
随机推荐
- js动画---一个小bug的处理
对于前面的课程,大家似乎看不出来存在什么问题,一切都很顺利,但是其实是存在一个很大的bug的,这个bug是什么呢?? 我们来看看下面这个程序就知道了 <!DOCTYPE html> < ...
- oVirt-postgresql
连接数据库 方法一: cd /opt/rh/rh-postgresql95/root/bin su postgres ./psql \c engine 执行sql语句即可 方法二: 用pgAdmin访 ...
- jmeter5.1企业级应用功能详解
apache jmeter是100%的java桌面应用程序,它被设计用来加载被测试软件功能特性.度量被测试软件的性能.jmeter可以模拟大量的服务器负载,并且jmeter提供图形化的性能分析. JM ...
- 如果wordpress分类只有一篇文章则直接跳转到文章页
每个项目的需求都不一样,比如最近ytkah的客户提出如果wordpress分类只有一篇文章则直接跳转到文章页,这个实现起来不会很麻烦,几行代码就能搞定,下面就来一起看看吧.打开主题的function. ...
- MapTask工作机制
(1)Read阶段:MapTask通过用户编写的RecordReader,从输入InputSplit中解析出一个个key/value. (2)Map阶段:该节点主要是将解析出的key/value交给用 ...
- Go语言 - 包(package)
在工程化的Go语言开发项目中,Go语言的源码复用是建立在包(package)基础之上的.本文介绍了Go语言中如何定义包.如何导出包的内容及如何导入其他包. Go语言的包(package) 包介绍 包( ...
- [译] 在 UNIX 中,一切皆文件
原文地址:In UNIX Everything is a File 原文作者:ph7spot.com 译文出自:掘金翻译计划 本文永久链接:github.com/xitu/gold-m… 译者:pmw ...
- Manjaro Linux使用1月滚粗记
每个OIer都有对Linux的向往(雾) 这不,一个月前我便看上了Manjaro,主要原因是因为Manjaro软件包全,安装简便,下面就来说说我退回windows的原因: 1.桌面卡顿,我用的gnom ...
- 分布式session共享
一.前言 为什么会出现session共享问题? 客户端与服务器交互时会产生唯一的sessionid用于标记用户,但是在分布式架构中,如果还是采用 session 的方式,用户发起请求,通过 nginx ...
- cogs 999. [東方S2]雾雨魔理沙
二次联通门 : cogs 999. [東方S2]雾雨魔理沙 摸你傻赛高!! /* cogs 999. [東方S2]雾雨魔理沙 原来以为是一道计算几何的题 可是细细一想发现.. 这就是一道dp 由于给定 ...