Pre-ci test passed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4000 818b1a75-f10b-46b9-bf7c-635c3b92a50f
8 lines
243 B
Matlab
8 lines
243 B
Matlab
function [qresult]=QueryGPIB(addr,cmdstr);
|
|
% Pass address of GPIB instrument and the command string to
|
|
% trigger the query.
|
|
% example querygpib(20, FREQ?)
|
|
|
|
A = system('/local/gpibquery ' sprintf('%i ',addr) cmdstr);
|
|
qresult = sscanf(A, "%f")
|