完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我用National Windows CVI编写了一个程序来读取34970A万用表的电压,它可以正常工作。
参见下面的代码void HpVolts(void){double readingings [4]; viPrintf(DataAcqu,“INIT; * OPC n”); //开始阅读频道viPrintf(DataAcqu,“FETCH? n”); viScanf(DataAcqu, “%,4LF n”,&安培;读数); //将读数放入数组中volts1 =读数[1]; //机器输出volts2 =读数[0]; // LoadCell输出} void GpibCard(int OpenClose){//使用HP-IB地址与DataAcqu进行开放式通信“9 “if(OpenClose == 1)//打开GPIB端口{viOpenDefaultRM(& defaultRM); viOpen(defaultRM,“GPIB0 :: 9 :: INSTR”,VI_NULL,VI_NULL,& DataAcqu); viPrintf(DataAcqu, “* RST; * CLS n”); viPrintf(DataAcqu,“CONF:VOLT:DC 10,(@ 101,104) n”); viPrintf(DataAcqu,“ROUT:CHAN:DEL 0,(@ 101,104) n”); viPrintf(DataAcqu,“CONF:DC 10,0.001,(@ 101,104) n”); viPrintf(DataAcqu,“ZERO:AUTO ONCE,(@ 101,104) n”); viPrintf(DataAcqu,“ZERO:AUTO OFF,(@ 101,104) n”); } else {viClose(DataAcqu); //关闭GPIB端口viClose(defaultRM); 我的问题是我现在需要读取1R到16M范围内的十进制框的电阻值我已经使用了类似的代码,但是4线电阻的用户指南中的CONFigure的例子有点令人困惑我需要 电表到自动量程,分辨率为1欧姆,读数高达16M我会感谢任何有编写代码的人从安捷伦34970A读取4线电阻的帮助 以上来自于谷歌翻译 以下为原文 I have written a program using National Windows CVI to read voltages from a 34970A Multimeter and it works ok. See code below void HpVolts(void) { double readings[4]; viPrintf (DataAcqu, "INIT;*OPCn"); // Start reading channels viPrintf (DataAcqu,"FETCH?n"); viScanf(DataAcqu,"%,4lfn",&readings); // Put readings into an array volts1 = readings[1]; // Machine Output volts2 = readings[0]; // LoadCell Output } void GpibCard(int OpenClose) { // Open communication with DataAcqu using HP-IB address "9" if(OpenClose == 1) // Open the GPIB port { viOpenDefaultRM (&defaultRM); viOpen (defaultRM,"GPIB0::9::INSTR",VI_NULL,VI_NULL, &DataAcqu); viPrintf(DataAcqu,"*RST;*CLSn"); viPrintf (DataAcqu, "CONF:VOLT:DC 10,(@101,104)n"); viPrintf (DataAcqu,"ROUT:CHAN:DEL 0,(@101,104)n"); viPrintf (DataAcqu,"CONF:DC 10,0.001,(@101,104)n"); viPrintf (DataAcqu,"ZERO:AUTO ONCE,(@101,104)n"); viPrintf (DataAcqu,"ZERO:AUTO OFF,(@101,104)n"); } else { viClose (DataAcqu); // Close the GPIB port viClose (defaultRM); } } My problem is I now need to read in resistive values from decade boxes in the range 1R to 16M I have used similar code to above but the examaple for the CONFigure in the User Guide on 4 wire resistance is a bit confusing I need the meter to Auto range and have a resolution of 1 ohm, that reading up to 16M I would appreciate help from anyone who has written code to read 4 wire resistance from a Agilent 34970A |
|
相关推荐
1个回答
|
|
您需要的是34970A / 72A在线命令参考,http://www.home.agilent.com/agilent/techSupport.jspx?cc = US& pl = eng& nid = -33261.536881544.08& pid = 1000001313%
3Aepsg%3Apro&安培; pageMode = OV。 你需要的命令是CONF:FRES AUTO,(@。我省略了分辨率参数,因为我发现当你进行自动测距时很难理解。当你查看仅设置分辨率的命令时,你会得到更多相关信息。 ,SENS:RES:RESolution。但首先你要看准确度规格,看看最大分辨率是多少(实际上是“min”,因为你想要看到最小的阻力).16M是在100M范围内测量的。精度表 显示范围为100.0000 M.这是6 1/2位数,这是34970A数字万用表的最大分辨率。如您所见,如果最后一位数为1,则为100欧姆。所以你看不到1 欧姆在16M。需要一个8 1/2位数字的数字万用表,如3458A.1M范围是最高的范围,可以在34970A上提供1欧姆的分辨率.34970A的默认分辨率是5 1/2位。 它为6 1/2位,你可以从SENS:RES:RESolution命令下的第二个表中看到,你需要设置集成 时间为2,10或20 PLC(电源线循环)。 您可以获得更多的分辨率,从而降低噪音,您可以获得更高的分辨率。这些PLC设置是测量时间和噪声之间的权衡。 我使用命令SENS:RES:NPLC 2,(@)。 N代表N,因为你可以有50 Hz或60 Hz的线路频率)。 以上来自于谷歌翻译 以下为原文 What you need is the 34970A/72A on line Command Reference, http://www.home.agilent.com/agilent/techSupport.jspx?cc=US&lc=eng&nid=-33261.536881544.08&pid=1000001313%3Aepsg%3Apro&pageMode=OV. The command you need is CONF:FRES AUTO,(@. I have left out the resolution parameter because I find it difficult to understand when you are auto ranging. You get more information on this when you look at the command that just sets the resolution, SENS:RES:RESolution. But first you should look at the accuracy spec's to see what the max resolution is (actually "min" because you want the smallest resistance you can see). 16M is measured on the 100M range. The accuracy table shows the range as 100.0000 M. That is 6 1/2 digits which is the maximum resolution that the 34970A DMM is cabple of. As you can see, if that last digit is 1, it's 100 ohms. So you can't see 1 ohm in 16M. That requires an 8 1/2 digit DMM like the 3458A. The 1M range is the highest range that can give you 1 ohm resolution on the 34970A. The default resolution for the 34970A is 5 1/2 digits. To set it to 6 1/2 digits, you can see from the second table under the SENS:RES:RESolution command, you need to set the integration time to 2, 10, or 20 PLC (Power Line Cycles). You get more bits of resolution, which results in lower noise, the higher you go, These PLC settings are a trade off between measurement time and noise. I use the command SENS:RES:NPLC 2,(@). The N is for N because you can have 50 Hz or 60 Hz line frequency). |
|
|
|
只有小组成员才能发言,加入小组>>
1224 浏览 0 评论
2348 浏览 1 评论
2158 浏览 1 评论
2024 浏览 5 评论
2904 浏览 3 评论
965浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
701浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
801浏览 0评论
1224浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 17:23 , Processed in 1.501075 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号