Matlab for data acquisition from spectrum analyzers

Status
Not open for further replies.

kelvchan

Member level 3
Joined
Apr 9, 2005
Messages
54
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,715
Can matlab be used for data acquisition from spectrum anlaysers, network analysers with GPIB controllers? Any help on coding the GPIB controllers?
 

Re: Matlab question

You have to install the Data Acquisition Toolbox (for GPIB or DAQ control) and the Intrument Control Toolbox (for specific instrument control)...

check out the documentation of these toolboxes on mathworks.com

mog.
 

Re: Matlab question

GBIP is verry easy to use with matlab! It works without any problems
I have used it with a spectrum analyzer.

best: ricy
 

Matlab question

You need that toolbox, but then it's easy.
For example, this sends/receives a few simple messages with one of my instruments.
Code:
g = gpib('ni',0,10);   % HP 33120A Function/Arb Generator
g.timeout = 1;
fopen(g);
fprintf(g,'*CLS');
fprintf(g,'*IDN?');
fscanf(g)
fprintf(g,'FUNC:SHAP SIN');
fprintf(g,'FREQ 3.57954525 MHz');
fclose(g);
 

Matlab question

HW, u need some interface , such as PCI2GPIB, USB2GPIB or some else. And the COM software is easy for the GPIB use ASCII string to exchange information
 

Re: Matlab question

salam,,,

the help of the matalb itself is very usful in such things

i was tryin to make it but virtually between two PCs but i discovered it is too dificult as there is a variable called manID and i don't know how to enter it
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…