05-15-2007 12:05 AM
05-15-2007 01:30 AM
05-19-2007 05:04 AM
05-22-2007 08:28 PM
05-22-2007 09:24 PM - edited 05-22-2007 09:24 PM
You've got it backwards. NI-VISA fully supports IEEE-488.2. The problem you are seeing is that VISA supports the IEEE.488.2 driver for the controller that you are using. The low level GPIB functions in LabVIEW and ibwrt/ibrd in mAX, are functions for the NI GPIB controller. Since you don't have an NI board, you can't use the NI functions. I doubt that there is an IVI driver for the instrument but if the driver you downloaded has the low level GPIB functions such as GPIB Write and GPIB Read, you should be able to just replace them with VISA Write and VISA Read.
So, by spending the same amount of money for a controller from Agilent that you would have spent for the controller from NI, you will have to spend a few hours modifying code. There's got to be a lesson there somewhere.![]()
Message Edited by Dennis Knutson on 05-22-2007 08:26 PM
05-22-2007 09:34 PM - edited 05-22-2007 09:34 PM
帖子被zhshli8691@163.com在05-22-2007 09:39 PM时编辑过了
05-22-2007 09:45 PM
05-22-2007 09:49 PM
I think it makes the most sense to use NI products especially if you are using NI software like LabVIEW or CVI. As long as you stick with VISA though, either will work just fine.
Hopefully, I explain away a little of the confusion. Each GPIB board from different vendors has different hardware and firmware. This means that the low level windows driver for each board is different. The low level windows driver for an NI board has the functions ibwrt, ibrd. etc. The low level windows driver for an Agilent board do not contain functions of that name. They have functions that do the same thing but are called something else. When you do a VISA Write or VISA Read, the VISA api passes a message to the low level windows driver to perform some action. It's the low level windows driver that then does the actual GPIB communication. The GPIB functions on the LabVIEW palette are written to interface directly with the NI low level windows driver. That driver does not exist on your computer. Only the low level driver from Agilent.
05-22-2007 10:07 PM
05-22-2007 10:16 PM