Numbers within units (50g)
09-19-2015, 05:49 PM
Post: #16
 Claudio L. Senior Member Posts: 1,887 Joined: Dec 2013
RE: Numbers within units (50g)
(09-18-2015 09:28 PM)Brad Barton Wrote:  "Y register", "Level 2 on the stack". I've used these terms interchangeably.

I was wondering if we could create a conversion factor that would automatically use a flexible numerical value taken from another memory location to convert between displacement and acceleration. I guess I'm asking: "Since you can put a number in the conversion factor (as you've demonstrated above), is it possible to "call" or "peek" a value from somewhere else and apply it as part of the conversion?"

I think I understand what you want. You are calling a "unit conversion" the determination of the amplitude in a harmonic equation, for acceleration, velocity and displacement.
Conceptually very misleading, took me a while to figure out what you meant. But I'm not going to lecture you and go straight to the point.

I'm not sure unit conversions would help, a unit system is not really designed to work with variable conversion factors.
I guess once you know your frequency, you could define custom units with a fixed conversion factor of 2*pi*f, which has to be computed at the time of the unit definition. But if you change f, you'd have to redefine the units. I think it'd be easier to write a program that multiplies by 2*pi*f than creating custom units all the time.
The fact that the 50g accepts numeric factors at compile time wouldn't help you, since it happens only at compile time, meaning if you change the frequency you'd have to "recompile" the unit, so we are back to the previous case.
 « Next Oldest | Next Newest »

 Messages In This Thread Numbers within units (50g) - Claudio L. - 09-15-2015, 09:53 PM RE: Numbers within units (50g) - rprosperi - 09-16-2015, 12:55 AM RE: Numbers within units (50g) - Bruno - 09-16-2015, 06:54 AM RE: Numbers within units (50g) - Claudio L. - 09-16-2015, 04:43 PM RE: Numbers within units (50g) - rprosperi - 09-17-2015, 12:38 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015, 02:44 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-16-2015, 10:21 PM RE: Numbers within units (50g) - Tugdual - 09-17-2015, 06:22 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-17-2015, 07:39 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015, 01:25 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 02:56 AM RE: Numbers within units (50g) - Claudio L. - 09-18-2015, 01:01 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 09:28 PM RE: Numbers within units (50g) - brickviking - 09-18-2015, 10:04 PM RE: Numbers within units (50g) - Brad Barton - 09-19-2015, 02:39 AM RE: Numbers within units (50g) - Claudio L. - 09-19-2015 05:49 PM RE: Numbers within units (50g) - Brad Barton - 09-22-2015, 02:56 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-22-2015, 07:37 AM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:46 AM RE: Numbers within units (50g) - Claudio L. - 09-22-2015, 05:43 PM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:53 AM RE: Numbers within units (50g) - Claudio L. - 09-23-2015, 07:03 PM RE: Numbers within units (50g) - Tugdual - 09-22-2015, 05:40 AM

User(s) browsing this thread: 1 Guest(s)