AnsweredAssumed Answered

8753C and VISA

Question asked by opticyclic on Oct 5, 2006
Latest reply on Oct 5, 2006 by opticyclic
I am using VS2005 and the NI VISA libraries for .NET 2005.
Is there any reason why I shouldn't be able to use this to communicate with an 8753C?
Imports NationalInstruments.VisaNS
Private mbSession As MessageBasedSession
    Public Overrides Sub ConnectToAna(ByVal intGPIB As Integer)
        Try
            mbSession = CType(ResourceManager.GetLocalManager().Open("GPIB0::" * intGPIB.ToString & "::INSTR"), MessageBasedSession)
        Catch exp As InvalidCastException
            MessageBox.Show("Resource selected must be a message-based session")
        Catch exp As Exception
            MessageBox.Show(exp.Message)
        End Try
    End Sub

Outcomes