10-20-2011 06:43 AM
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
Solved! Go to Solution.
10-20-2011 07:46 AM
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.
10-21-2011 03:23 AM
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
10-21-2011 08:01 AM
Have you tried simply having a VISA Read inside a loop?
10-21-2011 09:03 AM
Hello,
According to that thread:
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:
Options |
|
|
|
||
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. |
10-27-2011 04:33 PM
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