完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在编写一个VB6程序来配置我的DSOX3024以测量电容的ESR。
我的程序使用100 Khz,1伏RMS正弦波激活wavegen。 例如,当我将垂直通道连接到wavegen输出和100 uF电容时,RMS电平下降。 该程序根据50欧姆阻抗和1伏RMS减去电容两端的电压计算电流。 然后,它根据电容两端的电压除以电流计算ESR。 问题是,当我的程序配置每个div 10mv的垂直通道时,对于100uF / 16v电解电容,该标度就可以了。 当我连接1 uF / 50伏电解电容时,电平会大大增加并且波形会被切断。 有没有办法查询通道或确定何时剪切波形? 我可以使用查询自动调整程序中每个div的伏特数。 Jack Albert Willco Electronics。编辑:Willco788于2013年11月9日上午11:31 以上来自于谷歌翻译 以下为原文 I'm writing a VB6 program that configures my DSOX3024 to measure a capacitor's ESR. My program activates the wavegen with a 100 Khz, 1 volt RMS sinewave. When I connect the vertical channel to the wavegen output and a 100 uF capacitor, for example, the RMS level drops. The program calculates the current based on the 50 ohm impedance and 1 volt RMS minus the voltage across the capacitor. It then calculates the ESR based on the voltage across the capacitor divided by the current. The problem is, when my program configures the vertical channel for 10mv per div, that scale is fine for a 100 uF/16v electrolytic capacitor. When I connect a 1 uF/50 volt electrolytic, the level greatly increases and the waveform clips. Is there a way to query the channel or determine when the waveform is clipped? I can use the query to automatically adjust the volts per div in my program. Jack Albert Willco Electronics. Edited by: Willco788 on Nov 9, 2013 11:31 AM |
|
相关推荐
7个回答
|
|
由于裁剪是在HW中完成的,因此无法以编程方式知道裁剪何时裁剪。
您可以只执行AutoScale,但范围将设置为最佳垂直标度。 免责声明:为了获得更可靠的响应,您应该考虑致电当地的安捷伦技术呼叫中心。 安捷伦论坛在“可用”的基础上进行监控,并不一定是解决技术问题的最快方式。 以上来自于谷歌翻译 以下为原文 Since the clipping is done in HW, there's no way to know, programmatically, when it's clipped. You could just do an AutoScale, and the scope would be set to the optimum vertical scale, though. Al Disclaimer: For more reliable response, you should consider calling your local Agilent Technical Call Center. The Agilent Forums are monitored on an "as available" basis, and aren't necessarily the fastest way to get technical questions answered. |
|
|
|
根据3000X程序员指南,“:WAVeform:DATA”命令将在剪切为低时返回0x01或0x0001的数据点,或在剪切为高时返回0xff或0xffff。
这仅适用于BYTE或WORD格式。 如果您碰巧使用ASCII格式,似乎没有类似的剪辑指示。 -标记 以上来自于谷歌翻译 以下为原文 According to the 3000X Programmer's Guide, the ":WAVeform:DATA" command will return data points with 0x01 or 0x0001 when clipped low, or 0xff or 0xffff when clipped high. This only works with BYTE or WORD format. There doesn't seem to be a similar clipping indication if you happen to be using ASCII format. -mark |
|
|
|
uvysdfydad 发表于 2019-1-14 13:49 “:WAVeform:DATA会将所有全屏波形数据转储到软件的存储缓冲区中。我的程序必须分析数据并确定是否剪切了最小/最大数据点。这太复杂了,会减慢程序的速度。 我也遇到了以下问题:AUToscale CHANnel。当我为通道1执行自动缩放时,范围恢复需要几秒钟。到那时我的软件已经发送了MEASure:VRMS?命令并且结果总是如此 0欧姆。我要么延迟我的程序(这将是不可靠的)或者向示波器发送查询以检测何时自动缩放完成。在示波器屏幕上,DVM确实指示何时剪切波形但我找不到 查询DVM状态的命令。编辑:Willco788于2013年11月11日9:13 PM编辑:Willco788于2013年11月12日上午5:35 以上来自于谷歌翻译 以下为原文 ":WAVeform:DATA would dump all of the full screen waveform data into the software's storage buffer. My program would have to analyze the data and determine if the min/max data points are clipped. That's too complicated and would slow down the program. I'm also having problems with :AUToscale CHANnel. When I execute auto scale for channel 1, it takes several seconds for the scope to recover. By then my software has already sent the MEASure:VRMS? command and the and the results is always 0 Ohms. I either need to delay my program (that would be unreliable) or send a query to the scope to detect when the auto scale is finished. On the scope screen, the DVM does indicate when the waveform is clipped but I cannot find a command that would query the DVM status. Edited by: Willco788 on Nov 11, 2013 9:13 PM Edited by: Willco788 on Nov 12, 2013 5:35 AM |
|
|
|
crhm51900928 发表于 2019-1-14 14:05 >在示波器屏幕上,DVM确实指示波形被剪切的时间,但是我找不到将查询DVM状态的>命令。 “:DVM:电流是多少?” 返回DVM读数。 如果该值被剪切,它似乎返回一个无意义的值(9.9E + 37,通过我的测试)。 -标记 以上来自于谷歌翻译 以下为原文 > On the scope screen, the DVM does indicate when the waveform is clipped but I cannot find a > command that would query the DVM status. ":DVM:CURRent?" returns the DVM reading. And if the value is clipped, it appears to return a nonsensical value (9.9E+37, by my test). -mark |
|
|
|
也许,这只是我,但是...使用AutoScale,并等待它完成,是一个比设置任意比例,检查DVM,设置新的比例,检查DVM等更好的解决方案。免责声明:更多 可靠的响应,您应该考虑致电当地的安捷伦技术呼叫中心。 安捷伦论坛在“可用”的基础上进行监控,并不一定是解决技术问题的最快方式。 以上来自于谷歌翻译 以下为原文 Maybe, it's just me, but... Using AutoScale, and waiting for it to complete, is a better solution than setting an arbitrary scale, checking the DVM, setting a new scale, checking the DVM, etc. Al Disclaimer: For more reliable response, you should consider calling your local Agilent Technical Call Center. The Agilent Forums are monitored on an "as available" basis, and aren't necessarily the fastest way to get technical questions answered. |
|
|
|
嗨,杰克:对于迟到的回答感到抱歉,但直到现在我才有机会阅读你的帖子。
我正在编写一个程序(C#),用于将DSO-3010X示波器用作矢量阻抗分析仪,用于在单个频率或频率范围内测量双端网络的实部和虚部(使用白噪声或伪随机 噪音刺激)我和你的问题类似。 由于我运行连续的一系列测量(用于平均结果),使用AutoScale命令(太慢)是不切实际的,我做的是在每次采集后检查信号削波的证据或使用较小的信号的可能性 比例(用于提高分辨率),如果是这样的话,为下一次采集计算更好的示波器标度(显然,在这种情况下,我拒绝先前的采集)。 为了做到这一点,我写了一些例程,运行速度足够我的范围:如果你愿意,我可以发送给你,但你必须将C#代码翻译成VB6(不应该太困难)。 Ciao,让我知道。 佛朗哥 以上来自于谷歌翻译 以下为原文 Hi, Jack: sorry for the late answer but only now I had a chance to read your post. I am writing a program (C#) for using my DSO-3010X oscilloscope as a Vector Impedance Analyzer for measuring the real and imaginary parts of a two terminals network on a single frequency or over a frequency range (using a White Noise or a Pseudo Random Noise stimulus) and I had a problem similar to your. Since I run a continuous series of measurements (for averaging the results) it is impractical to use the AutoScale command (too slow), what I do is to check, after every acquisition, the evidence of signal clipping or the possibility to use a smaller scale (for increasing the resolution) and, if it is the case, to calculate a better oscilloscope scale for the next acquisition (obviously, in this case, I reject the previous acquisition). For doing that I wrote a few routines, running fast enough for my scope: if you like I can send them to you but you have to translate the C# code to VB6 (shouldn't be too difficult). Ciao and let me know. Franco |
|
|
|
xuyin8425 发表于 2019-1-14 14:38 谢谢你的报价。 可以通过电子邮件发送到repair@willcoele.com,因为范围已经可以检测到剪切。 如果安捷伦在下次固件更新中添加了一个命令来查询它,那就太好了。 怎么样安捷伦? 以上来自于谷歌翻译 以下为原文 Thank you for the offer. It's OK to email it to repair@willcoele.com, Since the scope already can detect clipping. It would be nice if Agilent added a command to query it in the next firmware update. How about it Agilent? |
|
|
|
只有小组成员才能发言,加入小组>>
1230 浏览 0 评论
2351 浏览 1 评论
2160 浏览 1 评论
2026 浏览 5 评论
2908 浏览 3 评论
974浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1231浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 23:37 , Processed in 1.236783 second(s), Total 57, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号