完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用KEYSIGHT 34972A DAQ。
我试图用两个不同类型的传感器从两个不同的通道读取温度,如果我cofig。 一次尝试使用READ读取? 它读取两个通道值,但我想读一次一个通道,我试图发送READ?(@ 201)但它显示错误-103。 请打电话给我是否有可能阅读个人数据..还有一件事,我可以改变接收数据格式现在它显示+ 2.39870000E + 01这样,这里temp。 是23.9度。 在LABWINDOW中处理这种格式有点困难。 等待快速回复。 谢谢 :) 以上来自于谷歌翻译 以下为原文 HI I am using KEYSIGHT 34972A DAQ. I am trying to read temperature from two different channel with 2 different type sensor , if i cofig. once and try to read using READ? its reading both channel value but i want read once one channel , i trying to send READ?(@201) but its showing an error -103. please tel me is it possible to read individual data.. And one more thing ,Can i change receive data format now its showing +2.39870000E+01 like that ,here temp. is 23.9 deg c. its somewhat difficult to handle this format in LABWINDOW. Waiting for Quick reply . Thank you :) |
|
相关推荐
16个回答
|
|
对于READ,我很抱歉?
(@)在34972A中。 我很久以前就报告过这个缺陷。 读? 命令不接受任何参数并返回所有通道是当前diefined通道列表。 使用MEAS:VOLT:DC? (@)命令。 此表单将频道列表重置为您放置的任何内容。 无法更改数据格式。 它是标准的IEEE 64位浮点数据格式。 成千上万的客户使用这种格式的Labview没有任何问题。 我没有听说过实验室Windows。 以上来自于谷歌翻译 以下为原文 I'm sorry about the READ? (@) in the 34972A. I reported that defect a long time ago. The READ? command does not accept any parameter and returns all channels is the currently diefined channel list. Use the MEAS:VOLT:DC? (@) command. This form resets the channel list to whatever you put there. There is no way to change the data format. It is the standard IEEE 64-bit floating point data format. Thousands of customers use Labview with this format without any problems. I don't hear much about Lab Windows. |
|
|
|
关于数据格式的答案是针对34972A的原始数据格式。 我使用的是Keysight VEE。 我将数据读入字符串变量并将字符数设置为5,它显示从MEAS返回的数字:TEMP? TC,J,(@ 101)为+24.3,但完整的64位浮点数仍然是正在使用的并发送到实数数据文件。 以上来自于谷歌翻译 以下为原文 That answer regarding the data format was for the raw data format from the 34972A. I use Keysight VEE. It I read the data into a string variable and set the number of characters to 5, it displays the number returned from MEAS:TEMP? TC,J,(@101) as +24.3, but the full 64-bit floating point number is still what is being used and sent to real number data files. |
|
|
|
lanziji 发表于 2018-10-3 18:22 嗨,谢谢你的回复。 同样认为我在做。 Ya检查“MEAS :: TEMP TC,K,(@ 201)”而不是“CONF:TEMP TC,K,(@ 201)”,但它给出的+2.28不是+22.8。 它是否正确 。? 以上来自于谷歌翻译 以下为原文 Hi, Thank you for your response . Yes same think i am doing . Ya checked with "MEAS::TEMP TC,K,(@201)" instead of "CONF: TEMP TC,K,(@201)" but its gives +2.28 not +22.8 . Is this correct .? |
|
|
|
xncvywyerwe 发表于 2018-10-3 18:40 对不起。 我把你带入歧途。 当你截断一个字符串时,它就是这样做的,并给你前5个字符。 字符串变量对指数一无所知。 正确的方法是将数据读入64位实数,但在此之前将64位实数变量属性设置为4位有效数字。 然后你会得到22.8。 “+”符号通常会被抑制,只有符号“ - ”才会显示。 以上来自于谷歌翻译 以下为原文 I'm sorry. I lead you astray. When you truncate a string, it does exactly that and gave you the first 5 characters. The string variable doesn't know anything about the exponent. The correct way to do this is to read the data into a 64-bit real, but before that set the 64-bit real number variable properties to have 4 significant digits. Then you will get 22.8. The "+" sign will normally be suppressed and you will only see a sign if it is "-". |
|
|
|
HI Tomc,谢谢你的回复。 你有任何想法,我得到一个viread超时错误。 是否需要设置超时以克服此问题? 以上来自于谷歌翻译 以下为原文 HI Tomc, Thanks for reply ,. DO you have any idea , i am getting an viread time out error . is it need to set timeout for overcome this issue? |
|
|
|
我很抱歉34972A SCPI Command Reference尚未得到纠正。
读? (@ 以上来自于谷歌翻译 以下为原文 I apologize that the 34972A SCPI Command Reference has not yet been corrected. READ? (@ |
|
|
|
HI我正在尝试使用kesight 34972A DAQ系统测量频率。 我发送命令如下所述,但其读取值为0。 但有时它会给出正确的价值。 大多数时候它无法读取frq。 请说明哪里出错了。 请给我一个解决方案。 strcpy(stringinput,“CONF:FREQ(@ 112:115)”); //配置ch 112到115为freq。 (我们的范围是40到80 KHz)status = viWrite(instr,(ViBuf)stringinput,(ViUInt32)strlen(stringinput),&amp; writeCount); if(status {status = viClose(instr);} Delay(8); strcpy(stringinput,“ROUT:SCAN(@ 112:115)”); // scan frq.channel status = viWrite(instr,(ViBuf)stringinput ,(ViUInt32)strlen(stringinput),&amp; writeCount); if(status {status = viClose(instr);} Delay(5); strcpy(stringinput,“READ?”); // scan frq.channel status = viWrite (instr,(ViBuf)stringinput,(ViUInt32)strlen(stringinput),&amp; writeCount); if(status {status = viClose(instr);} status = viRead(instr,testarray,65,&amp; retCount); // /在数组中读取和存储数据也使用strcpy(stringinput,“MEAS:FREQ?(@ 112:115)”)进行测试;而不是READ?命令,但同样的问题。编辑:patilk于2015年11月25日4:19 上午 以上来自于谷歌翻译 以下为原文 HI I am trying to measure frequency using kesight 34972A DAQ system . I am sending command as mention below , but its reading 0 value . but sometimes its gives correct value . most of time its fails to read frq. please suggest where its going wrong . Please give me an solution . strcpy (stringinput,"CONF:FREQ (@112:115)"); // config ch 112 to 115 as freq. (our range is 40 to 80 KHz) status = viWrite (instr, (ViBuf)stringinput, (ViUInt32)strlen(stringinput), &writeCount); if (status < VI_SUCCESS) { status = viClose (instr); } Delay(8); strcpy (stringinput,"ROUT:SCAN (@112:115)"); //scan frq. channels status = viWrite (instr, (ViBuf)stringinput, (ViUInt32)strlen(stringinput), &writeCount); if (status < VI_SUCCESS) { status = viClose (instr); } Delay(5); strcpy (stringinput,"READ?"); //scan frq. channels status = viWrite (instr, (ViBuf)stringinput, (ViUInt32)strlen(stringinput), &writeCount); if (status < VI_SUCCESS) { status = viClose (instr); } status = viRead (instr,testarray, 65, &retCount); /// read and store data in array Also tested with strcpy (stringinput,"MEAS:FREQ? (@112:115)"); instead of READ?command , but same issue . Edited by: patilk on Nov 25, 2015 4:19 AM |
|
|
|
使用Keysight IO库连接专家SCPI命令窗口或Command Expert发送时,此命令序列可以正常工作。 两者都是免费下载。 你的信号幅度是多少? 我假设您仔细检查了您的连接。 您可能希望在通道端子上放置短路并进行电阻测量,以确保继电器正常。 这是34901A多路复用器模块吗? 以上来自于谷歌翻译 以下为原文 This command sequence works correctly for me when sent with the Keysight IO Libraries Connection Expert SCPI command window or with Command Expert. Both are free downloads. What is your signal amplitude? I assume that you checked your connections carefully. You might want to put shorts across the channel terminals and do a resistance measurement to be sure the relays are okay. Is this though a 34901A multiplexer module? |
|
|
|
lanziji 发表于 2018-10-3 19:40 嗨,谢谢你的信息。 实际上,相同的引脚用于电压测量,其工作正常,但frq不起作用。 和继电器也工作正常。 我正在使用键盘34972A模块。 以上来自于谷歌翻译 以下为原文 HI, Thank you for your information . Actually same pin is using fro voltage measurement its working fine but frq is not working. and relay also working fine . I am using keysight 34972A module. |
|
|
|
34972A是一款数据记录仪。 它的后部有三个插槽用于插件模块。 最常见的插件模块是34901A 20通道多路复用器模块,用于将通道一次一个地切换到进行测量的内部DMM。 在此字符串的前面,您显示您正在发送命令以测量4个通道上的频率:通道212,213,214和215,它们是多路复用器模块上的通道,很可能是插槽2中的34901A。可能问题是 您是否已发送命令来测量所有这4个通道,但是您只从一个通道读回测量结果? 以上来自于谷歌翻译 以下为原文 The 34972A is a datalogger instrument. It has three slots in the back for plug-in modules. The most common plug-in module is the 34901A 20 channel multiplexer module that is used to switch the channels one at a time into the internal DMM which makes the measurements. Earlier in this string you showed that you are sending the command to measure frequency on 4 channels: channels 212, 213 ,214, and 215, which are channels on the multiplexer module, most likely the 34901A, in slot 2. Could the problem be that you have sent the command to measure all 4 of these channels, but that you are reading back the measurement result from only one channel? |
|
|
|
lanziji 发表于 2018-10-3 19:56 嗨不,我正在阅读所有5个频道。 以上来自于谷歌翻译 以下为原文 hi No, I am reading all 5 channels . |
|
|
|
我不明白这意味着什么:“实际上相同的引脚正在使用电压测量它的工作正常,但frq不工作。”什么“pin”是什么意思? 你的意思是说你使用的是同一个频道吗? 换句话说,您首先尝试测量通道上的电压然后尝试在同一通道上读取频率吗? 这与您上面的C代码程序段不一致。 我对该代码序列也有一些疑问。 每个命令成功发送后,为什么要关闭仪器会话? 我将把它发送给IO库支持团队。 他们是C程序员,也熟悉34972A和LabView。 以上来自于谷歌翻译 以下为原文 I don't understand what this means: "Actually same pin is using fro voltage measurement its working fine but frq is not working. " What doe "pin" mean? Do you mean that you are using the same channel? In other words are you first trying to measure voltage on a channel and then trying to read frequency on that same channel? This does not agree with your C code program segment above. I also have some doubts about that code sequence. Why are you closing the instrument session after each command is successfully sent? I am going to send this on to the IO libraries support team. They are C programmers and are also familiar with the 34972A and LabView. |
|
|
|
lanziji 发表于 2018-10-3 20:17 嗨,是的。 我正在使用相同的通道进行两种测量。 当我没有成功发送时,我正在关闭仪器会话。 我正在使用labwinodw。 以上来自于谷歌翻译 以下为原文 hi yes . I am using same channel for both measurement. and i am closing instrument session when its not sent successfully . I am using labwinodw for this . |
|
|
|
您的IO超时设置可能太短。 从开机状态开始,配置和回读MEAS:VOLT:DC(@ 101:105)的结果需要1.6秒。 使用默认设置,MEAS:FREQ? (@ 101:105)输入短路需要8.4秒,即频率= 0.大部分是测量配置设置时间。 默认的内部计数器测量操作超时为50 ms(20 Hz参见用户指南的第135页。),这就是我首先执行CONF然后只读READ部分时所看到的内容。 这指出了为频率测量预先配置5个独立通道的速度优势。 有关如何进行频率和周期测量的完整说明,请参见“用户指南”的第298页。 以上来自于谷歌翻译 以下为原文 You probably have your IO timeout setting too short. From the power on state is takes 1.6 seconds to send, configure, and read back the results from MEAS:VOLT:DC (@101:105). With the default settings, MEAS:FREQ? (@101:105) take 8.4 seconds with a shorted input, i.e. frequency = 0. Most of that is the measurement configuration setup time. The default internal counter measurement operation timeout is 50 ms (20 Hz see page135 of the User's Guide.), and that is what I see when I do the CONF first and then just time the READ part. This points out the speed advantage of having 5 separate channels pre-configured for frequency measurements. See page 298 of the User's Guide for a full description of how frequency and period measurements are made. |
|
|
|
lanziji 发表于 2018-10-3 20:46 嗨谢谢:)是的,我测试了所有三个范围(慢中速和快速)。 我得到仪器的奇怪行为一段时间它给出了正确的结果,有时它的值是0Hz。 我不知道什么是真正的问题。 如果你不介意,你可以发送示例代码或配置seq。(正确的seq。)所以我可以在这里测试它。编辑:patilk于2015年12月7日上午10:08 以上来自于谷歌翻译 以下为原文 HI Thank you :) Yes , I tested with all three ranges (slow medium and fast ) . i am getting strange behavior of instrument some time its gives proper result and some times its value is 0Hz. I don't know whats the real issue. If you don't mind can you send sample code or config seq.(proper seq.) so i can test it here. Edited by: patilk on Dec 7, 2015 10:08 AM |
|
|
|
xncvywyerwe 发表于 2018-10-3 20:55 我的正弦波输入在10秒内从1 kHz扫描到10 kHz并行连接到通道101到105.使用默认设置的单个命令“MEAS:FREQ?(@ 101:105)”需要4.9秒才能执行, 返回2769,3132,3496,3859和4222,或等效取决于我开始的位置。 就这么简单。 附件是Keysight Command Expert(免费下载)序列文件,首先测量频率,然后测量这些通道上的DC电压。 希望能帮助到你。 以上来自于谷歌翻译 以下为原文 I have sine wave input sweeping from 1 kHz to 10 kHz in ten seconds connected in parallel to channels 101 through 105. The single command, "MEAS:FREQ? (@101:105)" with the default settings takes 4.9 seconds to execute and returns 2769, 3132, 3496, 3859, and 4222, or the equivalent depending on where I start. It's as simple as that. Attached is a Keysight Command Expert (free download) sequence file that first measures frequency and then measures DC voltage on those channels. Hope it helps. 附件 |
|
|
|
只有小组成员才能发言,加入小组>>
1221 浏览 0 评论
2346 浏览 1 评论
2155 浏览 1 评论
2019 浏览 5 评论
2900 浏览 3 评论
961浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
697浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
797浏览 0评论
1221浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 03:36 , Processed in 2.045607 second(s), Total 78, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号