修改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 ...
随机推荐
- xtrabackup 使用
创建具有完全备份所需的最小权限的数据库用户的SQL示例如下 mysql> CREATE USER 'bkpuser'@'%' IDENTIFIED BY 's3cret';mysql> G ...
- 浅谈JS之Error对象
[前言] 本文主要介绍下JS的Error name相关属性. 当 JS 引擎执行 JS代码时,会发生各种错误. ①语法错误,通常是程序员造成的编码错误或错别字: ②拼写错误或语言中缺少的功能(可能 ...
- WPF系列 —— 控件添加依赖属性
依赖属性的概念,用途 ,如何新建与使用.本文用做一个自定义TimePicker控件来演示WPF的依赖属性的简单应用. 先上TimePicker的一个效果图. 概念 和 用途:依赖属性是对传统.net ...
- Controller的激活(1)
Public interface IController { void Execute(RequestContext requestContext) } Public abstract Class C ...
- 【大数据】HBase启动
zkServer.sh start start-dfs.sh start-yarn.sh start-hbase.sh hbase shell exit http://192.168.1.180:16 ...
- Python下编写Windows自动化测试软件
https://www.jianshu.com/p/be3c46c7a905 uiautomation模块学习笔记 前段时间,由于个人需要,在网上查找了一些关于Windows平台下自动化测试的资料,最 ...
- SpringBoot 过滤器, 拦截器, 监听器 对比及使用场景
1. 过滤器 (实现 javax.servlet.Filter 接口) ① 过滤器是在web应用启动的时候初始化一次, 在web应用停止的时候销毁. ② 可以对请求的URL进行过滤, 对敏感词过滤, ...
- MongoDB shell 2 副本集方法
rs.initiate() rs.addArb() rs.help() rs.printReplicationInfo() 查看到副本集操作日志 rs.remove() 减少副本集节点 r ...
- 在WinDbg中显示和搜索std::vector内容
WinDbg从来都不擅长可视化.尽管Visual Studio一直都有autoexp.dat,而且最近还出现了本机调试器可视化工具,但WinDbg用户不得不满足于转储内存区域和搜索内存来识别模式.另一 ...
- 使用openrc 管理容器中的服务
对于后台任务一般是不建议在容器中运行的,但是如果我们为了简化应用的部署,可能会使用后台任务进行服务的管理,类似的 工具很多,supervisor,systemd , init.d 同时对于docker ...