필터 지우기
필터 지우기

How do I connect to a function generator?

조회 수: 10 (최근 30일)
Z
Z 2013년 6월 26일
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!
  댓글 수: 1
Z
Z 2013년 6월 26일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Z
Z 2013년 7월 1일
Create a driver, if it is not recognized on MATLAB...try switching the version.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Driver Communication에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by