VXIPNP - Matlab instrument driver

3 次查看(过去 30 天)
ralphie02
ralphie02 2011-2-24
Hi Everyone,
I need help on using Agilent 8164A (81635a - sensor, 81682a - source). I am trying to execute a lambda sweep that scans through a specified range of lambda and record the corresponding power (in db). then i need to plot lambda vs power.
I downloaded the driver from agilent and I imported the driver to matlab using midedit already as seen below:
obj = icdevice('hp816x.mdd','GPIB0::20::INSTR')
connect(obj)
after this, i tried using the functions in the driver but it doesnt seem to respond. To be honest, I havent tried enough testing or read enough manual to figure out how to use the driver functions through instrument control toolbox.
in my defence, I have been really busy and I havent been to the lab to try it out.....If anyone knows how to do this please let me know or send me a link of a manual that i can read to figure it out....
Thanks,
Ralph

回答(1 个)

Ankit Desai
Ankit Desai 2011-4-15
To check that you have the basic setup correct, you might want to follow the online demo that shows how to use Instrument Control Toolbox to connect to an instrument using a VXIPlug&Play driver.
I was unable to find the VXIPnP driver for the instrument you listed but you can refer to the help installed along with the VXIPlug&Play driver to learn more about which function to call with what parameters.
If that does work for you, you can also try using a GPIB object and communicate using the instrument's SCPI commands. Here's an example that shows how to create and communicate using GPIB object. The programming manual for the instrument that lists all the SCPI commands can be found here.
Hope this helps,
-Ankit

类别

Help CenterFile Exchange 中查找有关 Instrument Connection and Communication 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by