|
|
|
WEL programming - complex functions
Last Post 29 Apr 2011 05:05 PM by jonr. 9 Replies.
|
Sort:
|
|
Prev Next |
You are not authorized to post a reply. |
|
decafdrinker
 Basic Member
 Posts:420
 |
| 20 Mar 2011 09:29 PM |
|
Sorry if this is mis-posted.
I have a WEL (0487), and would like to be able to eliminate the decimal part of a number. I can't seem to do so. In BASIC (remember BASIC?) you could do y=int(X), and if x=1.33, y would be just 1.
In the WEL, I had a number 45.454323. I figured it had a 6 decimal place accuracy. I tried dividing it by 1,000,000 to get 0.000045, then multiplying by 1,000,000 to get 45.0, but I still got 45.454323 anyway!
Any tricks/tips to get rid of the decimal, but keep the whole number?
|
|
|
|
|
|
|
Looby
 Basic Member
 Posts:401

 |
| 20 Mar 2011 10:13 PM |
|
Posted By decafdrinker on 20 Mar 2011 09:29 PM
I tried dividing it by 1,000,000 ...
What scripting/programming language? |
|
| One measurement is worth a thousand expert opinions. |
|
|
docjenser
 Veteran Member
 Posts:1400
 |
| 20 Mar 2011 10:58 PM |
|
I suggest to email Phil Malone, at webmaster(at)OurCoolHouse.com ...Replace (at) with @ |
|
| www.buffalogeothermalheating.com |
|
|
GBT_energy_freak
 New Member
 Posts:13
 |
| 22 Mar 2011 09:55 AM |
|
Are you talking about WEL Function Approximation for Confined Aquifers? |
|
|
|
|
pwagner3
 New Member
 Posts:13
 |
| 22 Mar 2011 12:33 PM |
|
I think he's talking about the Web Energy Logger (WEL) system at http://www.welserver.com/store.htm |
|
|
|
|
Bill Neukranz
 Veteran Member
 Posts:1103
 |
| 28 Apr 2011 05:46 PM |
|
Posted By decafdrinker on 20 Mar 2011 09:29 PM Sorry if this is mis-posted.
I have a WEL (0487), and would like to be able to eliminate the decimal part of a number. I can't seem to do so. In BASIC (remember BASIC?) you could do y=int(X), and if x=1.33, y would be just 1.
In the WEL, I had a number 45.454323. I figured it had a 6 decimal place accuracy. I tried dividing it by 1,000,000 to get 0.000045, then multiplying by 1,000,000 to get 45.0, but I still got 45.454323 anyway!
Any tricks/tips to get rid of the decimal, but keep the whole number?
I'm just now seeing this. I believe the WEL does all of it's internal calculations maintaining 6 digits to the right of the decimal point. For display of numbers on the real time image, you can tell it how many digits to post to the right of the decimal point, including none. For data logging, you get a fixed 2 digits to the right of the decimal point. For Expressions, I don't know of any way to maintain access only to the whole number portion of a value. Best regards, Bill |
|
Energy reduction & monitoring</br> American Energy Efficiencies, Inc - Dallas, TX <A href="http://www.americaneei.com"> (www.americaneei.com)</A></br> Example monitoring system: <A href="http://www.welserver.com/WEL0043"> www.welserver.com/WEL0043</A>
|
|
|
jonr
 Senior Member
 Posts:5341
 |
| 28 Apr 2011 09:50 PM |
|
You can try adding a large number to it and then subtracting it back out. In other words, with exponents, 45.5 and .0000455 are equally accurate to store. But going to 100045.5 and then later subtracting 100000 *might* get it to drop to 45 if it only stores 6 digits. Or try 10000000 (which works on some other systems). |
|
|
|
|
decafdrinker
 Basic Member
 Posts:420
 |
| 29 Apr 2011 07:37 AM |
|
I'll give that a try, Jonr. I've also pitched to Phil (WEL programmer) about an "INT" function. What I'd really like to do is take the hours decimal count, and use INT to convert it to Hours & Minutes, rather than 10.5 hours, show 10 hours 30 minutes. I'm also curious if there's a way to get the WEL to remember WHEN the "today's high" and "today's low" occurred. I'm trying to think if there's a way to program that. |
|
|
|
|
Bill Neukranz
 Veteran Member
 Posts:1103
 |
| 29 Apr 2011 04:10 PM |
|
Posted By decafdrinker on 29 Apr 2011 07:37 AM I'll give that a try, Jonr. I've also pitched to Phil (WEL programmer) about an "INT" function. What I'd really like to do is take the hours decimal count, and use INT to convert it to Hours & Minutes, rather than 10.5 hours, show 10 hours 30 minutes.
I'm also curious if there's a way to get the WEL to remember WHEN the "today's high" and "today's low" occurred. I'm trying to think if there's a way to program that. I don't know if it's possible to manually implement an 'INT' function. And likewise, I don't know if it's possible to manually record *when* the high or low of a day (or month) occured. Keep in mind that the WEL is exceptionally low cost. $400 gets you commercial/industrial reliability, real time display and charting on an included dedicated Web site, advanced arithmetic processing capabilities (i.e. it's not just a real time display system or just a data logger), and as fast as every 60 second perpetual data logging to an included dedicated off-site location, all without recurring cost (i.e. no subscription fees). Plus, with the WEL being an Internet Appliance, there's no s/w to install or computing equipment to have to have present. My guess is that our 'nice to haves' that don't have broad market appeal are probably not going to happen (i.e. I'd sure like to see the 60 second delay fixed, and ability to go back and fix a chart, but, that's probably not very representative of what's now over 500 WEL units in the field). Best regards, Bill |
|
Energy reduction & monitoring</br> American Energy Efficiencies, Inc - Dallas, TX <A href="http://www.americaneei.com"> (www.americaneei.com)</A></br> Example monitoring system: <A href="http://www.welserver.com/WEL0043"> www.welserver.com/WEL0043</A>
|
|
|
jonr
 Senior Member
 Posts:5341
 |
| 29 Apr 2011 05:05 PM |
|
Perhaps Phil will consider releasing some aspects of the system so that others can add functions. Ie, copyrighted but open source.
|
|
|
|
|
| You are not authorized to post a reply. |
|
Active Forums 4.1
 |
Membership: |
 |
Latest:
croccohvacusa |
 |
New Today:
0 |
 |
New Yesterday:
0 |
 |
Overall:
35027 |
 |
People Online: |
 |
Visitors:
330 |
 |
Members:
0 |
 |
Total:
330 |
|
|
|