NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 50 51 52 53 54 … 159 Next »
coding/programming question (non-gbpvr related)

 
  • 0 Vote(s) - 0 Average
coding/programming question (non-gbpvr related)
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#1
2009-05-09, 11:22 PM
Ok, so im currently building a solar space heater, in the typical kiwi #8 wire style - entirely home made. I will be making my own panels from old windows, getting a pair of pumps, and an old hot water cylinder/storage tank in which i will house water + rocks to hold the heat (heavily insulated). The basis of the system is such -

10m2+ of solar collector panels running water through some kind of heat exchanger (havent gotten entirely to that part yet, still deciding on materials/construction)
1x 200L+ tank with rocks to appreciate sufficient thermal mass
1x car heatercore + fan (obviously boxed up nicely as not to look terrible!)
2x pumps

so, when outside temp is hot enough that it will be generating decent heat vs the tank temperature, pump will operate to collect heat through solar panels.

internal pump will work when the following conditions are met - A) tank temp is significantly higher than internal temperature. B) time is within set limits/manual override is set to heat room.

I am heating a relatively small space, total of 30m2 or so, so nothing too significant. Obviously building this system with a view to increase panel size etc and have a decent project with it.

Temp sensing is done by dallas 1-wire sensors through serial port. 4 temp sensors monitor internal temp, tank top/bottom temp, and panel temp.
So far i am either logging through the two following methods -

using digitemp for windows - http://digitemp.com/software/windows/
or using logtemp (which i have found pretty damn good)
- http://www.mrsoft.fi/ohj01en.htm


now, to control the pump/fans i want to use relays via the parallel port of my pc - there are multiple ways of doing this, in many programming languages. I will be using windows xp as i will run it off my main gbpvr box, at least at first. both of the above progs output data from each sensor individually named with its own serial number for input into other programs. Logtemp offers many options for this, from xml, to csv, to straight to an sql db.

Now, my question is - i can program to the parallel port in many languages. What language would people recommend?

my options go from turbo c, to c#, to vb, java... i have had a very small amount of experience with vb in excel, but thats pretty much it. So i will be teaching myself from scratch - what i want to know is, what would be best for me to learn for future projects/programming? i dont want to learn a dead language!

any help appreciated Smile

oh, of course - eventually i want to make a plugin for my gbpvr to be able to control the heating/cooling/variables with my remote, but thats the last step! This system wont be hot water heating just yet either, as i am in a rental - but i plan to make it able to be moved to a house when we buy one to be plumbed into the hot water to give hot water solar heating as well, with a 3rd pump + more sensors.
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#2
2009-05-10, 10:09 AM
45 views + no opinions? im leaning towards c++ at present...
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#3
2009-05-10, 12:43 PM
I'm a C++ developer and never had problems finding work so I would vote for C++. Once you know C++, learning C# to write a gbpvr plugin is easy.
SLR_65
Offline

Senior Member

Posts: 472
Threads: 61
Joined: May 2008
#4
2009-05-10, 05:01 PM
C is a very versatile language and well worth learning.

day++
dollar++

/Steve
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2009-05-10, 06:12 PM
Etacovda Wrote:45 views + no opinions?
Well you did post in the General Discussion section so what do you expect? Big Grin

Quote:im leaning towards c++ at present...
As others have said C/C++ is probably the best option for you. C in particular when dealing with I/O ports as, in many cases, it's only one level of abstraction away from the hardware.

I programmed in C/C++ about 11 or 12 years ago then had an 8 year break because the company I worked for used VB6/VBA (yeuch). When I started with C# about 4 years ago, I took to it like a duck to water.

Cheers,
Brian
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#6
2009-05-10, 10:24 PM
I would look at the open source apps for home automation. Python, perl, etc. would be possible options as well.
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#7
2009-05-10, 11:15 PM
bgowland Wrote:Well you did post in the General Discussion section so what do you expect? Big Grin

As others have said C/C++ is probably the best option for you. C in particular when dealing with I/O ports as, in many cases, it's only one level of abstraction away from the hardware.

I programmed in C/C++ about 11 or 12 years ago then had an 8 year break because the company I worked for used VB6/VBA (yeuch). When I started with C# about 4 years ago, I took to it like a duck to water.

Cheers,
Brian

haha, yeah i didnt want to post it in developers since its so vastly OT - i think C wouldnt be a silly thing to use. I will look at home automation appts but I would rather learn a language for future projects than use a 'ready set go' sort of arrangement in which i would learn nothing. I will try C.

Thanks Guys Smile
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
Etacovda
Offline

Senior Member

Posts: 253
Threads: 37
Joined: Apr 2006
#8
2009-05-11, 04:45 AM
ok, so ive started learning visual c++. Looks like ill have a lot of fun ahead of me - very rewarding though!

cout <<" hello world" and all that
[SIZE="3"]HTPC: [/SIZE]3000+ A64 | Gigabyte k8N 939 SLI | 1 gb ddr 400 | 2x mce150 tuners + mce remote | 1x Pinnacle 7010xi dual dvb-s, dual dvb-t tuner, 2xSky motorolla decs with IR server Suite changing channels via MCE remote| ati x1600 pro | 1x250 1x320 gb Seagate IDE drives | 29" sony CRT via svideo | Windows XP sp2
[SIZE="3"]Clients: [/SIZE]2x desktop pc's, 1 wired MVP connected to a 29" mitsubishi
CornStopper
Offline

Member

Posts: 70
Threads: 9
Joined: Jan 2005
#9
2009-05-11, 09:49 AM
You would find using VB to control the parallel port difficult, in my experince, the best language to control the port at a low level is c, c++ or visual C, very powerful when it comes to controlling the ports.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Quick Question about Daylight Saving Time SamM 1 752 2023-10-29, 02:59 AM
Last Post: mvallevand
  Kodi and NextPVR question RoshaBeli 1 1,312 2021-08-30, 07:05 PM
Last Post: sub
  Question about a cable card RTKAT 9 4,790 2015-12-12, 12:15 AM
Last Post: mvallevand
  windows xp on my gbpvr box jam_zhou 2 2,001 2014-02-14, 09:19 PM
Last Post: mvallevand
  forums.gbpvr.com now my homepage due to olympics... johnsonx42 5 2,649 2014-02-14, 02:30 PM
Last Post: nitrogen_widget
  Life After GBPVR - A Cautionary Tale of Moving to a Cable Company DVR bdgbill 2 2,556 2013-06-01, 11:34 PM
Last Post: mvallevand
  GBPVR to NEXTPVR migration - benefits? ram4x4nut 26 8,334 2012-10-16, 12:07 PM
Last Post: imilne
  Forum interface stupid question Grampz 3 1,804 2012-01-21, 12:48 AM
Last Post: Grampz
  Question for the americans :) skippy_nz 4 2,327 2011-09-17, 09:25 AM
Last Post: skippy_nz
  Sound question CATV DTV Jimdish255 2 2,051 2011-05-13, 01:23 AM
Last Post: Jimdish255

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode