TIO MATLAB

The text mode for all Twinleaf devices makes it easy to issue commands using a variety of languages without formally supported drivers. In MATLAB, it is possible to issue text mode commands like this:

s = serial('COM1');
fopen(s)
fprintf(s,'coil.x.current 5.0')
fclose(s)

And read data streams using simply:

s = serial('COM1');
fopen(s)
data_string = fscanf(s,'%i %g');
fclose(s)

Where this would unpack a sample number followed by a floating point number. It should be possible to achieve a variety of controls using these tools.