res = fopen (obj) (dummy) ¶Opens VXI11 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 vxi11 instrument
obj is a vxi11 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.
vxi11 = vxi11 (ip,instr) ¶Open vxi11 interface.
ip - the ip address of type String. If omitted defaults to ’127.0.0.1’. instr - the instrument name of type String. If omitted defaults to ’inst0’.
The vxi11() shall return instance of octave_vxi11 class as the result vxi11.
(vxi11) ¶Close the interface and release a file descriptor.
vxi11 - instance of octave_vxi11 class.
[data, count] = vxi11_read (vxi11, n) ¶Read from vxi11 slave device.
vxi11 - instance of octave_vxi11 class.
n - number of bytes to attempt to read of type Integer.
The vxi11_read() shall return number of bytes successfully read in count as Integer and the bytes themselves in data as uint8 array.
n = vxi11_write (vxi11, data) ¶Write data to a vxi11 slave device.
vxi11 - instance of octave_vxi11 class.
data - data to be written to the slave device. Can be either of String or uint8 type.
Upon successful completion, vxi11_write() shall return the number of bytes written as the result n.