LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i clear the GPIB BUS( the buffer) ?

Hello,
 
I'm actually developping an application in LabWindows a GPIB interface, and a lot of GPIB command in my program, and now when i play my application, after (i think) 100 command GPIB there are a problem of buffer, or of saturation of the bus, and the application is down.
SO,  what is the command who permit to clear the GPIB buffer, or to initiate the BUS ?
 
Thanks a lot.
 
yohann
0 Kudos
Message 1 of 5
(4,294 Views)
Hi bazardik,
   I've found viFlush() function, in
                       VISA library -->
                             Resource-specific operations -->
                                       Formatted I/O -->
  
   Let me know if this function is the one you're looking for!

   In the past I worked with GPIB, now I've no GPIB card, so I can't test it....

   Greetings!

graziano
Message 2 of 5
(4,284 Views)
ibsic (0);
0 Kudos
Message 3 of 5
(4,263 Views)
Hi, dilution,
    I think we should be carefull with ibsic(0), because it seems to perform not only the buffer flush, but some board-reset....

    Anyway, accurate testing can reveal if this function solves!

   Bye!

graziano
0 Kudos
Message 4 of 5
(4,249 Views)

Hello,

 

Don't forget to look for the cause of the problem.

I often use IEEE devices for days and days, sending or receiving strings each few seconds. And I only need to use the "ibsic" once when I access the IEEE interface itself (GPIB0) the first time. So there should be a reason why you have to clear the interface more often.

I have found that many devices have a problem when I send a request for data and immediately switch over to the device as talker. So in most sources I have a short delay (typical from 0 to 60 msec) just before addressing a device as talker.
 
Succes, Jos
 
 
Message 5 of 5
(4,228 Views)