Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Convert 12500 -> 12k5 etc

For general discussion related FlowStone

Convert 12500 -> 12k5 etc

Postby RJHollins » Tue Jul 23, 2013 9:08 pm

Hi Gang !

I'm designing an interface for various Equalizers. In so doing, I'm trying to implement 'engineering' notation to label the various frequencies. These will be used to notate around a knob guage.

Basically I'm looking to convert like this:

1500 = 1k5
12500 = 12k5
1000 = 1k

800 = 800

etc

I have been putting together a 'green' schematic ... but I have to say ... it has grown into many primitives, and the wiring is starting to get unruly :o

To start, I've been using TROG's 'Array Generator' to begin the listing process ... which has been very handy 8-)

I was then looking to convert that array into this 'engineering' format. BTW ... What is this format correctly call :?:

... and build a new array list that I can place into my 'Guage' module.

Just trying to make the process a bit more automated during the build.

Was wondering ... has anybody already done this :shock: Might you share a hint or three ??? :lol:

I'd post the current schematic ... which works for several 'situations', but not all conditions. If wanted, the schematic is still in 'linear' form ... which means its' all spread out :oops:

Anyway ... just thought to ask before my last brain cell takes yet another beating :|
;)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Convert 12500 -> 12k5 etc

Postby MyCo » Tue Jul 23, 2013 10:27 pm

This is most of the time working... but there are some cases where rounding in the log10 causes some stupid representations
Attachments
SI Unit Prefix (MyCo).fsm
(677 Bytes) Downloaded 870 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Convert 12500 -> 12k5 etc

Postby RJHollins » Wed Jul 24, 2013 3:04 am

MyCo wrote:This is most of the time working... but there are some cases where rounding in the log10 causes some stupid representations


Wow ... amazed at the power of RUBY. Particularly in the right 'coders' hand.

I'm reading through the code ... hoping to get a glimpse of insight ... but this is at a knowledge level beyond me :|

I did run some array test on it. I see where some of the conversions are not very useful. I wouldn't be able to begin trying to modify this Ruby code, unless I tried to 'tag on' to the end to message the final output. If not that, a bit of hand editing of the list.

Regardless of my most minimal experience with all this, I still want to express my sincere thanks for taking the time to work out the code, MyCo !

Meanwhile ... does anyone know what the proper name is for this form of nomenclature ???

Thanks!
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Convert 12500 -> 12k5 etc

Postby Nubeat7 » Wed Jul 24, 2013 9:45 am

hey, thats fancy stuff! thanks
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna


Return to General

Who is online

Users browsing this forum: No registered users and 61 guests