Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

panel - 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. Is there any way to do this through CAPL scripting? Are there any built-in functions available in CAPL?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

CAPL API offers a way to start RT configurations, if they were previously download to an RT device. For instance:

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

Opens the RTCFG file with the given name as standalone configuration.

  • 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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...