Connect with us

Art of Electronics Rave - NON Politix! :-)

Discussion in 'Electronic Design' started by Rich Grise, Jan 13, 2005.

Scroll to continue with content
  1. JeffM

    JeffM Guest

    "Floating Paraphase Amplifier" ?
    What I see is
    phase
    splitter 77, 101

    77 Rc == Re
    101 Diff amp
     
  2. John Larkin

    John Larkin Guest


    Well Microslop makes VB, and PowerBasic makes PB. PB is actually
    evolved from Borland TurboBasic. It compiles anything in about 0.1
    seconds and executes something like 20x as fast as VB. It uses the old
    INPUT..PRINT paradigm, like all the classic DOS and other Basics.

    It is a clean modern language, with all the fancy CASE and WHILE type
    structures, formal subs, labels, and pointers if you care for that
    sort of thing (I'm a flat, state machine, GOTO programmer myself.)
    Inline assembly, too. I like the Dos3.5 version because it has nice
    inherent graphics, but there's also the Console Compiler, the 32-bit
    version that has the TCP/IP and email hooks and stuff. I've used that
    to do stuff like rom image builders that need megabyte arrays. There's
    also a Windows version if you'd enjoy learning a few thousand API
    calls.

    Hey, my arbitrary waveform thing converged the first time I tried it.
    Seriously cool.



    Here's a very small program I hacked one day...


    ' LNORM : NORMALIZE AN LC FILTER

    DEFDBL A-Z

    PI2 = 2 * 3.14159265#

    C1 = 1.361 ' PROTOTYPE VALUES
    L1 = .454 ' 2ND ORDER BESEL FILTER, HI-Z OUT
    R1 = 1
    W1 = 1

    RN = 50 ' NORMALIZED RESISTANCE
    WN = 1000 * PI2 ' AND RADIAN FREQUENCY


    TOP:

    LX = (RN / R1) * (W1 / WN) ' INDUCTOR NORM FACTOR

    CX = (R1 / RN) * (W1 / WN) ' CAP NORM FACTOR

    F1 = W1 / PI2
    F9 = WN / PI2

    C1N = C1 * CX
    C2N = C2 * CX
    C3N = C3 * CX
    C4N = C4 * CX

    L1N = L1 * LX
    L2N = L2 * LX
    L3N = L3 * LX
    L4N = L4 * LX


    LOCATE 1, 1
    CLS

    PRINT " LCNORM.EXE : NETWORK NORMALIZER"
    PRINT
    PRINT USING "R1 = ###,###.### RN =
    ###,###.###"; R1; RN
    PRINT USING "W1 = ###,###,###,###.### WN =
    ###,###,###,###.###"; W1; WN
    PRINT USING "F1 = ###,###,###,###.### FN =
    ###,###,###,###.###"; F1; F9

    PRINT
    PRINT " FFF.mmmuuunnnpppfff FFF.mmmuuunnnpppfff"
    PRINT USING "C1 ###.############### C1n
    ###.###############"; C1; C1N
    PRINT USING "C2 ###.############### C2n
    ###.###############"; C2; C2N
    PRINT USING "C3 ###.############### C3n
    ###.###############"; C3; C3N
    PRINT USING "C4 ###.############### C4n
    ###.###############"; C4; C4N
    PRINT
    PRINT " HHH.mmmuuunnnpppfff HHH.mmmuuunnnpppfff"
    PRINT USING "L1 ###.############### L1n
    ###.###############"; L1; L1N
    PRINT USING "L2 ###.############### L2n
    ###.###############"; L2; L2N
    PRINT USING "L3 ###.############### L3n
    ###.###############"; L3; L3N
    PRINT USING "L4 ###.############### L4n
    ###.###############"; L4; L4N

    PRINT
    PRINT "Enter a command as C1 23.67 or Q to quit"
    PRINT
    INPUT ">>> ", A$
    A$ = UCASE$(A$)

    L$ = LEFT$(A$, 2)
    V$ = MID$(A$, 3)
    V = VAL(V$)

    IF L$ = "C1" THEN C1 = V
    IF L$ = "C2" THEN C2 = V
    IF L$ = "C3" THEN C3 = V
    IF L$ = "C4" THEN C4 = V
    IF L$ = "L1" THEN L1 = V
    IF L$ = "L2" THEN L2 = V
    IF L$ = "L3" THEN L3 = V
    IF L$ = "L4" THEN L4 = V

    IF L$ = "RN" THEN RN = V
    IF L$ = "WN" THEN WN = V
    IF L$ = "FN" THEN WN = V * PI2

    IF L$ = "R1" THEN R1 = V
    IF L$ = "W1" THEN W1 = V
    IF L$ = "F1" THEN W1 = V * PI2

    IF LEFT$(A$, 1) = "Q" THEN GOTO PEX


    GOTO TOP

    PEX: END
     
  3. john jardine

    john jardine Guest

    The dealers have got us by the balls!.
    In UK it's ludicrous. Copyright on written material lasts something like 75
    years after an authors death. The author may have written their classic when
    20, so the only books guaranteed to be out of copyright and freely copyable
    are those that were written before about 1840.
    Meanwhile, all the interesting technical books have come and gone. Maybe
    available for 3 years, never reprinted, subsequently lost from view.
    The system is geared such that there's no copies in the shops and it's
    illegal to make a copy. The bookdealers though are allowed to rip us off,
    yet the author never sees a penny.
    Only way out is to borrow the book via the library system and piously sign
    the form saying it won't be copied.
    Hence, all the out of print technical books ordered from a UK library have
    broken spines and insist on offering their pages up in a pre-flattened form,
    almost quivering to make the copier glass journey.
    regards
    john
     
  4. Clarence_A

    Clarence_A Guest

    TNX, I didn't think it was in there. Been a long time so I wasn't
    sure.

    The FPA is a very specific type!
     
  5. Jim Thompson

    Jim Thompson Guest

    [snip]

    Well that settles it... in my Pascal days I was a Borland fan. And
    their spreadsheet program... can't remember the name now :-(

    ...Jim Thompson
     
  6. mc

    mc Guest

    [Various people wrote:]

    One thing worth knowing about .NET Framework (Visual Studio, etc.) is that
    the console interface is fully supported! And easier to use than ever.
    Apparently, for some years, they toyed with getting rid of this, but it's
    back and is a first-class citizen.
     
  7. mc

    mc Guest

    I'm not sure if I'm the other one of the "two," but I agree. If you want to
    get good results in a hurry, and if you're pretty good at devising
    algorithms and merely want to express them as quickly as possible, Visual
    Basic is a good choice.

    If you were designing a relatively big object-oriented program, or if you
    wanted an elegantly designed language in the C++/Java tradition, I'd say C#.
    But Basic is easier to learn piecemeal.
     
  8.  
  9. Jim Thompson

    Jim Thompson Guest

    Yep, that's it.

    ...Jim Thompson
     
  10. Kryten

    Kryten Guest

    Good luck. Most libraries I know have very few worthwhile electronics books.
    I found stuff on valves (interesting, but hardly contemporary).
    If I get the 3rd edition of the AoE, I'll donate my 2nd edition to my local
    library reference section.
    I'm amazed students don't get together at the start of term, club together
    to buy one of each text book, scan them and put them all on CD. If 30
    students bought one set of textbooks they could each scan a 30th of each
    book. I expect some people would do a better job than others. But even if
    they each chipped in a few bucks each for the person scanning a book (or
    books), they would save a lot of beer money.

    I've scanned a few books I legitimately own the right to read. The labour
    cost is arguably more than the books cost. However, some are no longer
    printed and existing copies are tatty. Some are rarely used by me but you
    can bet I'd need them a week after I discarded them.

    Mainly I just find it a burden transporting a library that fills four metres
    or shelf and weighs tens of kilos. Especially as I have to move home again
    soon...
     
  11. mc

    mc Guest

    Turbo Pascal 3 is now freeware and is still very handy under Windows.
     
  12. I've gotten not too bad at scanning books, but I have a legitimate
    reason! :cool:

    My wife is blind. Often, the only versions of the textbook available in
    a timely fashion is print only, so I get to scan them (often just a
    chapter at a time) just so she can 'read' them with her screen reader.
    Modern books with all the fancy schmancy graphics behind the text (You
    think they do that just because it looks nice!) and all the little side
    paragraphs and insets are a bugger-bear to OCR reliably. Often I scan a
    chapter in 2 minutes, and spend 45 'editting' it so that it makes some
    sort of sense...
     
  13. Guy Macon

    Guy Macon Guest

    When Borland stopped selling TurboBasic and decided to concentrate
    on Pascal, the original author (Bob Zale) bought the rights to it,
    renamed it PowerBASIC, and has been improving it ever since.
    Before it was TurboBasic, it was BASIC/Z for MDOS, and begfore that
    it was BASIC/Z for CP/M - all written by Bob Zale.
     
  14. Kryten

    Kryten Guest

    Hmm, if I were an author I would consider that a fair use.
    I've found magazines often put text in shaded boxes.
    This is a nuisance, one has to adjust the black/white threshold.
    Wow, it takes me about 40 seconds to scan a page, turn it and reposition it
    for the next scan.
     
  15. john jardine

    john jardine Guest

    My local library is full of bodice rippers and crime novels but if I call
    with a library card and fill a slip in, they'll get me *any* book, magazine,
    article or technical reference that I ask for. May take a few weeks but the
    Boston Spa repository seems to have a copy of everything ever printed.
    Same here. I've seen a few scanned 'technical' books out there but they seem
    few and far between. Maybe 30 university DSP and RF design books, a number
    of US military technical training manuals and that's about it (also
    fleetingly seen a 70MB AoE pdf!).
    I find it's a ballache reading a book off screen and am still about 1000:1
    in favour of paper but ... have a nasty habit of scribbling on the few books
    I use a lot, so like you I'm starting to scan 'em in, a pain but modern
    books are so poor quality I'll not be buying 'em a second time!. 25 years of
    collecting military radios leaves me with piles of ephemeral documentation.
    I'm scanning that lot although copyright says I'm not supposed to.
    Other people must be doing lots and lots of the same, probably just a
    question of time before much more of it surfaces.
    If publishers weren't so obviously grasping and inefficient, then a constant
    revenue stream could be sourced by having all their back catalogues opened
    up for 'publish on demand' at affordable pricing. Google are moving in
    this direction but I know for sure that UK Plc wise, publishers and others
    will be looking for ridiculous access charges.
    regards
    john
     
  16. Guy Macon

    Guy Macon Guest

    Real world example: a program written in Visual Basic took
    several MB of RAM. The same program in PB/CC used less than 100K.
    Run time went from "go-get-a-cup-of-coffee" to "done-as-soon-as-
    your-finger-leaves-the-enter-key." PB/CC is less buggy than VB.
    And the documentation is better. So are the profiling and
    debugging tools. So is the support from the manufacturer.
    And it lets you write inline assembly language to access that
    weird device you just built and put on the PCs bus.

    Take a look here:
    http://www.powerbasic.com/products/pbcc/
    http://www.powerbasic.com/support/technote/features.asp

    I will give VB the edge over PB/CC when it comes to putting
    boxes and buttons on the screen and other windowish activities.
    For that there is PowerBASIC for Windows, which I have never
    tried and thus cannot compare with VB.
     
  17. Kryten

    Kryten Guest

    Seems most people are more interested in reading about sex and murder.
    I'll have to give it a try, and see if things have improved.
    I've seen it in 15 MB 300 dpi text

    I'll leave it to a classfull of students to OCR it, I don't have the time!
    Oh yes but eventually some will make the electronic equivalent of a
    paperback.

    Paper is lovely for stuff read in bed or on the train etc but most of my
    library is reference that is rarely used but always has mass and volume...
    A lot of stuff isn't worth buying the first time :)
    The point of copyright is to encourage innovation by granting innovators an
    exclusive legal right to the financial rewards of their creations.

    Sometimes this revenue arrives over decades, but for technical material the
    material is only worth money for a shorter period. After a while the cost of
    enforcement/collection would be more than the revenue, at which point the
    author has all the revenue that can be economically extracted.

    I've had positive mail from authors who are chuffed to see their old works
    immortalised on the web in pristine pixels.
    Yes, I'm concerned that much effort is wasted by duplication.

    eMule seems a way for people to make their scans/OCR available.
    I know, we're just waiting for someone to invent a DRM scheme that is
    acceptable to publisher and user...
     
  18. Richard H.

    Richard H. Guest

    Check out the widescreen Samsung 243T - a gorgeous 24" 1920x1200, does
    portrait and landscape, with razor-sharp clarity using the DVI video
    input. Best Christmas present I've ever bought myself! :)

    Fry's has them locally as cheap as anyplace online.
     
  19. John Larkin

    John Larkin Guest

    Yeah, Bob has a very mother-hen attitude about it. Criticize PB, and
    he'll peck you to death. On the other hand, Bill Gates has never
    answered any of my emails.

    John
     
  20. John Larkin

    John Larkin Guest

    Now it comes in a CD jewel case. With one floppy disk inside.

    John
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-