Update: I tried creating a new driver on the instrument driver editor, but for some reason it says it is not on the MATLAb path.
How do I connect to a function generator?
3 次查看(过去 30 天)
显示 更早的评论
I have seen all the code online, and here is what my code looks like (and yes I have Instruments Control Toolbox.) Has anyone else encountered this problem? Also, I have created an object for GPIB cable.
fg=fgen()
fg =
fgen: No connection has been setup with instrument, type help fgen for more information.
>> fg.Resource = 'GPIB0::12::INSTR'
fg =
fgen: No connection has been setup with instrument, type help fgen for more information.
>> driver 33210A
ans =
DriverHandle: []
>> connect(fg)
Failed to connect to instrument, please provide driver name and try again.
>> drivers = getDrivers(fg)
drivers =
Driver: testDriver
Supported Models:
Dummy
Driver: nisFgen
Supported Models:
Driver: Agilent332x0_SCPI
Supported Models:
33210A, 33220A, 33250A
i tried every single driver.
Thanks!
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Instrument Connection and Communication 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!