Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB "listen only" labview

Solved!
Go to solution

Hi,

 

I have a problem with GPIB and Labview, i need to configure labview as a listen only mode and capture data. But I can't.

I use GPIB-USB and labview 8

 

Thanks

0 Kudos
Message 1 of 6
(5,706 Views)

What do you mean by "listen-only" mode? Are you trying to act like a GPIB sniffer? What instrument are you trying to talk to or get data from? NI-Spy can be used to operate as a sniffer.

0 Kudos
Message 2 of 6
(5,701 Views)

In the "talk only" mode, the Agilent 4349B automatically sends readings directly to the GPIB port. To enable the "talk only" mode, first set the HP-IB address to "31" using the front-panel I/O Menu. For proper operation, make sure that your printer is configured for the "listen always" mode.

 

So.. my printer will be Labview

 

 

0 Kudos
Message 3 of 6
(5,608 Views)

Have you tried simply having a VISA Read inside a loop?

0 Kudos
Message 4 of 6
(5,603 Views)

Hello,

 

According to that thread:

 

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/How-do-I-make-GPIB-ENET-listen-only-I-want-to...

 

You will need to use the command ibconfig with the parameter IbcLONto configure your device in listen-only mode.  Try to use the GPIB configuration Utility:

 

http://digital.ni.com/public.nsf/allkb/61CA89E59F7E597C862571E90050195C?OpenDocument

 

Unfortunately there is no LabVIEW VI to programmatically configure it. If you still need to programmatically enable/disable auto serial polling then it is possible to call the gpib-32.dll with a LabVIEW call library node. The gpib-32.dll is located in the C:\windows\system32 directory. You will need to call the ibconfig function.

 

In the 488.2 Help file you can find information about these functions:

 

IbcLON (ibconfig Board Configuration Option)

Options

(Constants)



Value



Description


IbcLON

zero

(Default) Do not enable listen-only mode.

 

non-zero

Enable listen-only mode. In this mode, which persists until ibonl is called, the board is forced to listen. While in listen-only mode, the board-level functions ibrd, ibrda, ibrdf, ibwait, and ibtmo function in the usual manner. The behavior of all other functions is undefined.

0 Kudos
Message 5 of 6
(5,599 Views)
Solution
Accepted by topic author Oriol_G_L

It's simple

 

I make only this in labview code:

whitout GPIB address

 

And the Agilent in "mode talk only" address 31 sent every mesurament to labview

 

Thanks to all

0 Kudos
Message 6 of 6
(5,577 Views)