是德科技
直播中

李慧芳

8年用户 192经验值
私信 关注
[问答]

如何使用VISA读取线执行操作?

嗨,我正在使用IO Mgr向Keithley 237发送命令。我可以扫描但是我需要查询操作完成或者可能使用SRQ.Serial轮询代码示例是用HP Basic.REMOTE 716OUTPUT 716编写的;“M32,0X”
OUTPUT 716;“H1X”'发送非法选项S = SPOLL(716)IF NOT BIT(S,5)那么50'等待SRQ发生任何有关如何使用VISA读取线执行此操作的想法?
或使用OPC?
我正在使用VB6.Thanks和问候

以上来自于谷歌翻译


     以下为原文

  Hi,

I am using the IO Mgr to send commands to Keithley 237. I can sweep but I need to query for operation completion or maybe use SRQ.

Serial polling code sample was written in HP Basic.
REMOTE 716
OUTPUT 716;"M32,0X"
OUTPUT 716;"H1X" 'send an illegal option
S=SPOLL(716)
IF NOT BIT(S,5) THEN 50 'wait for SRQ to occur

Any ideas on how to do this with VISA readstring? or use OPC?  I am using VB6.

Thanks and regards  

回帖(5)

罗敏

2019-4-28 15:15:17
嗨,我很抱歉,但我们不熟悉Keithley 237命令集。
我只是快速浏览一下,它绝对不是SCPI兼容的。
你在使用VISA或VISA-COM吗?

以上来自于谷歌翻译


     以下为原文

  Hi,

I'm sorry but we are not familiar with the Keithley 237 command set.  I just took a quick look and it is definitely not SCPI compatible. 

Are you using VISA or VISA-COM?
举报

李慧芳

2019-4-28 15:22:23
嗨马特,我相信我正在使用VISA COM。
这是代码:设置ioMgr =新的VisaComLib.ResourceManagerSet instrK237 =新的VisaComLib.FormattedIO488Set instrK237.IO = ioMgr.Open(“GPIB1 :: 17 :: INSTR”).... instrK237.WriteString“N1X”'设置为OPERiSleep 1000instrK237
.WriteString“H0X”'TRIGGER SWEEPiSleep 50000'UGLY DELAY HERE,根据nA中的低电流测量而变化'如果我在发送下一个cinstrK237之前只能使用OPC查询,我可以在这里循环.WriteString“N0X”'OPER OFFiSleep 1000instrK237.WriteString
“X”iSleep 1000ar1 = CleanString(instrK237.ReadString())'GETS数据arrayThanks和问候

以上来自于谷歌翻译


     以下为原文

  Hi Matt,

I believe Im using VISA COM. Here's the code:

Set ioMgr = New VisaComLib.ResourceManager
Set instrK237 = New VisaComLib.FormattedIO488

Set instrK237.IO = ioMgr.Open("GPIB1::17::INSTR")

....
instrK237.WriteString "N1X" 'Set to OPER
iSleep 1000
instrK237.WriteString "H0X" 'TRIGGER SWEEP
iSleep 50000                       'UGLY DELAY HERE, varies depending on low current meas in nA
                                         'I can loop here if I can only use the OPC query before sending next c
instrK237.WriteString "N0X" 'OPER OFF
iSleep 1000
instrK237.WriteString "X"   
iSleep 1000
ar1 = CleanString(instrK237.ReadString()) 'GETS data array

Thanks and regards
举报

罗敏

2019-4-28 15:34:31
我理解,你想在VB 6.0中使用VISA-COM对SRQ进行串行轮询/异常处理吗?
如果是这样,我会看看我是否可以生成一个示例(它将基于安捷伦电源)并在此处发布。

以上来自于谷歌翻译


     以下为原文

  Just so I understand, you want to do a serial poll/exception process for a SRQ using VISA-COM in VB 6.0?  If so I'll see if I can generate an example (it will be based on an Agilent power supply) and post it here.
举报

李慧芳

2019-4-28 15:50:29
嗨马特,只想知道VISA-COM的功能,如果它可以支持旧的PS。
只是想知道,因为它得到了HP Basic的支持,而且由于VISA-COM是“新的”,它应该是向后兼容的,我想。最好的问候,Bab

以上来自于谷歌翻译


     以下为原文

  Hi Matt,

Just want to know the capabilities of the VISA-COM if it can support the old PS. Just wondering since it was supported by HP Basic, and since VISA-COM is 'newer', it should be backward compatible, I guess.

best regards,
Bab
举报

更多回帖

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