Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More QB64PE at work
#1
Making electrical engineering less tedious, but now using InForm.

The electrical code requires that conductors be sized so that there is no more than 3% voltage drop from the nominal voltage at the farthest point of the circuit. As an experiment, I wrote a program using InForm to calculate voltage drops in circuits. It can analyze a single load at the end of a circuit or a series of loads along a circuit (think streetlights.) 

Doing the actual engineering is interactive, a combination of engineering science and economic considerations. If the voltage drop is too high, which parts of the circuit do you select to upsize the conductors, and by how much?

This is not finished, I have some thoughts for more features to add later. But the program works as it stands now.

Comments and suggestions are welcome.



[Image: Screenshot-2025-05-30-215017.png]


Attached Files
.zip   VDrops.zip (Size: 7.8 KB / Downloads: 8)
It's not the having, it's the doing.
Reply
#2
don't know anything about electric engineering but the form looks good  Big Grin
is this your first venture using InForm-PE ?
how long did it take you from start to finish ?
Reply
#3
I would change the CUM thing!  Tongue

What is Cum?
Reply
#4
@kernelpanic maybe it will be turned in C.U.M. that can be read without suspect about meaning.

@bobalooie
I like to see a program made using Inform-pe library because I like the event driven coding.
But I understand just nothing about electrical circuit and voltage calculations. My electrical knowledge is too basic.
However thanks for sharing, surely there are persons that can appreciate much more this your app.
Reply
#5
(Yesterday, 02:32 PM)Jack Wrote: don't know anything about electric engineering but the form looks good  Big Grin
is this your first venture using InForm-PE ?
how long did it take you from start to finish ?

It's not my first InForm program. My first one was R2P, a rectangular-to-polar-and-vice-versa converter that also graphed the angle. a740g put it into his example programs.

https://github.com/a740g/InForm-PE/tree/master/examples

(Yesterday, 03:12 PM)Kernelpanic Wrote: I would change the CUM thing!  Tongue

What is Cum?

Cum is shorthand for Cumulative, the total of all the voltage drops. Makes for an easy reference to see where the circuit exceeds 3%. Electrical types will understand.
It's not the having, it's the doing.
Reply
#6
(Yesterday, 04:31 PM)TempodiBasic Wrote: @kernelpanic maybe it will be turned in C.U.M. that can be read without suspect about meaning.

@bobalooie
I like to see a program made using Inform-pe library because I like the event driven coding.
But I understand just nothing about electrical circuit and voltage calculations. My electrical knowledge is too basic.
However thanks for sharing, surely there are persons that can appreciate much more this your app.

I am guessing your electrical knowledge isn't so basic that you don't know about Ohm's Law. Electricity 101. This analysis is roughly a series of resistors (the wires) and calculating the voltage drop across each resistor: V=IR. The major difference is, since these are AC circuits the resistance isn't simple ohms like in a DC circuit.
It's not the having, it's the doing.
Reply
#7
Quote:@bobalooie - Cum is shorthand for Cumulative, the total of all the voltage drops. Makes for an easy reference to see where the circuit exceeds 3%. Electrical types will understand.
I have thought myself that this meant something different, but that could easily lead to misunderstandings for some people. I would rename it C(K)umulative VD, since the other points are also two-line.

Creating a form in InForm was actually as easy as in Visual Basic, but I got stuck with variables for calculations. It became too complicated and time-consuming for me. It's a shame, because this way it's pretty close to, or even surpasses, VB in terms of Basic.
Reply
#8
(Yesterday, 05:05 PM)bobalooie Wrote:
(Yesterday, 02:32 PM)Jack Wrote: don't know anything about electric engineering but the form looks good  Big Grin
is this your first venture using InForm-PE ?
how long did it take you from start to finish ?
It's not my first InForm program. My first one was R2P, a rectangular-to-polar-and-vice-versa converter that also graphed the angle. a740g put it into his example programs.
https://github.com/a740g/InForm-PE/tree/master/examples


Hope you don't mind if I add this one as well. These make great test candidates whenever I make changes or updates to InForm. The form itself looks really neat!
Reply
#9
The form does look great, I wonder what it would look like with typical data in it.
b = b + ...
Reply




Users browsing this thread: 1 Guest(s)