完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试使用3458A来实时捕获包含从0到4v的周期性斜坡的数据。
我希望在触发后实时捕获FIRST斜坡上的所有数据。 我有一个连接到3458的函数发生器,提供这个波形。 我想捕获并将电压值存储到阵列中以进行后期处理。 我正在使用HP3458A labview驱动程序附带的Labview Application Read Waveform.vi。 使用默认的“样本数”和“采样率”,我得到了预期的数据显示(参见goodwaveform.jpg)。 采样率为50Hz(50个样本/秒)的100个样本捕获2秒的波形。 波形为500mS斜坡,占空比为50%。 这很好。 但是我想仅收集波形的500mS段上的数据,似乎合乎逻辑的是我应该能够将采样率设置为1000个样本/秒(每个样本1ms)并读取500个样本以查看500ms的部分 波形。 显然我错了,因为第二个屏幕截图显示了这些设置的结果。 看起来采样率接近~72个样本/秒而不是期望的1000个样本/秒。 我究竟做错了什么? 附上VI。 。 badwaveform.JPG110.3 KBgoodwaveform.JPG106.9 KB 以上来自于谷歌翻译 以下为原文 I’m trying to use the 3458A to do a real-time capture of the data comprising a periodic ramp that goes from 0 to 4v. I want to do this in REAL TIME capturing all data on the FIRST ramp after the trigger. I have a function generator connected to the 3458 delivering this waveform. I want to capture and store the voltage values into an array for post processing. I’m using the Labview Application Read Waveform.vi that comes with the HP3458A Labview driver. Using the default “number of samples” and “sampling rate” I get the expected data display (see goodwaveform.jpg) . 100 samples at the sampling rate of 50Hz (50 samples/sec) captures 2 seconds of the waveform. The waveform is a 500mS ramp with 50% duty cycle. This is good. However I want to gather data ONLY on a 500mS segment of the waveform, and it seems logical that I should be able to set the sampling rate to 1000 samples/sec (1ms per sample) and read 500 samples to view a 500ms section of the waveform. Obviously I’m wrong because the second screenshot shows the results of those settings. It appears the sampling rate is closer to ~72 samples/sec instead of the desired 1000 samples/sec. What am I doing wrong? VI attached. . 附件
|
|
相关推荐
5个回答
|
|
这个可能很难。
3458A的Labview驱动程序是为了舒适而不是速度而设计的。 如果我的记忆服务正确,那么软件会不断地查询仪器以查看数据是否可用,这会大大减慢速度,而且我很确定他们使用的是OFORMAT和MFORMAT ASCII,这也是一种较慢的方式来发送数据。 总线。 您可能不得不使用签证写入和读取来编写自定义程序,而不是驱动程序来获得您想要的速度。 如果我有时间,我会明白是否可以明天鞭打一些东西,至少是为了让你前进。 您是否反对将数据写入内存,然后将其拉出来? 我正在考虑采用这条路线,以防止数据丢失,如果Labview无法跟上采样率。 我不知道这是否有必要,直到我尝试,但我想我会先花时间在这上面。 从用户角度来看,这是一种较慢的方式,但这样就可以将数据写入内存而无需PC /软件开销。 以上来自于谷歌翻译 以下为原文 This one may be tough. Labview drivers for the 3458A are built for comfort, not for speed. If my memory serves me correct the software is constanly polling the instrument to see if data is available, which greatly slows things down, and I'm pretty sure they use OFORMAT and MFORMAT ASCII, which again is a slower way to send data over the bus. You're probably going to have to write a custom program using visa write and read as opposed to the driver to get the speeds you want. If I have time, I will see if I can whip something up tomorrow, at least to get you going. Are you opposed to writing the data to memory, then pulling it out? I was thinking of going this route just to prevent data loss if Labview can't keep up with the sample rate. I won't know if this is necessary until I try it, but I thought I would ask before I spend time on this. This is a slower way to go about it from the user perspective, but this way you are writing the data to memory without PC/software overhead. |
|
|
|
谢谢! 我会尽我所能的帮助。 以上来自于谷歌翻译 以下为原文 Thank you! I'll take all the help I can get. |
|
|
|
不幸的是,我今天没有时间研究这个问题。 我要出去约一周了。 希望其他一些论坛用户可以跳进去帮忙。 抱歉 以上来自于谷歌翻译 以下为原文 Unfortunately I didn't have time to work on this today. I'm going to be out for about week. Hopefully some other forum user can jump in and help out. Sorry |
|
|
|
仍然需要帮助。 任何接受者? 以上来自于谷歌翻译 以下为原文 Still need help with this. Any takers? |
|
|
|
你好,回到镇上。 附件是我认为适合您的一个例子。 它需要500 rdgs,速率为1000rdgs / sec,并将它们存储在内存中。 然后它绘制数据图。 如果在完成采集后右键单击图表,则可以选择导出数据,这非常方便。 我不确定你是怎么想触发乐器的,所以我只是用TARM SGL触发它。 不确定你是否正在与函数gen或其他东西同步,那么你可能想要使用带有TARM EXT的外部触发器。 如果您有任何疑问,请告诉我。 以上来自于谷歌翻译 以下为原文 Hello, back in town. Attached is an example that I think will work well for you. It takes 500 rdgs at a rate of 1000rdgs/sec and stores them into memory. Then it graphs the data. If you right click on the graph after the aquisition is complete you have the option to export the data, which is very handy. I wasn't sure how you wanted to trigger the instrument, so I just triggered it with a TARM SGL. Wasn't sure if you were synchronizing it with a function gen or something, then you would probably want to use an external trigger with TARM EXT. Let me know if you have any questions. 附件
|
|
|
|
只有小组成员才能发言,加入小组>>
1229 浏览 0 评论
2350 浏览 1 评论
2160 浏览 1 评论
2026 浏览 5 评论
2908 浏览 3 评论
973浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1230浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 18:07 , Processed in 1.589500 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号