701
Mach4 General Discussion / Re: Mach 4 licence not instaling
« on: September 06, 2015, 11:54:10 AM »
Same Here?? I only have 1 computer using Mach4 and so far i'm on 3rd licence...
DazTheGas
DazTheGas
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
local inst = mc.mcGetInstance()
mc.mcCntlSetLogging(inst, 1)
local done = ''
function WriteLog()
local var = mc.mcCntlGetLastLogMsg(inst)
if var == done then
return
else
file =io.open("Output.log", "a")
file:write(var..'\n')
file:close()
done = var
end
end
if testcount > 5 then WriteLog() end
local inst = mc.mcGetInstance()
package.path = mc.mcCntlGetMachDir(inst) .. "\\Modules\\?.mcc;"
DTG_Widget = require "DTG_MDI"
DTG_Widget.LoadMDI(1000,300)
local inst = mc.mcGetInstance()
package.path = mc.mcCntlGetMachDir(inst) .. "\\Profiles\\" .. mc.mcProfileGetName(inst) .. "\\Modules\\?.mcc;"
DTG_Widget = require "DTG_MDI"
DTG_Widget.LoadMDI(1000,300)
--local inst = mc.mcGetInstance() -- not needed if already declared
local val = mc.mcSpindleGetCurrentRange(inst)
mc.mcProfileWriteInt(inst, 'SpindleDefaultRange','Range',val)