res =
fopen (obj) (dummy)
¶Opens connection to GPIB device obj This currently is a dummy function to improve compatibility to MATLAB
data =
fread (obj)
¶data =
fread (obj, size)
¶data =
fread (obj, size, precision)
¶[data,count] =
fread (obj, ...)
¶[data,count,errmsg] =
fread (obj, ...)
¶Reads data from GPIB instrument
obj is a GPIB object
size Number of values to read. (Default: 100) precision precision of data
count values read errmsg read operation error message
res =
fscanf (obj)
¶res =
fscanf (obj, format)
¶res =
fscanf (obj, format, size)
¶[res,count] =
fscanf (obj, ...)
¶[res,count,errmsg] =
fscanf (obj, ...)
¶Reads data res from GPIB instrument
obj is a GPIB object
format Format specifier size number of values
count values read errmsg read operation error message
(obj)
¶Send clear command to Clear GPIB instrument.
obj is a GPIB object
gpib =
gpib ([gpibid], [timeout])
¶Open gpib interface.
gpibid - the interface number.
timeout - the interface timeout value. If omitted defaults to blocking call.
The gpib() shall return instance of octave_gpib class as the result gpib.
(gpib)
¶Close the interface and release a file descriptor.
gpib - instance of octave_gpib class.
[data, count, eoi] =
gpib_read (gpib, n)
¶Read from gpib interface.
gpib - instance of octave_gpib class.
n - number of bytes to attempt to read of type Integer.
The gpib_read() shall return number of bytes successfully read in count as Integer and the bytes themselves in data as uint8 array. eoi indicates read operation complete
(gpib, timeout)
¶t =
gpib_timeout (gpib)
¶Set new or get existing gpib interface timeout parameter. The timeout value is valid from 0 to 17.
gpib - instance of octave_gpib class.
timeout - Value of 0 means never timeout, 11 means one second and 17 means 1000 seconds (see GPIB documentation (ibtmo) for further details)
If timeout parameter is omitted, the gpib_timeout() shall return current timeout value as the result t.
n =
gpib_write (gpib, data)
¶Write data to a gpib interface.
gpib - instance of octave_gpib class.
data - data to be written to the gpib interface. Can be either of String or uint8 type.
Upon successful completion, gpib_write() shall return the number of bytes written as the result n.