1. analog dials, vu meter etc...
- Posted by rlistas <rlistas at gmail.com> Feb 01, 2008
- 540 views
Dear euphorians, I would like to receive some recommendations of library that I may use to create an "electrical panel" graphics in windows, like the graphics used in labview for example. How do I create, for example, a VU meter showing an analog value like this: http://sine.ni.com/images/products/us/2mswcal.jpg Thanks Rubens
2. Re: analog dials, vu meter etc...
- Posted by CChris <christian.cuvier at agricultur?.gou?.fr> Feb 01, 2008
- 489 views
rlistas wrote: > > Dear euphorians, > > I would like to receive some recommendations of > library that I may use to create an "electrical > panel" graphics in windows, like the graphics > used in labview for example. > > How do I create, for example, a VU meter showing > an analog value like this: > > <a > href="http://sine.ni.com/images/products/us/2mswcal.jpg">http://sine.ni.com/images/products/us/2mswcal.jpg</a> > > > Thanks > > Rubens > Basically, what you are looking for is implemented as a progress bar in Windows - I don't know which platform you are targetting. Perhaps the Nifty Progress Bar by Don Cole ( http://www.rapideuphoria.com/progress.zip ) is all you need. If you want still more control over the meter's appearance, the Windows API allows it through custom draw notifications (look for this on MSDN for details). I don't know of any Eu library that wraps this functionality at the moment, but all major GUI libs I know definitely provide the tools to do so. CChris
3. Re: analog dials, vu meter etc...
- Posted by Kat <KAT12 at c?os?hs.net> Feb 01, 2008
- 486 views
CChris wrote: > > rlistas wrote: > > > > Dear euphorians, > > > > I would like to receive some recommendations of > > library that I may use to create an "electrical > > panel" graphics in windows, like the graphics > > used in labview for example. > > > > How do I create, for example, a VU meter showing > > an analog value like this: > > > > <a > > href="http://sine.ni.com/images/products/us/2mswcal.jpg">http://sine.ni.com/images/products/us/2mswcal.jpg</a> > > > > > > Thanks > > > > Rubens > > > > Basically, what you are looking for is implemented as a progress bar in > Windows > - I don't know which platform you are targetting. > Perhaps the Nifty Progress Bar by Don Cole ( <a > href="http://www.rapideuphoria.com/progress.zip">http://www.rapideuphoria.com/progress.zip</a> > ) is all you need. > > If you want still more control over the meter's appearance, the Windows API > allows it through custom draw notifications (look for this on MSDN for > details). > I don't know of any Eu library that wraps this functionality at the moment, > but all major GUI libs I know definitely provide the tools to do so. > > CChris I think Bach ( www.catexa.com ) did some of that. Perhaps this could be integrated into openeu? Kat
4. Re: analog dials, vu meter etc...
- Posted by Greg Haberek <ghaberek at g?ail.c?m> Feb 01, 2008
- 486 views
rlistas wrote: > > How do I create, for example, a VU meter showing > an analog value like this: > It's all geometry, man! I wrote a nifty analog clock. The code is full of useful geometric functions, check it out: http://ghaberek.googlepages.com/bigclock -Greg
5. Re: analog dials, vu meter etc...
- Posted by Al Getz <Xaxo at a?l.com> Feb 03, 2008
- 502 views
- Last edited Feb 04, 2008
Hi Rubens, I was recently thinking of adding that stuff into WinClass because i had a few people ask about this kind of display and currently there is no class for this. This is however a 7 segment class that displays digits that look like 7 segment digits like on a calculator or something and the size and color can be changed to just about anything. I didnt care too much about this myself, but after looking into it and creating the class it came out pretty cool looking, and it's easy to add 7 segment digits to a program now. I'd like to do the same thing with the 'round' analog displays, and perhaps those zero center VU meter like displays too. They do add something nice to a program. Oh yeah, the program where the 7 segment digits came in handy was my VoltageMonitor program, where voltages external to the computer are measured using a special ic chip that i developed. Originally it only used the standard Windows fonts but then someone said, "hey why not make it look like an actual voltmeter", so that's when i created the 7 segment digits class. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
6. Re: analog dials, vu meter etc...
- Posted by rlistas <rlistas at gmail.com> Feb 03, 2008
- 510 views
- Last edited Feb 04, 2008
Hi Al, I develop some circuits too, so, this is why I want this kind of display. I=B4m developing a radio remote wind speed meter, and this 7segment will be nice. Round analog ones will be very nice. If you want to have "dois dedos de prosa sobre o assunto" :>) will be nice, and perhaps I could help you to develop this WinClass. Just write direct to me. Best Regards Rubens "E boa sorte com sua programacao de displays analogicos em Euphoria ! " At 17:00 3/2/2008, you wrote: > > >posted by: Al Getz <Xaxo at a?l.com> > > >Hi Rubens, > >I was recently thinking of adding that stuff into WinClass because >i had a few people ask about this kind of display and currently >there is no class for this. This is however a 7 segment class >that displays digits that look like 7 segment digits like >on a calculator or something and the size and color can be changed >to just about anything. I didnt care too much about this myself, >but after looking into it and creating the class it came out >pretty cool looking, and it's easy to add 7 segment digits to >a program now. >I'd like to do the same thing with the 'round' analog displays, >and perhaps those zero center VU meter like displays too. >They do add something nice to a program. > >Oh yeah, the program where the 7 segment digits came in handy >was my VoltageMonitor program, where voltages external to the >computer are measured using a special ic chip that i developed. >Originally it only used the standard Windows fonts but then >someone said, "hey why not make it look like an actual voltmeter", >so that's when i created the 7 segment digits class. > > >Take care, >Al > >E boa sorte com sua programacao Euphoria! > > >My bumper sticker: "I brake for LED's" > > > >
7. Re: analog dials, vu meter etc...
- Posted by don cole <doncole at p?cbell?net> Feb 04, 2008
- 500 views
Al Getz wrote: > > > Hi Rubens, > > I was recently thinking of adding that stuff into WinClass because > i had a few people ask about this kind of display and currently > there is no class for this. This is however a 7 segment class > that displays digits that look like 7 segment digits like > on a calculator or something and the size and color can be changed > to just about anything. I didnt care too much about this myself, > but after looking into it and creating the class it came out > pretty cool looking, and it's easy to add 7 segment digits to > a program now. > I'd like to do the same thing with the 'round' analog displays, > and perhaps those zero center VU meter like displays too. > They do add something nice to a program. > > Oh yeah, the program where the 7 segment digits came in handy > was my VoltageMonitor program, where voltages external to the > computer are measured using a special ic chip that i developed. > Originally it only used the standard Windows fonts but then > someone said, "hey why not make it look like an actual voltmeter", > so that's when i created the 7 segment digits class. > > > Al > > E boa sorte com sua programacao Euphoria! > > > My bumper sticker: "I brake for LED's" > One thing you can do with an analog meter that you can't do with a digital meter is check the smoothness of a potentiometer. Just thought I'd throw that in. Don Cole
8. Re: analog dials, vu meter etc...
- Posted by CChris <christian.cuvier at agricu??ure.gouv.fr> Feb 04, 2008
- 494 views
don cole wrote: > > Al Getz wrote: > > > > > > Hi Rubens, > > > > I was recently thinking of adding that stuff into WinClass because > > i had a few people ask about this kind of display and currently > > there is no class for this. This is however a 7 segment class > > that displays digits that look like 7 segment digits like > > on a calculator or something and the size and color can be changed > > to just about anything. I didnt care too much about this myself, > > but after looking into it and creating the class it came out > > pretty cool looking, and it's easy to add 7 segment digits to > > a program now. > > I'd like to do the same thing with the 'round' analog displays, > > and perhaps those zero center VU meter like displays too. > > They do add something nice to a program. > > > > Oh yeah, the program where the 7 segment digits came in handy > > was my VoltageMonitor program, where voltages external to the > > computer are measured using a special ic chip that i developed. > > Originally it only used the standard Windows fonts but then > > someone said, "hey why not make it look like an actual voltmeter", > > so that's when i created the 7 segment digits class. > > > > > > Al > > > > E boa sorte com sua programacao Euphoria! > > > > > > My bumper sticker: "I brake for LED's" > > > > One thing you can do with an analog meter that you can't do with a digital > > meter is check the smoothness of a potentiometer. > > Just thought I'd throw that in. > > Don Cole Huh? If you turn your potentiometer a notch, you'll get a response jump at some point, and it will show just as well on an analog dial or a digital display, won't it? As far as Windows visuals are concerned: if you want the appearance of the round dial (I thought you were referring to the gauges in the lower part of the picture), hen adapting Greg's bigclock.exw is a good start - draw the dial on a pixmap with the frame drawn in the transparency color, and transBlt() the pixmap to your window on request). If you'd like the dial to be a control on its own, then use a progressbar, trap the custom draw notifications it will send and do the drawing yourself. Again, the geometry is simpl and you can use bigclock.exw as a starting point. One thing it doesn't handle is mouse clicks in the area which is not shown, between the window frame and the clock proper. The program lacks a trap for WM_NCHITTEST that would report that area as HT_TRANSPARENT so as to let the mouse clicks trickme dow to the next window. Cursor shape changes are a little weird too. CChris
9. Re: analog dials, vu meter etc...
- Posted by don cole <doncole at ?ac?ell.net> Feb 05, 2008
- 492 views
CChris wrote: [snip] > > Huh? > If you turn your potentiometer a notch, you'll get a response jump at some > point, No I don't think so. If the ohmeter scale is set correctly the needle should move from left to right smoothly (no jumping) unless of course the pot is messed up. On a digital display the numbers will change but you can't really tell how fast one set of numbers is changing in relationship to another set. I other words does it take the same amount of time to change from 100 to 900 as it does from 10,000 to 90,000. You see this pretty clearly on an analoge scale but not on a digital. [snip] Don Cole
10. Re: analog dials, vu meter etc...
- Posted by Al Getz <Xaxo at aol.c??> Feb 05, 2008
- 495 views
Hi Don, I think i know what you mean about the analog vs digital for checking the resistance of a pot to see if there are any jumps which would cause static if used for a volume control. Many digital meters average over a rather long period while the analog meter only has some inductance and some rotational inertia, which seems to make most analog meters much faster. The larger ones, with their increased inertia, arent as good but still work ok it seems. Not only that, the digital numbers may be hard to interpret even if they do change fast, while it's very easy to see the analog needle jump up or down suddenly. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
11. Re: analog dials, vu meter etc...
- Posted by don cole <doncole at pacb?ll.ne?> Feb 06, 2008
- 530 views
Al Getz wrote: > > Hi Don, > > > I think i know what you mean about the analog vs digital for > checking the resistance of a pot to see if there are any > jumps which would cause static if used for a volume control. > Many digital meters average over a rather long period while > the analog meter only has some inductance and some rotational > inertia, which seems to make most analog meters much faster. > The larger ones, with their increased inertia, arent as good > but still work ok it seems. > Not only that, the digital numbers may be hard to interpret even > if they do change fast, while it's very easy to see the analog > needle jump up or down suddenly. > > > Al > [snip] I would like to thank Al seeing my point. I would like to point out here this point is really mute with the advent of new technology. After 30 years of TV repair I have given up that aspect of my business. Because SOON the 3:4 TV will be replaced with 9:16 TV. (note the square here). And the average consumer today, rather than spending money on a repair, would rather just pitch it. A wise decision because the Chinese make 'um so cheap. Also I would like to thank CChris for mentioning my progress meter (analog). Don Cole