API Reference#
To define an experiment, use MainCreateSimulation.m.
To directly send instructions to the controller, you can use the SendInstructionsToUSB() function.
- SendInstructionToUSB(dev, msg, nInstr)#
Sends a defined number of instructions to the controller.
- Parameters:
dev (
serialport) – serialport in MATLAB.msg (
String) – String to send.nInstr – Int
- Returns:
String returned from controller (I think)
- SendInstructionToUSB(dev, msg, nInstr)#
Sends a defined number of instructions to the controller.
- Parameters:
dev (serialport) – serialport in MATLAB.
msg (String) – String to send.
nInstr – Int
- Returns:
String returned from controller (I think)
Marv-code syntax list#
startStarts motor movement with previously defined positions at the previously set rate.stopImmediately stops motor movement.infoWrites out information about machine state to serial,OK: Info: state: READY, mode POSITION, command 25 of 25, rate: 20hz, spmm: 10
set rate nnn.nnnset the amount of positions to handle in one second.set spmmSpecifies how many steps the motor has to drive to move the plate one millimeter.add nnn.nnnAdds a position at the end of list.resetResets all positions from memory.