AnsweredAssumed Answered

Could not open resource

Question asked by chlow on Sep 10, 2010
Latest reply on Sep 14, 2010 by odanzy
I wondered why there is always an error saying "Could not open the specified resource" from the highlighted line when I setup timer in my to measure the temperature after some time? Can anyone help me?

Public Class Visa
    Dim ioMgr As New AgilentRMLib.SRMCls
    Dim instrument As New VisaComLib.FormattedIO488
   Dim session As VisaComLib.IMessage = ioMgr.Open("GPIB0::5::INSTR", AccessMode.NO_LOCK, 10000)
    Public ReadOnly Property GetKTemp()
            instrument.IO = session
            Return instrument.ReadString.Replace(vbNewLine, vbNullString).Replace(vbLf, vbNullString)
        End Get
    End Property
End Class