AnsweredAssumed Answered

E5071c lan communication error plz help

Question asked by a3r on Jul 21, 2014
Latest reply on Jul 21, 2014 by ningchen
i am trying to take the data from Network Analyzer (E5071C) in ASCII or Binary format using LAN Connection, Programme for the same in VB 2010. When trying to take the data in ASCII format, getting only the X Axis (Frequency). Reading of Y Axis shows an error "Unexpected I/O termination or couldn't cover list item #1 to floating point format".  

Same way when it is in binary format, an error "VI_Error_timeout occured" is shown. I am copying the code along with this mail. Kindly advice me to correct the errors.  

 

Imports Ivi.Visa.Interop
Dim readdata() As Double
        Dim poin As Integer
        Dim freqdata() As Double
Dim iomgr As Ivi.Visa.Interop.ResourceManager
        Dim age506x As Ivi.Visa.Interop.IFormattedIO488
        iomgr = New ResourceManager
        age506x = New FormattedIO488

        age506x.IO = iomgr.Open("TCPIP::169.254.213.57")
        age506x.IO.Timeout = 1000

        age506x.WriteString(":FORM:DATA ASC", True)
age506x.WriteString(":SENS1:SWE:POIN?", True)
        poin = age506x.ReadNumber
 

       ReDim freqdata(poin - 1)
        age506x.WriteString(":SENS1:FREQ:DATA?", True)
        freqdata = age506x.ReadList(IEEEASCIIType.ASCIIType_R8, ",")

        ReDim readdata(poin * 610 - 1)
        age506x.WriteString(":CALC1:DATA:FDAT", True)
        readdata = age506x.ReadList(IEEEASCIIType.ASCIIType_R8, ",")
age506x.IO.Close()  

Outcomes