Hi Edward,
OutputChan0=36; is invalid. I suppose by some luck it works. You should specify the Step/Direction Generator and Mode. Not the IO number. See:
Channels Channels Channels - Dynomotion
and
Step and Direction Setup
The wiring for the Opto Input looks all correct.
Is the Enable LED on Kanalog on? If not there is no communication with Kanalog. Kanalog requires too much power for USB power. Make sure you have a +5V supply for KFLOP/Kanalog good for at least 2 Amps.
Regards