41
Mach4 General Discussion / Re: analog input voltage issues in Mach4
« on: April 08, 2018, 01:08:03 PM »
Reply from Polabs this is correct. Register is fraction of total value. So 1=3.3 volts
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.
Hi,
this is so helpful it lives on my desktop when coding:
https://www.lua.org/manual/5.2/
The section you want is 6.8
Craig
local newname = wx.wxGetTextFromUser("Enter a name","Name Entry Screen",name,1,3)
inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
local stuff="--one,two,three"
local location=path .. "\\testfile.csv"
wx.wxMessageBox(location)
file = io.open(location,"a+")
file:write(stuff)
file:close()