Software/MATLAB
From ZaberWiki
< Software
While Zaber staff don't have any experience using MATLAB, a Zaber customer, Mark Holton, kindly sent in this snippet as a starting point for sending commands from MATLAB. NOTE: the instrument control toolbox may be necessary. See the Zaber user manual for the details of how to calculate the byte values in each command packet.
% ##############################################
s = serial('com1','BaudRate',9600)
fopen(s)
command_renumber = [0 2 0 0 0 0]
command_home = [1 1 0 0 0 0]
fwrite(s,command_renumber)
pause(1)
fwrite(s,command_home) % assuming that the actuator is extended before this
% ##############################################
Another customer, John Middendorf, expanded this into an example program that also reads responses and has a graphical user interface.
Many thanks to both of them.
