Hello Guest it is April 25, 2024, 04:22:16 PM

Show Posts

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.


Messages - thespindoctor

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
31
Mach4 General Discussion / Re: Lua file operations
« on: April 26, 2018, 11:06:41 AM »
Just a simple one line write to a file!

32
Mach4 General Discussion / Re: Lua file operations
« on: April 26, 2018, 09:37:27 AM »
No it works fine now.  I had another script running that created a global variable for path and file but then I stored that file name in a local variable.  This caused the issue.  When I use the global variable, it works fine!

33
Mach4 General Discussion / Re: Lua file operations
« on: April 25, 2018, 09:17:04 PM »
Working now.  I just simplified the variables and it is working.  I had been saving the file name from a variable into an easier variable. Leaving it in the first variable worked.

34
Mach4 General Discussion / Re: Lua file operations
« on: April 25, 2018, 07:47:50 PM »
Could be an issue since i first open the file to read it then check to find a zero length.  Then close it and reopen it for writing

35
Mach4 General Discussion / Re: Lua file operations
« on: April 25, 2018, 07:45:48 PM »
That is whatI am doing but the strange thing is it works only when there is at least one character on rhe first line.

I have tried all kinds of manipulations.  Everything works as expected with a file that is not empty.

Nothing works on an empty file...

36
Mach4 General Discussion / Lua file operations
« on: April 25, 2018, 05:23:01 PM »
I cannot get Lua to write to an empty file.  I create the file nicely and if I put a character on the first line then the write command works fine
If I create a file which is empty, then the commands do not work.

Anyone have this problem?

THanks

37
Mach4 General Discussion / Re: stuck in plc
« on: April 25, 2018, 04:23:18 PM »
I have many of those moments too!

38
Mach4 General Discussion / Re: stuck in plc
« on: April 24, 2018, 06:24:04 PM »
Relief, it worked but used /e to come up in edit mode

Thanks so much!

39
Mach4 General Discussion / stuck in plc
« on: April 24, 2018, 06:09:24 PM »
Help, I put an wx.wxmessagebox in the PLC script and I cannot get out of it

Thanks

40
PoKeys / Re: help with analog voltage inputs
« on: April 08, 2018, 01:40:49 PM »
Reply from Polabs this is correct.  Register is fraction of total value. So 1=3.3 volts

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »