Nodes: spinner0: #disk one Type: Spinner Parameters: motor: Hardware.Motor0 #define the stepper to use rotationDuration: ..duration #define the speed spinner1: #disk two Type: Spinner Parameters: motor: Hardware.Motor1 #define the stepper to use rotationDuration: ..duration #define the speed Connections: #here we connect the movements .started: - .spinner0.start .spinner0.stopped: - .spinner1.start #when disk 0 stopped, start disk 0 .spinner1.stopped: - .spinner0.start #when disk 0 stopped, start disk 1
Once again, the control (from a PC) can be done with two simple lines:
local graph = actiongraph.ContextGraphPath actiongraph.SetPram(graph .. 'duration', 1.5)