-
March 14th, 2004, 10:49 AM
#1
logging data to note pad?
This should be easy but I cant seem to find any info on it. I want to log the on/off data of a joystick "switch" to note pad with time/date also.
What I am trying to do is see how long my hot water heater runs before I install a solar preheater, "so I can tell any change in energy usage" I plan to just use a 220 volt relay hooked to a joystick switch to input the on/off state of the water heater I can handle that part , it's just getting the data logged in some way that I'm lost.
Thanks for any help
-
March 14th, 2004, 10:56 AM
#2
Why not just use the logger plugin?
Or just use lua to open a file and write events out to it.
-
March 14th, 2004, 12:07 PM
#3
the logger does work, and I can just copy and paste the results in a spread sheet. could you tell me how to write the datato a file like a txt or xls with lua? at least a starting point I dont expect you to do all the work for me
-
March 14th, 2004, 01:58 PM
#4
www.inf.puc-rio.br/~roberto/luabook1.pdf is a good resource.
It includes a chapter on reading/writing files.
Jim Hughes
-
March 14th, 2004, 02:28 PM
#5
Think Jim.
You also could use the FileSystemObject - link is in the luacom thread.
-
March 14th, 2004, 07:08 PM
#6
wow, thats a little deep, lol. I think I'll just copy and paste for now till I learn a little more about lua.
-
March 15th, 2004, 12:40 AM
#7
Well its all up and running, pretty cool I found the heater runs for about 4 mins just from washing your hands with hot water, lol I would like to know if the date format in the logger can be changed to xx/xx/xx for use in excel?
-
March 15th, 2004, 06:04 AM
#8
It probably could be but our main priority is work on G4 right now.
-
March 15th, 2004, 10:49 AM
#9
-
March 15th, 2004, 11:07 AM
#10
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules