GPIB communication old HP 8657b
11 次查看(过去 30 天)
显示 更早的评论
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
1 个评论
dpb
2017-5-10
Never used instrumentation toolbox under Matlab so no real specific info there, sorry.
I have, however, done a lot of HPIB comm with old HP stuff of this vintage and older with NI GPIB interface.
The first thing to do is to go into the setup for the device and check it's communication parameters including, of course, it's ID and what the line termination character is; somebody may have changed from factory defaults and if you're not consistent you'll get nowhere fast and never get anywhere.
Second, I'd initially take Matlab out of the loop and use the NI drivers directly to wake up the device and get a first successful communication going.
Then, for the Matlab side, all I know to do is to search the Toolbox documentation for what is supported. I don't exactly understand the Matlab interface vis a vis the vendor drivers so can't help much there..
采纳的回答
Ashwini Venkatappa
2017-5-15
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!