05-11-2006 10:29 AM
05-11-2006 03:59 PM - edited 05-11-2006 03:59 PM
Message Edited by nyc on 05-11-2006 05:00 PM
05-11-2006 07:20 PM
05-11-2006 09:05 PM
05-11-2006 10:31 PM
Seems like the HP5334 understands EOI signal because ilwrt(ud, "RE", 2) call is working well. (ilwrt does not automatically appends EOS character.)
One different point between board and device level calls is that you can't use ildev() for board level call (as NI-488.2M manual says so.) I believe ilwrt() at board level automatically sends an EOI signal at the last byte as default, but this default is up to the GPIB system configuration on the device manager. To ensure to send EOI, you can explicitly enable this with ileot() at board level call, not with ildev().
Other check points are:
(1) When you have sent the multiple listener addressing command, do the instruments indicate any REMOTE or LISTEN state? If so the instruments look like being addressed.
(2) When you use ilcmd() and ilwrt() on board level call for single instrument only, does the instrument work?
(3) If you have a GPIB bus analyzer, it may be a shortcut to spy the GPIB trafic then compare the board and device calls
(4) Or, try using SendList() function as somebody is saying in this thread, which allows exactly what you want to do
regards,
05-12-2006 09:23 AM
05-12-2006 09:51 AM
Curt,Can you tell me which functions you use to start up communication to the GPIB board?I tried sending just the SendList command and using the integer 0 as the boardID, and nothing happens. The countersare not even being placed in REM.I also tried SendIFC(0) and then the SendList command, and that also doesn't work.================
Makoto,If I use IBIC everything works fine.But the VB does not work.Call ibfind("gpib0", niBoard)
Sleep 2000
Call ibsic(niBoard)
Sleep 2000
Call ibsre(niBoard, 1)
Sleep 2000
Call ibcmd(niBoard, "\x3F\x40\x2A\x2B")
Sleep 2000
Call ibwrt(niBoard, "RE")
05-12-2006 10:36 AM
Follow-up:
Curt,
I did the SendIFC(0), and also missed that I needed to make the address array 1 bigger to hold the element NOADDR.
With these changes, the counters go into LSN mode but still did not execute the RE reset command.
Makoto,
When using the ibcmd through IBIC, the command \x3f\x40\x2A\x2B works and is interpreted as being 3 characters.
But when using ibcmd in Visual Basic environment \x3f\x40\x2A\x2B \x3f\x40\x2A\x2B is interpreted as 12 characters. It looks like the escape characters don't work. Using NISpy showed me this. So when I send ?@*+ it works beautifully.
Thanks to everyone for your help.
05-12-2006 11:27 AM