简体   繁体   English

如何通过 CAPL 脚本打开配置文件

[英]How to open a configuration file through CAPL script

I have created a configuration that has a panel with options to open another configuration.我创建了一个配置,其中包含一个面板,其中包含打开另一个配置的选项。 When an option is selected from the panel, the corresponding configuration should open in Canoe.当从面板中选择一个选项时,相应的配置应在 Canoe 中打开。 Is there any way to do this through CAPL scripting?有没有办法通过 CAPL 脚本来做到这一点? Are there any built-in functions available in CAPL? CAPL 中是否有任何内置函数可用?

CAPL API offers a way to start RT configurations, if they were previously download to an RT device. CAPL API 提供了一种启动 RT 配置的方法,前提是它们之前已下载到 RT 设备。 For instance:例如:

 dword StandaloneConfigOpen(CHAR rtcfgFileName[], dword stopCurrentMeasurement, dword startNewMeasurement, dword returnToActiveConfig)

Opens the RTCFG file with the given name as standalone configuration.打开具有给定名称的 RTCFG 文件作为独立配置。

  • The given standalone configuration file must have been downloaded to the device before.给定的独立配置文件之前必须已下载到设备。
  • The command is only allowed while standalone mode is activated.仅当激活独立模式时才允许使用该命令。
  • If standalone measurement is currently running the command is deferred until end of measurement (unless overwritten by another subsequent open command).如果当前正在运行独立测量,则该命令将延迟到测量结束(除非被另一个后续打开命令覆盖)。
  • If standalone measurement is not running but standalone mode is activated the file is loaded (and indicated in the Standalone Manager GUI) but measurement is not started automatically.如果独立测量未运行但激活了独立模式,则加载文件(并在独立管理器 GUI 中指示)但不会自动开始测量。

If you need to execute more complex operations, or open a non-RT configuration, you'll have to rely on COM components or write your own routines.如果您需要执行更复杂的操作,或打开非 RT 配置,则必须依赖 COM 组件或编写自己的例程。

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

相关问题 如何打开格式化为.NET配置文件的文件以获取System.Configuration.Configuration对象 - How to open a file formatted as a .NET config file to get a System.Configuration.Configuration object 如何从配置文件中指定的内容启用脚本中的功能? - How to enable functions in script from what is specified in configuration file? 如何在不使用 VB 脚本的情况下通过命令提示符打开特定的 CANoe 配置? - How to open a specific CANoe configuration through command prompt without using VB scripts? 如何分离配置文件? - How to separate configuration file? 如何打开特定配置的打p套件? - How to open burp suite with particular configuration? C#:如何打开配置Pin对话框? - C# : How to open configuration Pin Dialog? 如何处理CakePHP中的配置文件 - how to deal with configuration file in CakePHP 通过 UI 提供的 jenkins 管道的配置存储在哪个文件中? - In which file, the configuration for jenkins pipeline provided through UI is stored? 如何保护我的配置文件 - How to Protect My Configuration File 如何通过 csv 文件读取输入并将 output 写入 output 文件中的电源 Z2591C98B701124B562E? - How to read input through a csv file and write the output in an output file in power shell script?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM