Files
openairinterface5g/openair1/USERSPACE_TOOLS/OCTAVE/GPIB/querygpib.m
T
2013-06-25 09:05:02 +00:00

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")