res = fopen (obj) (dummy) ¶Opens USBTMC connection 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 usbtmc instrument
obj is a usbtmc object.
size Number of values to read. (Default: 100).
precision precision of data.
data The read data.
count values read.
errmsg read operation error message.
[data, count] = usbtmc_read (usbtmc, n) ¶Read from usbtmc slave device.
usbtmc - instance of octave_usbtmc class.
n - number of bytes to attempt to read of type Integer.
count - the number of bytes successfully read as an Integer.
data - the read bytes as a uint8 array.
n = usbtmc_write (usbtmc, data) ¶Write data to a usbtmc slave device.
usbtmc - instance of octave_usbtmc class.
data - data, of type uint8, to be written to the slave device.
Upon successful completion, usbtmc_write() shall return the number of bytes written as the result n.