完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一系列scp文件,我想用来生成wfm文件。
我想把它们放在'批处理'文件中。 我可以看到Signal Studio的各种风格都附带了一个API(例如,N7624API),但是我无法开始使用API。 我更喜欢在vb脚本(vbs)中这样做,因为我可以使用一个简单的编辑器(记事本)。 有人为此有一个示例vbs脚本吗? 或者,我可以创建一个CSharp应用程序 - 这个例子怎么样? 文档很好,但不提供示例项目等。谢谢 以上来自于谷歌翻译 以下为原文 I have a series of scp files that I would like to use to generate wfm files. I would like to put these in a 'batch' file. I can see that the various flavors of Signal Studio come with an API (e.g., N7624API) but I am having trouble getting started using the API. I would prefer to do this in vb script (vbs) since I can use a simple editor (notepad) for this. does anyone have a sample vbs script for this? Alternatively, I can create a CSharp application - how about an example of this? The documentation is good on details but doesn't provide sample projects, etc. -Thanks |
|
相关推荐
3个回答
|
|
Hi - Attached是一个如何加载N7624B .scp文件,生成波形,然后使用CSharp(C#)播放它的示例。
您将需要:1)添加引用2)设置IO连接以匹配您的源 - 字符串inst =“tcpip0 :: xxx.xxx.xxx.xxx :: INSTR”; 3)指向存储的.scp文件 - m_API.OpenSettingsFile(“设置文件名”); 问候 - 以上来自于谷歌翻译 以下为原文 Hi - Attached is an example of how to load a N7624B .scp file, generate the waveform, then play it out using CSharp (C#). You will need to: 1) Add References 2) Set the IO connection to match your source - string inst = "tcpip0::xxx.xxx.xxx.xxx::INSTR"; 3) Point to you stored .scp file - m_API.OpenSettingsFile("Settings file name"); Regards - 附件
|
|
|
|
|
|
|
|
嗨Jerry - 使用Microsoft Visual C#.NET或类似的IDE,打开API_TEST项目(... Samples ControlByGUI API_TEST.sln)。
这将显示具有两个API模式选择的.NET API图形用户界面请尝试以下过程:1)确保已将所有项目,解决方案,资源,配置和源文件添加到当前解决方案中。 2)构建解决方案,没有错误。 3)如果没有错误运行解决方案。 现在应该弹出用户程序窗口4)为API模式选择“With GUI”按钮。 这应该启动N7624B GUI 5)在用户程序窗口的“输出设备”文本框中输入E4438C的I / O地址。 6)单击“配置硬件”按钮。 7)N7624B GUI窗口现在应显示“Ready | Connected”(左下角)8)在User Program菜单中,单击“Generate”按钮。 您应该在N7624B GUI窗口中看到活动9)单击“下载”按钮。 您应该再次在N7624B GUI窗口中查看活动以及查看E4438C显示的波形加载条如果您遇到问题,请报告确切的错误及其发生的确切步骤。 我希望这有帮助 - 以上来自于谷歌翻译 以下为原文 Hi Jerry - Using Microsoft Visual C# .NET, or a similar IDE, open the API_TEST project (...SamplesControlByGUIAPI_TEST.sln). This displays a .NET API graphical user interface with two API mode selections Please try the following procedure: 1) Make sure that all of your project, solution, resource, configuration, and source files have been added to the current solution. 2) Build the solution with no errors. 3) If no errors run the solution. the User Program window should now pop up 4) Select “With GUI” button for the API mode. this should start up the N7624B GUI 5) Enter the I/O address of your E4438C in the “Output Device “ text box found in the User Program window. 6) Click on the “Config Hardware” button. 7) The N7624B GUI window should now display “Ready|Connected” (lower left corner) 8) In the User Program menu click on the “Generate” button. you should see activity in the N7624B GUI window 9) Click on the “Download” button. You should again see activity in the N7624B GUI window as well as see the waveform loading bar displayed by your E4438C If you run in to problems please report the exact error and the exact step in which it occurred. I hope this helped - |
|
|
|
只有小组成员才能发言,加入小组>>
1272 浏览 0 评论
2371 浏览 1 评论
2187 浏览 1 评论
2061 浏览 5 评论
2944 浏览 3 评论
1091浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
746浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
912浏览 0评论
1276浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 02:38 , Processed in 1.365028 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号