zoukankan      html  css  js  c++  java
  • 修改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:

    1. Copy the directory <TestStand>ComponentsNIModelsTestStandModels to <TestStand>ComponentsUserModelsTestStandModels.
    2. Open <TestStand>ComponentsUserModelsTestStandModels modelsupport2.prj file 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
    3. 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);
    4. Save the file.
    5. Compile the project in CVI.
      1. In CVI 2012 and earlier: select Build»Create Debuggable Dynamic Link Library.
      2. In CVI 2013 and later: select Build»Target Type»Dynamic Link Library and then Build»Build.
     

    In TestStand 4.1 and later:

    1. Copy the directory <TestStand>ComponentsModelsTestStandModels to <TestStand Public>ComponentsModelsTestStandModels, if those files are not already copied there.
    2. Open <TestStandPublic>ComponentsModelsTestStandModels modelsupport2.prj file 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
    3. 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.
     
    https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000015ClhSAE&l=zh-CN&OpenDocument=
  • 相关阅读:
    C# 线程安全的操作控件
    C# 使用HttpListener创建简易Web服务器
    PHP mjpeg 连续图片格式生成
    XAMPP PHP开发环境安装备忘
    dnspod CURL模拟访问
    在MAC上使用Fiddler抓包手机
    解决关于docker: Error response from daemon: endpoint with name v5 already exists in network bridge.
    【电子政务】政务服务事项相关概念知识:事项办理深度 四级标准
    转:脱机环境下window 使用pycharm 连接cx_oracle 连接数据库
    转 shell if判断写成一行 和 shell中如何注释掉一段话
  • 原文地址:https://www.cnblogs.com/xihong2014/p/12060233.html
Copyright © 2011-2022 走看看