Hi
I have a question about establishing GPIB connection between PC and MXG N5182
I am thinking to uploading multiple wave form files to MXG.
I just check API references which explain the way to open GPIB port between MXG and PC( I am using VB.NET)
I simply follow API example
For example,
Dim Bin1Wav As New CCWAPI.AgtPBProject
Bin1Wav.SignalGenerator.SetConnectionGPIB(0, 19, 0)
However, I am getting connection error
it says " AgtPulseBuilding.Engine.Exception.InvalidSGException: No Signal Generator Connection Detected:.."
I am not really sure why this happen this is because when I execute code, MXG is getting into remote mode. Which means that VB.NET code and SetConnectionGPIB function is establishing GPIB connection between MXG and Desktop.
I have attached screenshot of error
Do anybody know how to fix this issue ?
thanks
I have a question about establishing GPIB connection between PC and MXG N5182
I am thinking to uploading multiple wave form files to MXG.
I just check API references which explain the way to open GPIB port between MXG and PC( I am using VB.NET)
I simply follow API example
For example,
Dim Bin1Wav As New CCWAPI.AgtPBProject
Bin1Wav.SignalGenerator.SetConnectionGPIB(0, 19, 0)
However, I am getting connection error
it says " AgtPulseBuilding.Engine.Exception.InvalidSGException: No Signal Generator Connection Detected:.."
I am not really sure why this happen this is because when I execute code, MXG is getting into remote mode. Which means that VB.NET code and SetConnectionGPIB function is establishing GPIB connection between MXG and Desktop.
I have attached screenshot of error
Do anybody know how to fix this issue ?
thanks
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Imports System.Text
Imports Ivi.Visa.Interop
Dim instAddress As String = "GPIB0::22::INSTR"
Dim oRm As New ResourceManagerClass()
Dim FGEN As New FormattedIO488Class()
'Open session for instrument.
FGEN.IO = oRm.Open(instAddress, AccessMode.NO_LOCK, 10000, "")
FGEN.IO.Timeout = 10000
'Query Idendity string and report.
FGEN.WriteString("*IDN?", True)
Dim strResult As String = FGEN.ReadString()
Console.WriteLine("Instrument Identity String: " + strResult)
'Clear and reset instrument
FGEN.WriteString("*CLS;*RST;*OPC?", True)
FGEN.ReadString()