Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

timeout setting ( TNT5002)

It is possible to drive the TNT5002 whit 0ms timeout between ibwrt and ibrd oder many consecutives ibwrt ?
Also this is my Algor....
after a ibwrt
Adsr( Ta ) bit is set.
// call the receive Function and write the string in the imput buffer
// call the parseCommand function and write the answer in the Outbut Buffer
0ms timeout and then a ibrd or 0ms wait time and imediatly a ibrd
Adsr( La ) bit is set
// call the Send function und send the answer over the bus.
 
I have try this code but it is not working. It is working only when I have a minimun of 1ms timeout  between the ibwrt and the ibrd or between twos consecutive ibwrt.
It is possible to the TNT5002 manualy  to ask to the Systeme controller (PC) to wait. I mean for exemple to assert the NRFD line until the TNT has finisch parsed the command he receive after a ibwrt.? 
I am sorry for my englisch,  I am frensch.
Thanks.
0 Kudos
Message 1 of 2
(3,101 Views)

Hello Theotigan,

What isn't working about your code.  Are you finding that you never output the response because you are addressed as a listener before you have a chance to output? 

During a read operation, the system controller should address the instrument as a talker and then wait for a response by driving the NRFD line.  Is a timeout occuring?  Please provide us with a little more information and we will be happy to help.

Steven T.

0 Kudos
Message 2 of 2
(3,085 Views)