是德科技
直播中

李秀云

7年用户 815经验值
私信 关注
[问答]

使用VBA和GPIB命令遇到了计时问题

我正在尝试使用VBA和GPIB命令,但是我遇到了计时问题。
我首先点击运行SGL(单个)然后“init:imm”并请求获取EVM并读取它,但是init:imm的时间需要3秒才能加载并且程序调试。
我放置了Init:Imm之后尝试了* WAI功能,但它没有用。
我也试过* OPC?
命令,但是当我在OpcOk $中读取时,它也显示为“1”,我的evm值读作“”。
(报价中间没有任何东西)。
除了手动延迟之外的任何建议和评论。
我希望Rhode和Schwarz告诉我EVM值何时准备好读取,除了读取“”(空白),如果还没有准备等待它准备就绪,然后读入值。
谢谢_____是一个更好的万人迷。
从别人

以上来自于谷歌翻译


     以下为原文

  I am trying to use VBA and GPIB commands, however I am having a problem with timing. I am first hitting Run SGL (single) and then "init:imm" and requesting Fetch EVM and reading it, however the timing for the init:imm takes 3 seconds for it to load and my program debugs. I tried the *WAI function after I placed the Init:Imm, however it did not work. I also tried the *OPC? command, however when I read in OpcOk$, it also came up as "1" and my evm value read in as "              ". (quotation with nothing in the middle). Any suggestions and comments other than putting in a manual delay. I want Rhode and Schwarz to tell me when the EVM value is ready to read, other than it reading in "          " (blank), if it is not ready for it to wait for it to be ready, and then read in the value.




Thanks

  

回帖(2)

李秀云

2019-8-30 10:35:56
我不能直接谈论我从未使用过的Rhode和Schwartz单元。最好的设备可以在数据准备就绪时设置SRQ标志。
您所要做的就是让您的VEE程序查找要在界面上设置的SRQ,然后您可以预先形成读取数据以获取读数。
您将不得不浏览Rhode& Schwartz手册以了解如何设置它,因为大多数设备都不会设置SRQ,除非它被配置为这样做。
还有其他方法设备可以让programknowdata准备就绪,再次通过手册查看我可以建议的全部内容.GregBigman8424写道:我正在尝试使用VBA和GPIB命令,但是我遇到了计时问题。
我首先点击运行SGL(单个)然后“init:imm”并请求获取EVM并读取它,但是init:imm的时间需要3秒才能加载并且程序调试。
我放置了Init:Imm之后尝试了* WAI功能,但它没有用。
我也试过* OPC?
命令,但是当我在OpcOk $中读取时,它也显示为“1”,我的evm值读作“”。
(报价中间没有任何东西)。
除了手动延迟之外的任何建议和评论。
我希望Rhode和Schwarz告诉我EVM值何时准备好读取,除了读取“”(空白),如果还没有准备等待它准备就绪,然后读入值。
谢谢_____是一个更好的万人迷。
从别人HYPERLINK“http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433"Get更好的关系答案
谁知道。雅虎!
答案 - 检查出来。
---您目前订阅了vrf:sherekhan_kl@yahoo.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。
要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。
要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。
在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。
_____ HYPERLINK“http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=
Y& s2 = EM& b = 50“精确定位您正在寻找销售商品的客户。
---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。
要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。
要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。
在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。

以上来自于谷歌翻译


     以下为原文

  I cannot speak directly about the Rhode and Schwartz unit I have never worked with it. Most test equipment can set the a SRQ flag when data is ready. All you have to do is have your VEE program look for the SRQ to be set on the interface, then you can preform a read data to get your readings. You will have to look through the Rhode &Schwartz manual to see how to set this up as most equpiment will not set the SRQ unless it is configured to do so. There are other ways that equipment can let a program know data is ready, again looking through the manual is about all I can suggest.
 
Greg
 
 
Bigman8424 wrote:

I am trying to use VBA and GPIB commands, however I am having a problem with timing. I am first hitting Run SGL (single) and then "init:imm" and requesting Fetch EVM and reading it, however the timing for the init:imm takes 3 seconds for it to load and my program debugs. I tried the *WAI function after I placed the Init:Imm, however it did not work. I also tried the *OPC? command, however when I read in OpcOk$, it also came up as "1" and my evm value read in as "              ". (quotation with nothing in the middle). Any suggestions and comments other than putting in a manual delay. I want Rhode and Schwarz to tell me when the EVM value is ready to read, other than it reading in "          " (blank), if it is not ready for it to wait for it to be ready, and then read in the value.




Thanks
  _____  

Be a better Heartthrob. HYPERLINK "http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433"Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. --- You are currently subscribed to vrf as: sherekhan_kl@yahoo.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".



  _____  

HYPERLINK "http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50"Pinpoint customers who are looking for what you sell. --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
举报

李秀云

2019-8-30 10:43:53
我最近使用了“* WAI”很有效果。
诀窍在于排序。
首先你必须关闭连续触发,我正在使用的设备是“INIT:CONT OFF”,然后发送你的“INIT:IMM; * WAI”或“IMIT:IMM”然后“* WAI”.Gary VoltzSASTO4Test
设备和维护和校准中心设施管理服务技术和资产服务澳大利亚航空公司电子邮件:gary.voltz@airservicesaustralia.com _____ Airservices AustraliaPh1300 301 120(澳大利亚境内)Ph +61 7 3866 3382(澳大利亚境外)传真+ 61 7 3866 3531HYPERLINK“http:
//www.airservicesaustralia.com/"www.airservicesaustralia.com注意:此电子邮件是保密的。
如果您不是预期的接收者,则不得披露或使用其中包含的信息。
如果您错误地收到了这封电子邮件,请立即通过回复电子邮件告知我们并删除该文件.Airservices Australia不代表,保证或保证此通信的完整性没有错误,病毒或干扰。
_____来自:Bigman8424 [mailto:bigman8424@yahoo.com]发送时间:2007年8月21日星期二4:06 AMTo:VRFCc:VRFS主题:[vrf] Init的时序问题:ImmI我正在尝试使用VBA和GPIB命令,但是我
有时间问题。
我首先点击运行SGL(单个)然后“init:imm”并请求获取EVM并读取它,但是init:imm的时间需要3秒才能加载并且程序调试。
我放置了Init:Imm之后尝试了* WAI功能,但它没有用。
我也试过* OPC?
命令,但是当我在OpcOk $中读取时,它也显示为“1”,我的evm值读作“”。
(报价中间没有任何东西)。
除了手动延迟之外的任何建议和评论。
我希望Rhode和Schwarz告诉我EVM值何时准备好读取,除了读取“”(空白),如果还没有准备等待它准备就绪,然后读入值。
谢谢_____是一个更好的万人迷。
从别人HYPERLINK“http://us.rd.yahoo.com/evt=48255/*http:/answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433"Get更好的关系,谁的答案
knows.Yahoo!
答案 - 检查出来。
---您目前订阅了vrf:gary.voltz@airservicesaustralia.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。
要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。
要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。
在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档.---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request @ lists
.it.agilent.com“在邮件正文中使用了subscribe这个词。
要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。
要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。
在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。

以上来自于谷歌翻译


     以下为原文

  I’ve used “*WAI” a lot recently to great effect. 

 

The trick is in the sequencing. First you have to turn off continuous Triggering, with the devices I’m using that is “INIT:CONT OFF”, then send your “INIT:IMM;*WAI” or ”IMIT:IMM” then “*WAI”.

 

Gary Voltz
SASTO4

Test Equipment and Maintenance and Calibration Centre

Facilities Management Services

Technology and Asset Services

Airservices Australia


E-mail: gary.voltz@airservicesaustralia.com

  _____  

Airservices Australia
Ph 1300 301 120       (within Australia)
Ph +61 7 3866 3382  (outside Australia) 
Fax +61 7 3866 3531
HYPERLINK "http://www.airservicesaustralia.com/"www.airservicesaustralia.com

CAUTION: This e-mail is confidential. If you are not the intended
recipient, you must not disclose or use the information contained
in it. If you have received this e-mail in error, please tell us
immediately by return e-mail and delete the document.

Airservices Australia does not represent, warrant or guarantee
that the integrity of this communication is free of errors, virus
or interference.

 

  _____  

From: Bigman8424 [mailto:bigman8424@yahoo.com]
Sent: Tuesday, 21 August 2007 4:06 AM
To: VRF
Cc: VRF
Subject: [vrf] Timing Problem with Init:Imm

 

I am trying to use VBA and GPIB commands, however I am having a problem with timing. I am first hitting Run SGL (single) and then "init:imm" and requesting Fetch EVM and reading it, however the timing for the init:imm takes 3 seconds for it to load and my program debugs. I tried the *WAI function after I placed the Init:Imm, however it did not work. I also tried the *OPC? command, however when I read in OpcOk$, it also came up as "1" and my evm value read in as "              ". (quotation with nothing in the middle). Any suggestions and comments other than putting in a manual delay. I want Rhode and Schwarz to tell me when the EVM value is ready to read, other than it reading in "          " (blank), if it is not ready for it to wait for it to be ready, and then read in the value.




Thanks

 

  _____  

Be a better Heartthrob. HYPERLINK "http://us.rd.yahoo.com/evt=48255/*http:/answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433"Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. --- You are currently subscribed to vrf as: gary.voltz@airservicesaustralia.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".


---
You are currently subscribed to vrf as: hua_jing@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
举报

更多回帖

发帖
×
20
完善资料,
赚取积分