MATLAB Answers


How can I connect my functiongenerator with MATLAB

Dear Sir or Madam,
I have a problem about Instrument Control Toolbox on MATLAB software. Although I want to connect my function generator with MATLAB, MATLAB software doesn't recognize the function generator. There is no function generator indication on the software display. I have confirmed that the function generator is on a remote-controlled status. I appreciate if you could let me know how to fix the problem above. * function generator type: Keysight DSOX33600A series(maker type 336BW2U), installed VISA: Keysight VISA


Sign in to comment.


No tags entered yet.

1 Answer

Answer by Nagarjuna Manchineni on 19 Jul 2017
 Accepted Answer

If the function generator supports IVI-C driver. You could install the following support package that installs drivers that helps MATLAB to talk to IVI-C drivers:
Also, Agilent devices need the following drivers to talk to MATLAB. Install this driver and then reboot the computer and try connecting to the device by using the below commands:
>> f= fgen();
% >> f.drivers % This will let you know the supported drivers/devices that are installed on your computer
>> f.Resource = <device resource ID>; %you can get the information by using f.Resources command
>> f.Driver = <drive name eg:Ag3352x>; % sets the driver value explicitly to appropriate value
>> f.connect

  1 Comment

Dear Sir or Madam,
When I use >>f.Driver command , the answer is empty.
How can I get this situation.
By the way , I could find availableResources.

Sign in to comment.