Trying to turn on output # 5 on my g 540 control to supply a Neg to my TTL relay for a laser . Tried a script from 2016 posted here , did not work function , m10()
local inst = mc.mcGetInstance();
mc.mcCntlSetLastError(inst, "Turning on OUTPUT5");
local hsig = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT5);
mc.mcSignalSetState(hsig, true);
end
if (mc.mcInEditor() == 1) then
m10()
end
Any suggestions ? ED