Matlab instrumental control through USB

Hi,
I have a Tek function generator. I connected to my PC through USB connection.
Run getResources command and Matlab can find it:
>> getResources(f)
ans =
USB0::0x0699::0x034C::C012027::INSTR
However, if I tried to connect to it, no connection can be setup. Is this a USB issue or something else?
>> f.Resource='USB0::0x0699::0x034C::C012027::INSTR'
f =
fgen: No connection has been setup with instrument. Type help fgen for more information.

回答 (1 件)

Vinod
Vinod 2016 年 8 月 12 日

0 投票

Did you look at the example here:
Make sure you have the necessary IVI drivers installed.

2 件のコメント

Yijing Fu
Yijing Fu 2016 年 8 月 12 日
>> instrhwinfo('ivi')
ans =
HardwareInfo with properties:
LogicalNames: {}
ProgramIDs: {}
Modules: {1x18 cell}
ConfigurationServerVersion: '1.7.0.12115'
MasterConfigurationStore: 'C:\ProgramData\IVI Foundation\IVI\IviConfigurationStore.xml'
IVIRootPath: 'C:\Program Files\IVI Foundation\IVI\'
Access to your hardware may be provided by a support package. Go to the Support Package Installer to learn more.
Installed all available packages from the installer, including NI-FGEN, NI-VISA, NI-SCOPE and etc. Re-run the same command instrhwinfo('ivi'), got the same result (function generator was connected to PC while running this command).
Vinod
Vinod 2016 年 8 月 13 日
Did you install the IVI driver for your instrument. Please contact your instrument vendor to get the IVI-C driver for your instrument.
After setting the resource, did you try connect(f) ? What is the error message you get?

サインインしてコメントする。

質問済み:

2016 年 8 月 12 日

コメント済み:

2016 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by