Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ilrd timeout error

 Hi

     I have function call from VB  Application  which i call ilrd Dev% ,Valuestr,12

Whenever i call this, below command [ usually ilwrt ] get timeout error,

tried giving sleep,timer etc options which was available in net ,Any solutions??  mathew.m@nestgroup.net

Regards

Mathew M

+91-9895519102 

0 Kudos
Message 1 of 16
(5,596 Views)
Hi

     I have function call from VB  Application  which i call ilrd Dev% ,Valuestr,12

After i call this command machine takes 10-15 sec and get time out error, my next caommand call is ilwrt ..

Is there any specific settings need to done for ilrd timeout wither on machine or on vb code

Any solutions??  mathew.m@nestgroup.net

Regards

Mathew M

+91-9895519102 

0 Kudos
Message 2 of 16
(5,571 Views)
Hi MathewM,

You can use iltmo to set the timeout. There is more information on this in the NI-488.2 Help, which can be found in Start > Programs > National Instruments > NI-488.2.

I hope that helps!
Rasheel
0 Kudos
Message 3 of 16
(5,565 Views)
You might also provide some information on what the instrument is and what command you are sending. Unless you write a legitimate query, you are always going to get a timeout on a read. What happens when you test the command in MAX?
0 Kudos
Message 4 of 16
(5,562 Views)

Hi Rasheel

                    Thanks for the repy,please see few section of my vb Call ,my machine is JDS - FITEL, with GPIB0 card ,i amnot sure whether it is hard ware setting, i have onlyproblem in reading not on writing ,its communicating with GPIB for sure

Code Below::  ---- SInce this post allows 1000 characters , only errorCeck is written

     StatusDisplay "Switch to Relative Power..."  'Displays Status on Form

    ilwrt Dev%, "*A05E" + Chr$(13) + Chr$(10), 7

     -- errorCeck   

    StatusDisplay "Switch to 1.3 for IL..."

    ilwrt Dev%, "*A41E" + Chr$(13) + Chr$(10), 7

    -- errorCeck 

    msg = MsgBox("Take Reference value @1310WL", vbOKCancel)   

    If msg = vbOK Then

         ilwrt Dev%, "*TREF" + Chr$(13) + Chr$(10), 7

-- errorCeck 

    Else

        Exit Sub

    End If   

    ilwrt Dev%, "*TDO" + Chr$(13) + Chr$(10), 6 

-- errorCeck 

    'Comments ------> Problem STARTS After this ilrd call,see the write call comments

    ilrd Dev%, ValueStr, Len(ValueStr)                'ilrd call

   ' iltmo T10s, 13

-- errorCeck 

    sReadData = Left$(ValueStr, ibcntl& - 2)

    sReadData = Right$(sReadData, 6)

    sMaxIL1310 = sReadData

    MsgBox "end reading" + sMaxIL1310    

    StatusDisplay "starts Switch to 1.5 for IL..."

    'Comments ------> Here its take 10- 15 seconds and Show timout error

    ilwrt Dev%, "*A05E" + Chr$(13) + Chr$(10), 7 

-- errorCeck    

    ilwrt Dev%, "*A42E" + Chr$(13) + Chr$(10), 7

'-  check up to this

------ code continues---

End Sub

Thanks & Regards

Mathew M

0 Kudos
Message 5 of 16
(5,533 Views)

Hi Dennis

 Code Snippets are posted abouve, my machine is JDSU not JGR with GPIB0 Card ,Single channel used for caliberation of cables.

Thanks & Regards

Mathew M

mathew.m@nestgroup.net

+91-9895519102

0 Kudos
Message 6 of 16
(5,529 Views)

Dear All,

               Any suggesions about my queries??? help needed.

I have problem while i call ilrd function   ilrd Dev%, valustr$,Len(valuestr)

its wait for 10-15 seconds then time out error

i believe that its taking values long time for ilrd call, reading from buffer..tried trim/timeout function etc

is it hard ware of software problem?? if i give dummy ilrd call [meana again i call the same ilrd call just below the previous ilrd call] ,it getting faster for the first time ..can't identify the problem still help needed urgently

regards

mathew m - mathew.m@nestgroup.net

0 Kudos
Message 7 of 16
(5,490 Views)
You get the read timeout after sending a *TDO command? I'm not familiar with the instrument. What does that command do? Have you run that command in MAX and gotten a response?

Message Edited by Dennis Knutson on 04-22-2008 10:19 PM
0 Kudos
Message 8 of 16
(5,487 Views)

Hi Dennis

                  Sorry for the dealy , TDO sends data out from the device ..but its not the problem yet beacouse i put the ilrd call ont he very fast line after the first  ilwrt call result is the same , tried MAX command it s came out with no error, second time i call the ilrd the it does not have any problem ..

ilrd first call wherever in my code is the coause, after that any ilrd call will work smoothly with out timeout error

0 Kudos
Message 9 of 16
(5,460 Views)
I did a search for JDSU - Fitel and it seems this is the maker of the instrument. You have not provided the model number. Could you do that? If you have an electronic copy of the programming manual or a link to it, that would be of enormous help.
 
Most instruments these days use SCPI and only after issuing a command that terminates with a '?' can you do a read. That is why it is important to review the programming manual. I suspect that you may be doing a read when the instrument has not been commanded to return any data. You cannot just place a read randomly in the program.


Message Edited by Dennis Knutson on 04-24-2008 05:44 AM
0 Kudos
Message 10 of 16
(5,447 Views)