1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨 - 我是编程安捷伦测试设备(N4552A)的新手,也是C#编程的新手。
我为混频器设置了杂散测量(用于下变频器的IM频谱),我想对PNA-X进行编程,以便我可以收集杂散测量数据。 我正在考虑使用标记来查找支线并收集其值,我需要标记根据传递的频率值找到支线。 所以我的问题如下(注意:程序将从PNA-X中的“宏”本地运行):1。我需要更多C#编程示例,大多数“PNA帮助”都是用VB编写的。 哪里可以找到好的例子,所以我可以更好地理解编程结构。 2.如何声明制造商对象3.如何将制造商添加到当前测量中4.如何获取制造商的当前读数5.如何根据给定频率进行标记搜索您的帮助将不胜感激,谢谢。 以上来自于谷歌翻译 以下为原文 Hi - I am new in programming Agilent's test equipment (N4552A) and also new in programming in C#. I setup a Spurious measurement, for a mixer (IM Spectrum for down-converters), and I want to program the PNA-X so that I can collect spur measurement data. I was thinking of using a marker to find the spur and collect its value, I would need the marker find the spur based on a passed frequency value. So my questions are as follows (Note: The program will be running locally from "Macros" in PNA-X): 1. I need more C# programming examples, most of the "PNA Help" are written in VB. Where can find good examples so I can better understand the programming structure. 2. How to declare a maker object 3. How can I add makers to a current measurement 4. How to obtain the maker's current reading 5. How to make the marker search based on a given frequency Your help will be greatly appreciated, thanks. |
|
相关推荐
1个回答
|
|
以下是一些与C#marker相关的方法(来自我的私人存储:-))使用您可能会觉得有用的PNA COM接口:private static PNA.Measurement GetMeasHandle(string measName){PNA.Measurement meas = null;
foreach(PNA.Measurement tmpMeas in pna.Measurements){if(tmpMeas.Name == measName){meas = tmpMeas; 打破; 返回meas; private static PNA.marker GetNextMarker(string measName){PNA.Measurement meas = GetMeasHandle(measName); int markerNum = 1; for(int i = 1; i startFreq){PNAIO.SetupUserRange(measName,startFreq,stopFreq,mrkr.Number); mrkr.UserRange = mrkr.Number; } mrkr.SearchFunction = AgilentPNA835x.NAMarkerFunction.naMarkerFunction_Max; mrkr.Tracking = true; } 以上来自于谷歌翻译 以下为原文 Here are some C# marker related methods (from my private stash :-)) using the PNA COM interface that you might find useful: private static PNA.Measurement GetMeasHandle(string measName) { PNA.Measurement meas = null; foreach (PNA.Measurement tmpMeas in pna.Measurements) { if (tmpMeas.Name == measName) { meas = tmpMeas; break; } } return meas; } private static PNA.marker GetNextMarker(string measName) { PNA.Measurement meas = GetMeasHandle(measName); int markerNum = 1; for (int i = 1; i startFreq) { PNAIO.SetupUserRange(measName, startFreq, stopFreq, mrkr.Number); mrkr.UserRange = mrkr.Number; } mrkr.SearchFunction = AgilentPNA835x.NAMarkerFunction.naMarkerFunction_Max; mrkr.Tracking = true; } |
|
|
|
只有小组成员才能发言,加入小组>>
1285 浏览 0 评论
2373 浏览 1 评论
2192 浏览 1 评论
2064 浏览 5 评论
2948 浏览 3 评论
1105浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
752浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
923浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 09:22 , Processed in 1.408849 second(s), Total 76, Slave 60 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号