嗨,我不是专家,但我认为测试电源通信的最佳方法是使用“Agilent Connection Expert”(IOlibrairies)或National Instruments的NIMAX作为第一步。
如果通讯正常,您将确保与E3633A的通讯正常。
我使用IOlibrairies16.3在Windows 7下使用vb.net 2010和签证命令(附带模块visa32.bas)测试了我的E3633A。
我用这个简单的代码来测试:Public Function readVoltage_E3633A()As String Dim rdgs As System.Text.StringBuilder = New System.Text.StringBuilder(16)Dim SCPIcmd As String Dim Voltage As String SCPIcmd =“MEAS:VOLT:DC?
“
&安培;
vbLf errorStatus = visa32.viPrintf(viPowerSupply,SCPIcmd)errorStatus = visa32.viScanf(viPowerSupply,“%t”,rdgs)电压= rdgs.ToString返回电压结束函数
以上来自于谷歌翻译
以下为原文
Hi, I'm not an expert but I think the best way to test your power supply communication, is use "Agilent Connection Expert" (IOlibrairies) or NIMAX from National instrument as the first step. If communication is OK, you will be sure that communication with your E3633A is working fine.
I tested my E3633A with vb.net 2010 and visa command (attached module visa32.bas) under Windows 7 with IOlibrairies16.3.
I used this simple code to test:
Public Function readVoltage_E3633A() As String
Dim rdgs As System.Text.StringBuilder = New System.Text.StringBuilder(16)
Dim SCPIcmd As String
Dim Voltage As String
SCPIcmd = "MEAS:VOLT:DC?" & vbLf
errorStatus = visa32.viPrintf(viPowerSupply, SCPIcmd)
errorStatus = visa32.viScanf(viPowerSupply, "%t", rdgs)
Voltage = rdgs.ToString
Return Voltage
End Function
嗨,我不是专家,但我认为测试电源通信的最佳方法是使用“Agilent Connection Expert”(IOlibrairies)或National Instruments的NIMAX作为第一步。
如果通讯正常,您将确保与E3633A的通讯正常。
我使用IOlibrairies16.3在Windows 7下使用vb.net 2010和签证命令(附带模块visa32.bas)测试了我的E3633A。
我用这个简单的代码来测试:Public Function readVoltage_E3633A()As String Dim rdgs As System.Text.StringBuilder = New System.Text.StringBuilder(16)Dim SCPIcmd As String Dim Voltage As String SCPIcmd =“MEAS:VOLT:DC?
“
&安培;
vbLf errorStatus = visa32.viPrintf(viPowerSupply,SCPIcmd)errorStatus = visa32.viScanf(viPowerSupply,“%t”,rdgs)电压= rdgs.ToString返回电压结束函数
以上来自于谷歌翻译
以下为原文
Hi, I'm not an expert but I think the best way to test your power supply communication, is use "Agilent Connection Expert" (IOlibrairies) or NIMAX from National instrument as the first step. If communication is OK, you will be sure that communication with your E3633A is working fine.
I tested my E3633A with vb.net 2010 and visa command (attached module visa32.bas) under Windows 7 with IOlibrairies16.3.
I used this simple code to test:
Public Function readVoltage_E3633A() As String
Dim rdgs As System.Text.StringBuilder = New System.Text.StringBuilder(16)
Dim SCPIcmd As String
Dim Voltage As String
SCPIcmd = "MEAS:VOLT:DC?" & vbLf
errorStatus = visa32.viPrintf(viPowerSupply, SCPIcmd)
errorStatus = visa32.viScanf(viPowerSupply, "%t", rdgs)
Voltage = rdgs.ToString
Return Voltage
End Function
举报