MATLAB: GPIB communication old HP 8657b

agilentgpib

Hi everyone,
I am trying to perform GPIB communication with an old HP 8657b (Agilent) function generator. The gpib connection is achieved through a NI board.
Using tmtool, I am able to connect to the device. Unfortunately, I cannot send order to it or read its buffer.
Typically the command I gonna pass are:
gene = gpib('ni',1,7);
fopen(gene);
fprintf(gene,'"FREQ:CW 500 MHz;\n"');
But as you might imagine the device remains silent.
First, I wonder if I am talking to the device properly? Second, since this is an old device, is the driver already installed on matlab, or should I install it? In the latter case, how can I check this? What is the procedure to install a driver and where do I find it?
Best
Best

Best Answer

In the MATLAB command window,execute
>> instrhwinfo gpib ni
Verify,if the driver installed is supported by your MATLAB version. Ensure to use a 64-bit driver, if you are using 64-bit MATLAB.
If NI-GPIB driver (version 2.5.2) is installed on the machine on the machine it does not support 64-bit Application. The information can be found in the section "64-Bit Language Interface" in the link below:
Download the more recent version of the driver from the link below to support 64 bit Application.
Related Question