AnsweredAssumed Answered

Socket -> iread timeout

Question asked by JLChew82 on Oct 10, 2007
Latest reply on Oct 25, 2007 by odanzy



I am facing a timeout error when I am using iread through socket. However, the code below worked fine when I am using SICL Lan.


    Dim strres As String * 100
    Dim actual As Long

    ' Read the results
    Dummy = iread(Equipment_ID_Number, strres, 100, 0&, actual)
    ' Trim
    Read_From_Equipment_String = Left$(strres, actual)


When the timeout error occurs, I took a look at the strres buffer and it was actually holding the instrument's IDN that I am expecting, after an *IDN?. However, I wasn't able to debug further what contributed to the timeout.


Any leads would be appreciated. Thanks.