完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图通过SCPI命令触发扫描协议。
我希望能够将触发器设置为“自动”,并且相当于按下机器上的触发按钮。 我搜索程序员指南和命令专家,只找到使用手动触发器的命令。 有没有办法将触发器设置为自动,然后使用TRIG:ALL:IMM命令触发电源? 我目前的代码如下。 现在它加载所有内容并按照预期显示图形,但它似乎没有触发。 首先,加载包含所有扫描参数的状态文件,然后:DISP:ENAB ON DISP:VIEW GRAP TRIG:ALL:IMM(@ 1:2)此时图像显示,它应该是新触发的数据集 ,但它只显示最后收集的数据。 我也试图从电源获得屏幕转储。 我使用了HCOP:SDUM:FORM JPG和HCOP:SDUM:DATA? 命令并返回一些内容,但我不确定如何处理数据并将其转换为可查看的格式。 妮可,任何见解都会受到赞赏 以上来自于谷歌翻译 以下为原文 I am trying to trigger a sweep protocol through SCPI commands. I want to be able to set the trigger on "auto" and do the equivalent of pressing the trigger button on the machine. I scoured programmers guides and command expert and only found commands to use the manual trigger. Is there a way to set the trigger to auto and then use the TRIG:ALL:IMM command to trigger the power supply? My current code is below. Right now it loads everything and brings up the graph like it is supposed to, but it doesn't seem to trigger. First, a state file with all of the sweep parameters is loaded, then: DISP:ENAB ON DISP:VIEW GRAP TRIG:ALL:IMM (@1:2) At this point the image shows and it should be a newly triggered data set, but it just shows the last data collected. I am also trying to get a screen dump from the power supply. I used the HCOP:SDUM:FORM JPG and HCOP:SDUM:DATA? commands and it returns something, but I'm not really sure how to deal with the data and get it into a viewable format. Any insights would be appreciated, Nicole |
|
相关推荐
7个回答
|
|
嗨Nicole,我将把它转发给安捷伦的相应小组。
谢谢! 马特 以上来自于谷歌翻译 以下为原文 Hi Nicole, I am going to forward this to the appropriate group at Agilent. Thanks! Matt |
|
|
|
嗨妮可,我从支持小组那里听到了回复。 这是他们所说的:虽然按钮标记为“触发器”,但其功能相当于SCPI命令“:INIT”。 你需要发送“:INIT”而不是“:TRIG”。 此外,您需要将TRIGGER计数设置为与扫描步骤相同的数字。 ARM源和TRIGGER源都应该是“AUTO”。 关于屏幕转储,你有没有参考下面的编程指南中的1-9页? [ftp://hpyidmk.jpn.agilent.com/dist/dc_para/B2900A/manual/B2900_ProgGuideEN_2.pdf]有一个使用Microsoft Visual Basic .NET软件的示例。 如果您需要任何其他信息,请告诉我。 以上来自于谷歌翻译 以下为原文 Hi Nicole, I have heard back from the support group. Here is what they say: Although the button is labeled “Trigger”, its function is the equivalent to the SCPI command “:INIT”. You need to send “:INIT” instead of “:TRIG”. Besides, you need to set TRIGGER count the same number as the sweep step. Both ARM source and TRIGGER source should be “AUTO”. Regarding the screen dump, have you ever referred Page 1-9 in the programming guide below? [ftp://hpyidmk.jpn.agilent.com/dist/dc_para/B2900A/manual/B2900_ProgGuideEN_2.pdf] There is an example using Microsoft Visual Basic .NET software. Let me know if you need any other information. |
|
|
|
张友芬1 发表于 2019-3-19 18:12 马特,谢谢你的消息。 我确实找到了触发器问题,你可以在上面的帖子中看到。 好像我们在同一时间发布的那样。 我认为我没有看到这个参考。 感谢您的帮助! 妮可 以上来自于谷歌翻译 以下为原文 Matt, Thank you for the information. I did actually figure out the trigger issue as you can see in my post above. Seems like we were posting right about the same time. I don't think I have seen that reference. Thank you for the help! Nicole |
|
|
|
我们同时发布的几率是多少? 那太疯狂了。 如果该示例适合您,请告诉我。 以上来自于谷歌翻译 以下为原文 What are the odds of us posting at the same time? That's pretty crazy. Let me know if that example works for you. |
|
|
|
嗨,马特,我看了一下这个例子,其实我以前见过它。 多数民众赞成我获得了HCOP:SDUM功能的SCPI命令。 但是,因为我使用的是vee而不是Visual Basic,所以我很难在visual basic中找到“FileStream”命令的模拟。 你知道吗? 我现在可以获得二进制块输出,我只需要知道如何格式化或保存它以获得图片。 附上我的vee代码。 妮可 以上来自于谷歌翻译 以下为原文 Hi Matt, I took a look at the example and I actually have seen it before. thats were I got the SCPI commands for the HCOP:SDUM function. However, because I am using vee and not Visual Basic, I am having a hard time finding an analog for the "FileStream" command in visual basic. Do you know of anything? I am at the point were I can get the binary block output and I just need to know how to format or save it to get the picture. My vee code is attached. Nicole 附件
|
|
|
|
我其实只是想通了。 使用带有BinBlock字节数组中的数据的toFile命令,它可以正常工作。 附件是任何感兴趣的人的最终工作代码。 妮可 以上来自于谷歌翻译 以下为原文 I actually just figured it out. Use a toFile command with the data in a BinBlock Byte Array and it works. Attached is final working code for anyone who is interested. Nicole 附件
|
|
|
|
马特,谢谢你传递它。 如果有人有见解,请告诉我。 我想出了触发问题,但如何格式化屏幕转储数据以获取图片仍然是一个问题。 对于任何可能受益的人,我使用以下代码来触发和调用电源中的数据。 DISP:ENAB ON DISP:查看图表格式:DATA ASCii TRIG1:ALL:COUN 50 INIT:IMM:ALL(@ 1)FETC:ARR? (@ 1)READ TEST X STR TRIG2:ALL:COUN 50 INIT:IMM:ALL(@ 2)FETC:ARR? (@ 2)READ TEST Y STR Best,Nicole 以上来自于谷歌翻译 以下为原文 Matt, Thank you for passing it along. Let me know if anyone has insights. I figured out the triggering issue, but how to format the screen dump data to get a picture is still an issue. For anyone who might benefit, I used the following code to trigger and call data from the power supply. DISP:ENAB ON DISP:VIEW GRAP FORM:DATA ASCii TRIG1:ALL:COUN 50 INIT:IMM:ALL (@1) FETC:ARR? (@1) READ TEST X STR TRIG2:ALL:COUN 50 INIT:IMM:ALL (@2) FETC:ARR? (@2) READ TEST Y STR Best, Nicole |
|
|
|
只有小组成员才能发言,加入小组>>
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 16:56 , Processed in 1.647166 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号