Hey everyone. I'm Andrea, a technician who just started working with a Fluke 8845a which needs to be controlled by an Excel file to measure resistance every "x" seconds.
Now, I'm really just beginning. And I'm already in trouble. When inserting the code below in VBA I get the error attached. The error pops up at the ReadString line.
It says "runtime timeout, automation error". What can it be?
P. S. Sorry if there is a presentation section, I'm from mobile and I couldn't find it.
[code]
Sub idn()
Dim ioMgr As VisaComLib.ResourceManager
Dim idn
Dim instrument As VisaComLib.FormattedIO488
Set ioMgr = New VisaComLib.ResourceManager
Set instrument = New VisaComLib.FormattedIO488
' use instrument specific address for Open() parameter – i.e. GPIB0::22
Set instrument.IO = ioMgr.Open("TCPIP0::192.168.1.6::5025:OCKET")
instrument.WriteString ("*IDN?")
instrument.WriteString "SYSTem:REMote"
instrument.WriteString ("READ?")
idn = instrument.ReadString
End Sub
[/code]