|
List Info
Thread: Re: VB 'Tools' - Gauges and Instrumentation Questions
|
|
| Re: VB 'Tools' - Gauges and
Instrumentation Questions |
  United States |
2007-07-31 13:07:10 |
|
Aah! Someone with my own inclinations. I have been trying to curtail these (assembler-like? || C-like?) inclinations since I decided to learn VB. VB is a little like a Lego set. The components are, hopefully, already there - it's just a matter of selecting the correct (most suitable) building block and dropping this into the App. But you are right. If you can't find what you need reasonable easily then perhaps building it should be considered. I'll have to have a look at that PictureBox control - mind you, it can take me years to finish a project
Thank you, Spoo.
Mike
----- Original Message ----
From: spooboy54 < spooboy54%40yahoo.com">spooboy54 yahoo.com>
To: visualbasic6programming%40yahoogroups.com">visualbasic6programming yahoogroups.com
Sent: Sunday, July 29, 2007 4:18:30 PM
Subject: Re: [Visual Basic 6 programming] VB 'Tools' - Gauges and Instrumentation Questions
Mike
If your search does not yield any guages that suit your
needs, there's always the brute force method -- create your own!
You seem industrious and methodical, so this may be an
interesting challenge.
I'd suggest the following to study:
PictureBox control
-- Line method
-- Circle method
For example, you could create a speedometer- like guage
that would react to a datastream you send to it in
a loop.
Or, you could create a custom chart.. horiz and vert
gridlines, with the data curve(s) to show results over
a particular time period, in different colors, with
annotations as needed.
The sky is the limit.
There is a cost .. time to get familiar with them and
time to code them to get them to do what you want. However,
you will retain ultimate control over how they look and work.
But there is also a cost in using someone else's -- finding
one you like, learning how to use it, maybe then finding
it doesn't meet your needs after all, and thus ending
up spinning your wheels.
There is no right answer, but I'm in the build-it-yourself
camp.
Spoo
--- In visualbasic6program ming yahoogroups .com, Michael Malone
<solarquark ...> wrote:
>
> Thanks Rick.
>
> vbaccelerator. com doesn't seem to have what I need but you have
shown me that there are VB sites out there that may have - so I'll
start looking.
>
> Components: This seems to me to be extraordinarily frustrating.
The 'vsFlexLib' for instance is included with the standard install of
VB6. Is it therefore a Microsoft component? But there is no mention
of this in the VB documentation. Nor does there seem to me any MS
Knowledge Base article on this component. On adding the component to
the project I can, as you suggest, see the functions, etc, of that
component. But this still doesn't tell me what the component is
actually for. In addition, with the many hundreds of components in
the standard install it would be practically impossible to use this
method just to see this information for each component. Surely there
is a simple mechanism to determine the purpose of each component? Or
am I just expecting too much?
>
> Thanks for your help, Rick.
>
> Mike
>
>
__________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
[Non-text portions of this message have been removed]
__._,_.___
.
__,_._,___
|
| Re: VB 'Tools' - Gauges and
Instrumentation Questions |
  United States |
2007-07-31 13:21:33 |
|
Hi Mike,
What kind of measuring gauging are you doing?
Caliper, Height Gauge, Micrometer, CMM, Go/No Go etc.
How do you connect to them serial, USB, wifi, Bluetooth etc.
Is this for an SPC application?
Do you have a digital print of some sort (dwg,pdf etc)
Are dxf files available?
Legos come in sets just wondering how many sets are involved.
thanks,
John Mansfield
----- Original Message -----
From: Michael Malone
To: visualbasic6programming%40yahoogroups.com">visualbasic6programming yahoogroups.com
Sent: Tuesday, July 31, 2007 2:07 PM
Subject: Re: [Visual Basic 6 programming] VB 'Tools' - Gauges and Instrumentation Questions
Aah! Someone with my own inclinations. I have been trying to curtail these (assembler-like? || C-like?) inclinations since I decided to learn VB. VB is a little like a Lego set. The components are, hopefully, already there - it's just a matter of selecting the correct (most suitable) building block and dropping this into the App. But you are right. If you can't find what you need reasonable easily then perhaps building it should be considered. I'll have to have a look at that PictureBox control - mind you, it can take me years to finish a project
Thank you, Spoo.
Mike
----- Original Message ----
From: spooboy54 < spooboy54%40yahoo.com">spooboy54 yahoo.com>
To: visualbasic6programming%40yahoogroups.com">visualbasic6programming yahoogroups.com
Sent: Sunday, July 29, 2007 4:18:30 PM
Subject: Re: [Visual Basic 6 programming] VB 'Tools' - Gauges and Instrumentation Questions
Mike
If your search does not yield any guages that suit your
needs, there's always the brute force method -- create your own!
You seem industrious and methodical, so this may be an
interesting challenge.
I'd suggest the following to study:
PictureBox control
-- Line method
-- Circle method
For example, you could create a speedometer- like guage
that would react to a datastream you send to it in
a loop.
Or, you could create a custom chart.. horiz and vert
gridlines, with the data curve(s) to show results over
a particular time period, in different colors, with
annotations as needed.
The sky is the limit.
There is a cost .. time to get familiar with them and
time to code them to get them to do what you want. However,
you will retain ultimate control over how they look and work.
But there is also a cost in using someone else's -- finding
one you like, learning how to use it, maybe then finding
it doesn't meet your needs after all, and thus ending
up spinning your wheels.
There is no right answer, but I'm in the build-it-yourself
camp.
Spoo
--- In visualbasic6program ming yahoogroups .com, Michael Malone
<solarquark ...> wrote:
>
> Thanks Rick.
>
> vbaccelerator. com doesn't seem to have what I need but you have
shown me that there are VB sites out there that may have - so I'll
start looking.
>
> Components: This seems to me to be extraordinarily frustrating.
The 'vsFlexLib' for instance is included with the standard install of
VB6. Is it therefore a Microsoft component? But there is no mention
of this in the VB documentation. Nor does there seem to me any MS
Knowledge Base article on this component. On adding the component to
the project I can, as you suggest, see the functions, etc, of that
component. But this still doesn't tell me what the component is
actually for. In addition, with the many hundreds of components in
the standard install it would be practically impossible to use this
method just to see this information for each component. Surely there
is a simple mechanism to determine the purpose of each component? Or
am I just expecting too much?
>
> Thanks for your help, Rick.
>
> Mike
>
>
__________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
__._,_.___
|
| Re: VB 'Tools' - Gauges and
Instrumentation Questions |
  United States |
2007-08-01 18:18:20 |
|
Mike
Haha! You took the bait !!
OK, seeing as we both seem to be gluttons for
punishment, I worked up this little ditty.
It will draw a red circle, place 8 dots around
the perimeter, and then, using a timer, will
have a "needle" swing around the dial, one
45 degree angle sweep per second.
The timer is merely to give you a sense of the
effect. In real life, you will respond to
a real-time data stream, say, from a weather vane.
And you'd want to modify the code to show more
resolution than simply 45 degrees.
Note: Yahoo strips out leading blanks, so,
to preserve the indents, I'll use "--" .. you
should disregard them. OK... here goes....
On a form, add a PictureBox control (name it pbAA)
a Timer control (name it tmAA), and a command
button (name it cmAA)
There are 3 subs, and 1 public variable.
The sub cmAA is used to launch the demo
The sub Guages is used just to set up the PictureBox
The sub tmAA_Timer will do the graphics animation.
Declarations
Public GGon ' just a counter
Sub cmAA_Click()
-- Guages
End Sub
Sub Guages()
-- With pbAA
---- .Top = 500
---- .Left = 500
---- .Height = 5000
---- .Width = 5000
---- .ZOrder 0
---- .Visible = True
---- .ScaleHeight = 15000
---- .ScaleWidth = 15000
---- .ScaleMode = 0
-- End With
-- GGon = 0
-- With tmAA
---- .Interval = 1000 ' 1000 milliseconds = 1 second
---- .Enabled = True ' will control the animation
-- End With
End Sub
Sub tmAA_Timer()
-- With pbAA
---- ' 1. clear the screen (for each new needle position)
---- .Cls
---- ' 2. regenerate the "guage" each time
---- ccx = 7500 ' x-coord center
---- ccy = 7500 ' y-coord center
---- rr = 5000 ' radius of circle
---- cc = RGB(255, 0, 0) ' color = red
---- .DrawWidth = 5
---- pbAA.Circle (ccx, ccy), rr, cc ' draws the circle
---- ' 3. put dots at each 45 degrees
---- Dim aCos(7), aSin(7) ' create arrays to hold the results
---- For ii = 0 to 7
------ radn = (ii * 45) * (3.1416 / 180) ' convert deg to radians
------ aCos(ii) = Cos(radn)
------ aSin(ii) = Sin(radn)
------ xx1 = aCos(ii) * rr + ccx
------ yy1 = aSin(ii) * rr + ccy
------ pbAA.PSet (xx1, yy1), 0 ' draws the dot, 0 = black color
---- Next ii
---- ' 4. draw the "needle" (sweep it 45 degrees each interval)
---- GGon = GGon + 1 ' just a counter
---- resu = GGon Mod 8 ' returns the modulus, so, from 0 to 7
---- xx1 = ccx
---- yy1 = ccy
---- xx2 = aSin(resu) * rr + ccx
---- yy2 = aCos(resu) * rr + ccy
---- pbAA.Line (xx1, yy1)-(xx2, yy2), 0 ' draws line, color = black
---- ' 5. turn off the timer after 20 seconds
---- If GGon = 20 Then
------ tmAA.Enabled = False
---- End If
-- End With
End Sub
Click the button, and off she goes !!
Hope this gives you a flavor.
Spoo
--- In visualbasic6programming%40yahoogroups.com">visualbasic6programming yahoogroups.com, Michael Malone
<solarquark ...> wrote:
>
> Aah! Someone with my own inclinations. I have been trying to
curtail these (assembler-like? || C-like?) inclinations since I
decided to learn VB. VB is a little like a Lego set. The components
are, hopefully, already there - it's just a matter of selecting the
correct (most suitable) building block and dropping this into the
App. But you are right. If you can't find what you need reasonable
easily then perhaps building it should be considered. I'll have to
have a look at that PictureBox control - mind you, it can take me
years to finish a project
>
> Thank you, Spoo.
>
> Mike
>
>
> ----- Original Message ----
> From: spooboy54 <spooboy54 ...>
> To: visualbasic6programming%40yahoogroups.com">visualbasic6programming yahoogroups.com
> Sent: Sunday, July 29, 2007 4:18:30 PM
> Subject: Re: [Visual Basic 6 programming] VB 'Tools' - Gauges and
Instrumentation Questions
>
> Mike
>
> If your search does not yield any guages that suit your
> needs, there's always the brute force method -- create your own!
>
> You seem industrious and methodical, so this may be an
> interesting challenge.
>
> I'd suggest the following to study:
>
> PictureBox control
> -- Line method
> -- Circle method
>
> For example, you could create a speedometer- like guage
> that would react to a datastream you send to it in
> a loop.
>
> Or, you could create a custom chart.. horiz and vert
> gridlines, with the data curve(s) to show results over
> a particular time period, in different colors, with
> annotations as needed.
>
> The sky is the limit.
>
> There is a cost .. time to get familiar with them and
> time to code them to get them to do what you want. However,
> you will retain ultimate control over how they look and work.
>
> But there is also a cost in using someone else's -- finding
> one you like, learning how to use it, maybe then finding
> it doesn't meet your needs after all, and thus ending
> up spinning your wheels.
>
> There is no right answer, but I'm in the build-it-yourself
> camp.
>
> Spoo
>
> --- In visualbasic6program ming yahoogroups .com, Michael Malone
> <solarquark ...> wrote:
> >
> > Thanks Rick.
> >
> > vbaccelerator. com doesn't seem to have what I need but you have
> shown me that there are VB sites out there that may have - so I'll
> start looking.
> >
> > Components: This seems to me to be extraordinarily frustrating.
> The 'vsFlexLib' for instance is included with the standard install
of
> VB6. Is it therefore a Microsoft component? But there is no mention
> of this in the VB documentation. Nor does there seem to me any MS
> Knowledge Base article on this component. On adding the component
to
> the project I can, as you suggest, see the functions, etc, of that
> component. But this still doesn't tell me what the component is
> actually for. In addition, with the many hundreds of components in
> the standard install it would be practically impossible to use this
> method just to see this information for each component. Surely
there
> is a simple mechanism to determine the purpose of each component?
Or
> am I just expecting too much?
> >
> > Thanks for your help, Rick.
> >
> > Mike
> >
> >
>
>
>
>
>
>
>
__________________________________________________________
______________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's
updated for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
>
> [Non-text portions of this message have been removed]
>
__._,_.___
.
__,_._,___
|
[1-3]
|
|