basicstamps] Re: Stamp ActiveX Control
Archiver
Posts: 46,084
Like I said, not exactly what you are looking for. The control sends
commands to a Stamp that is running a server. So you tell the control to
do, say, a Pulsout. It sends a command to the Stamp which then does the
Pulsout. It doesn't do "processing" functions (+,-,*,/,min,max,etc.)
since you can do that perfectly well in the PC. But if you want to do a
Count, PulsIn, PulsOut, etc. this is just what you need.
Actually, I just checked and the code is a class module that you can
readily compile as an ActiveX control, or just put it in your VB project
and use it directly (more efficient). So you can do something like:
Stamp.Stamp_Count(10,500)
Once the server is in the Stamp program, you don't consume any further
Stamp resources. The Stamp is simply a proxy for the VB program.
Hope that helps.
Regards,
Al Williams
AWC
>
Original Message
> From: jctmpid <jctmpid@p...> [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EVRvDna3k6V6ccDFOcqv4Eh_8gnD1JVRmEU8I5BliVhdtCMG66tzhLzOrwa6Y70h5ZeeHeaNdelvee1H]jctmpid@p...[/url
> Sent: Monday, January 13, 2003 7:27 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
>
>
> Thanks Al,
>
> I'm going to look for your book tomorrow. Could you give me a hint
> about what "all the major functions" of the stamp means.
>
> I think I understand that the tolkenizer (oops, must have watched
> the Lord of the Rings CD my kids gave me too many times :-) does,
>
> I'm assuming it reads the lines of code, ignores the comments,
> parses out the rest and creates an image of the program as it will
> be stored in the Stamps memory.
>
> - Are there as many tokens as their are statements in the program?
>
> So does your server program download the tokens? What
> other 'functions' does the stamp have that would interact with an
> editor?
>
> --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> > Actually there is almost what you want in my book "Microcontroller
> > Projects with Basic Stamps" -- it is a small "server" program and
> an
> > ActiveX object that allows you to control all the major functions
> of the
> > Stamp. That ActiveX object will work anywhere that you normally use
> > ActiveX (e.g., Visual Basic). Not exactly what you want, but close.
> >
> > Al Williams
> > AWC
> > * Floating point A/D http://www.al-williams.com/awce/pak9.htm
> >
> >
> >
> > >
Original Message
> > > From: jctmpid <jctmpid@p...> [noparse][[/noparse]mailto:jctmpid@p...]
> > > Sent: Monday, January 13, 2003 4:09 AM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
> > >
> > >
> > > Want do people want?, Well, I want to be able to write my Basic
> > > Stamp code in a module within Visual Studio, and save it as part
> of
> > > my Visual Basic project. When I compile the VB code, I want the
> BS
> > > code to be tokenized and downloaded to the Basic Stamp.
> > >
> > > Why do I want this?
> > >
> > > Because Microsoft has spoiled me. I can write visual basic code
> > > modules along side of the Graphical User Interface, and all of
> the
> > > pieces are linked within a single project. Sure, the actual code
> is
> > > in several different files, but the User Interface ties it all
> > > together.
> > >
> > > I want my cake, and I want to eat it to!
> > >
> > > Come on Parallax, can't the VB editor be turned into a plug in or
> > > ActiveX Control for us VB user's?
> > >
> > > I'm a professional engineer, and would love to build Basic Stamps
> > > into automated equipment. I'm not saying that the lack of such
> a
> > > thing will prevent me from doing it with Basic Stamps, but as I
> get
> > > more proficient at using micro controllers, I would switch to a
> > > another chip, maybe even another language, if I could tie all
> the
> > > development code together in a single project.
> > >
> > >
> > > -John
> > >
> > >
> > > --- In basicstamps@yahoogroups.com, "anode505 <anode505@y...>"
> > > <anode505@y...> wrote:
> > > > Well VB Pro has MSCOM.ocx doesn't it? Outside of serial in-
> out,
> > > what
> > > > do people want? The VB programing should be easy, no
> contrants on
> > > > memory usage [noparse]:)[/noparse]
> > > >
> > > >
> > > > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...>
> wrote:
> > > > > There is a control like that in my book "Microcontroller
> > > Projects
> > > > with
> > > > > Basic Stamps" (either edition).
> > > > >
> > > > > Al Williams
> > > > > AWC
> > > > > * Floating point A/D http://www.al-williams.com/awce/pak9.htm
> > > > >
> > > > >
> > > > >
> > > > > >
Original Message
> > > > > > From: jamesrwaldron@e... [noparse][[/noparse]mailto:jamesrwaldron@e...]
> > > > > > Sent: Wednesday, January 08, 2003 11:37 AM
> > > > > > To: basicstamps@yahoogroups.com
> > > > > > Subject: [noparse][[/noparse]basicstamps] Stamp ActiveX Control
> > > > > >
> > > > > >
> > > > > > Someone just told me that there was an ActiveX control for
> > > > > > communicating with the stamp from any microsoft
> language. Does
> > > > > > anyone know what this guy is talking about?
> > > > > >
> > > > > > James
> > > > > >
> > > > > > To UNSUBSCRIBE, just send mail to:
> > > > > > basicstamps-unsubscribe@yahoogroups.com
> > > > > > from the same email address that you subscribed. Text in
> the
> > > > > > Subject and Body of the message will be ignored.
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
commands to a Stamp that is running a server. So you tell the control to
do, say, a Pulsout. It sends a command to the Stamp which then does the
Pulsout. It doesn't do "processing" functions (+,-,*,/,min,max,etc.)
since you can do that perfectly well in the PC. But if you want to do a
Count, PulsIn, PulsOut, etc. this is just what you need.
Actually, I just checked and the code is a class module that you can
readily compile as an ActiveX control, or just put it in your VB project
and use it directly (more efficient). So you can do something like:
Stamp.Stamp_Count(10,500)
Once the server is in the Stamp program, you don't consume any further
Stamp resources. The Stamp is simply a proxy for the VB program.
Hope that helps.
Regards,
Al Williams
AWC
>
Original Message
> From: jctmpid <jctmpid@p...> [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EVRvDna3k6V6ccDFOcqv4Eh_8gnD1JVRmEU8I5BliVhdtCMG66tzhLzOrwa6Y70h5ZeeHeaNdelvee1H]jctmpid@p...[/url
> Sent: Monday, January 13, 2003 7:27 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
>
>
> Thanks Al,
>
> I'm going to look for your book tomorrow. Could you give me a hint
> about what "all the major functions" of the stamp means.
>
> I think I understand that the tolkenizer (oops, must have watched
> the Lord of the Rings CD my kids gave me too many times :-) does,
>
> I'm assuming it reads the lines of code, ignores the comments,
> parses out the rest and creates an image of the program as it will
> be stored in the Stamps memory.
>
> - Are there as many tokens as their are statements in the program?
>
> So does your server program download the tokens? What
> other 'functions' does the stamp have that would interact with an
> editor?
>
> --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> > Actually there is almost what you want in my book "Microcontroller
> > Projects with Basic Stamps" -- it is a small "server" program and
> an
> > ActiveX object that allows you to control all the major functions
> of the
> > Stamp. That ActiveX object will work anywhere that you normally use
> > ActiveX (e.g., Visual Basic). Not exactly what you want, but close.
> >
> > Al Williams
> > AWC
> > * Floating point A/D http://www.al-williams.com/awce/pak9.htm
> >
> >
> >
> > >
Original Message
> > > From: jctmpid <jctmpid@p...> [noparse][[/noparse]mailto:jctmpid@p...]
> > > Sent: Monday, January 13, 2003 4:09 AM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
> > >
> > >
> > > Want do people want?, Well, I want to be able to write my Basic
> > > Stamp code in a module within Visual Studio, and save it as part
> of
> > > my Visual Basic project. When I compile the VB code, I want the
> BS
> > > code to be tokenized and downloaded to the Basic Stamp.
> > >
> > > Why do I want this?
> > >
> > > Because Microsoft has spoiled me. I can write visual basic code
> > > modules along side of the Graphical User Interface, and all of
> the
> > > pieces are linked within a single project. Sure, the actual code
> is
> > > in several different files, but the User Interface ties it all
> > > together.
> > >
> > > I want my cake, and I want to eat it to!
> > >
> > > Come on Parallax, can't the VB editor be turned into a plug in or
> > > ActiveX Control for us VB user's?
> > >
> > > I'm a professional engineer, and would love to build Basic Stamps
> > > into automated equipment. I'm not saying that the lack of such
> a
> > > thing will prevent me from doing it with Basic Stamps, but as I
> get
> > > more proficient at using micro controllers, I would switch to a
> > > another chip, maybe even another language, if I could tie all
> the
> > > development code together in a single project.
> > >
> > >
> > > -John
> > >
> > >
> > > --- In basicstamps@yahoogroups.com, "anode505 <anode505@y...>"
> > > <anode505@y...> wrote:
> > > > Well VB Pro has MSCOM.ocx doesn't it? Outside of serial in-
> out,
> > > what
> > > > do people want? The VB programing should be easy, no
> contrants on
> > > > memory usage [noparse]:)[/noparse]
> > > >
> > > >
> > > > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...>
> wrote:
> > > > > There is a control like that in my book "Microcontroller
> > > Projects
> > > > with
> > > > > Basic Stamps" (either edition).
> > > > >
> > > > > Al Williams
> > > > > AWC
> > > > > * Floating point A/D http://www.al-williams.com/awce/pak9.htm
> > > > >
> > > > >
> > > > >
> > > > > >
Original Message
> > > > > > From: jamesrwaldron@e... [noparse][[/noparse]mailto:jamesrwaldron@e...]
> > > > > > Sent: Wednesday, January 08, 2003 11:37 AM
> > > > > > To: basicstamps@yahoogroups.com
> > > > > > Subject: [noparse][[/noparse]basicstamps] Stamp ActiveX Control
> > > > > >
> > > > > >
> > > > > > Someone just told me that there was an ActiveX control for
> > > > > > communicating with the stamp from any microsoft
> language. Does
> > > > > > anyone know what this guy is talking about?
> > > > > >
> > > > > > James
> > > > > >
> > > > > > To UNSUBSCRIBE, just send mail to:
> > > > > > basicstamps-unsubscribe@yahoogroups.com
> > > > > > from the same email address that you subscribed. Text in
> the
> > > > > > Subject and Body of the message will be ignored.
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Comments
While not what I'm looking for, it sounds very interesting.
John
--- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> Like I said, not exactly what you are looking for. The control
sends
> commands to a Stamp that is running a server. So you tell the
control to
> do, say, a Pulsout. It sends a command to the Stamp which then
does the
> Pulsout. It doesn't do "processing" functions (+,-
,*,/,min,max,etc.)
> since you can do that perfectly well in the PC. But if you want to
do a
> Count, PulsIn, PulsOut, etc. this is just what you need.
>
> Actually, I just checked and the code is a class module that you
can
> readily compile as an ActiveX control, or just put it in your VB
project
> and use it directly (more efficient). So you can do something like:
>
> Stamp.Stamp_Count(10,500)
>
> Once the server is in the Stamp program, you don't consume any
further
> Stamp resources. The Stamp is simply a proxy for the VB program.
>
> Hope that helps.
>
> Regards,
>
> Al Williams
> AWC
>
>
>
> >
Original Message
> > From: jctmpid <jctmpid@p...> [noparse][[/noparse]mailto:jctmpid@p...]
> > Sent: Monday, January 13, 2003 7:27 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
> >
> >
> > Thanks Al,
> >
> > I'm going to look for your book tomorrow. Could you give me a
hint
> > about what "all the major functions" of the stamp means.
> >
> > I think I understand that the tolkenizer (oops, must have watched
> > the Lord of the Rings CD my kids gave me too many times :-)
does,
> >
> > I'm assuming it reads the lines of code, ignores the comments,
> > parses out the rest and creates an image of the program as it
will
> > be stored in the Stamps memory.
> >
> > - Are there as many tokens as their are statements in the
program?
> >
> > So does your server program download the tokens? What
> > other 'functions' does the stamp have that would interact with
an
> > editor?
> >
> > --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...>
wrote:
> > > Actually there is almost what you want in my
book "Microcontroller
> > > Projects with Basic Stamps" -- it is a small "server" program
and
> > an
> > > ActiveX object that allows you to control all the major
functions
> > of the
> > > Stamp. That ActiveX object will work anywhere that you
normally use
> > > ActiveX (e.g., Visual Basic). Not exactly what you want, but
close.
> > >
> > > Al Williams
> > > AWC
> > > * Floating point A/D http://www.al-williams.com/awce/pak9.htm
> > >
> > >
> > >
> > > >
Original Message
> > > > From: jctmpid <jctmpid@p...> [noparse][[/noparse]mailto:jctmpid@p...]
> > > > Sent: Monday, January 13, 2003 4:09 AM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] Re: Stamp ActiveX Control
> > > >
> > > >
> > > > Want do people want?, Well, I want to be able to write my
Basic
> > > > Stamp code in a module within Visual Studio, and save it as
part
> > of
> > > > my Visual Basic project. When I compile the VB code, I want
the
> > BS
> > > > code to be tokenized and downloaded to the Basic Stamp.
> > > >
> > > > Why do I want this?
> > > >
> > > > Because Microsoft has spoiled me. I can write visual basic
code
> > > > modules along side of the Graphical User Interface, and all
of
> > the
> > > > pieces are linked within a single project. Sure, the actual
code
> > is
> > > > in several different files, but the User Interface ties it
all
> > > > together.
> > > >
> > > > I want my cake, and I want to eat it to!
> > > >
> > > > Come on Parallax, can't the VB editor be turned into a plug
in or
> > > > ActiveX Control for us VB user's?
> > > >
> > > > I'm a professional engineer, and would love to build Basic
Stamps
> > > > into automated equipment. I'm not saying that the lack of
such
> > a
> > > > thing will prevent me from doing it with Basic Stamps, but
as I
> > get
> > > > more proficient at using micro controllers, I would switch
to a
> > > > another chip, maybe even another language, if I could tie all
> > the
> > > > development code together in a single project.
> > > >
> > > >
> > > > -John
> > > >
> > > >
> > > > --- In basicstamps@yahoogroups.com, "anode505
<anode505@y...>"
> > > > <anode505@y...> wrote:
> > > > > Well VB Pro has MSCOM.ocx doesn't it? Outside of serial
in-
> > out,
> > > > what
> > > > > do people want? The VB programing should be easy, no
> > contrants on
> > > > > memory usage [noparse]:)[/noparse]
> > > > >
> > > > >
> > > > > --- In basicstamps@yahoogroups.com, "Al Williams"
<alw@a...>
> > wrote:
> > > > > > There is a control like that in my book "Microcontroller
> > > > Projects
> > > > > with
> > > > > > Basic Stamps" (either edition).
> > > > > >
> > > > > > Al Williams
> > > > > > AWC
> > > > > > * Floating point A/D http://www.al-
williams.com/awce/pak9.htm
> > > > > >
> > > > > >
> > > > > >
> > > > > > >
Original Message
> > > > > > > From: jamesrwaldron@e... [noparse][[/noparse]mailto:jamesrwaldron@e...]
> > > > > > > Sent: Wednesday, January 08, 2003 11:37 AM
> > > > > > > To: basicstamps@yahoogroups.com
> > > > > > > Subject: [noparse][[/noparse]basicstamps] Stamp ActiveX Control
> > > > > > >
> > > > > > >
> > > > > > > Someone just told me that there was an ActiveX control
for
> > > > > > > communicating with the stamp from any microsoft
> > language. Does
> > > > > > > anyone know what this guy is talking about?
> > > > > > >
> > > > > > > James
> > > > > > >
> > > > > > > To UNSUBSCRIBE, just send mail to:
> > > > > > > basicstamps-unsubscribe@yahoogroups.com
> > > > > > > from the same email address that you subscribed. Text
in
> > the
> > > > > > > Subject and Body of the message will be ignored.
> > > > > > >
> > > > > > >
> > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > > http://docs.yahoo.com/info/terms/
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
> > > > Subject and Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
writes a beautiful VB datalogger ( or whatever ) application, and also
codes a BS(xx) program for this app within VB........ then at the same
time he creates "coolapp.exe" , VB will tokenise and flash the new stamp
proggie to the chip. Is this the idea?
And I suppose you want the "inteli-sense" highlighting, and all the other
VB goodies to help you write stamp code too........ I will theorise that
this could be done via a VB addin to some extent ( If you were a supreme
Yoda coder, and had extensive connections to M$ as well as Parallax )
But, heres what I got for ya:
1) You can add .bs2 files or any files as modules in VB right now.......if
its that important to you ......Project| Add File, and there you go. Of
course it will be all wrong code as far as VB is concerned...... I wouldnt
do it if I were you. Probly will throw all sorts of VB errors
2) The BASIC stamp editor 1.2 works pretty sweet, I have heard you can kick
it off from a command line or batch file and pass it the .bs2 filename that
it is to load. This may interest you. But from my experience, when doing
VB/stamp work, one of the programs gets completed WAY before the other one,
so you either spend all your time coding in the stamp editor or in VB. The
stamp editor also does a good job of file managing, and it knows when you
type bad stamp code.......... to me, it is THE tool for the job. I am
pretty adept at going back and forth now, and to me it is really
comfortable.
3) On a similar note, I see lots of folks asking how they can change or
somehow use tools that they are comfortable with, with their stamps ....
i.e. I want to use Python, C++, or whatever.......... and I cannot
understand this! .. the folks at Parallax worked very hard to make it EASY
to use the stamp........ but I will venture that none of your OPENGL
experience, or COBOL routines are going to help here.......... this is a
whole new ball game for most of us. My advise to those people, is to focus
on the concepts that are common to all programming langs. and not be afraid
to try new things!! I cant remember many times when Tracy, Jon or Al said
"PBasic just will not do it in any way!"
Its not the language that makes smooth, bulletproof, working, code........
YOU DO !!!
dave ( PBASIC poster boy ) [noparse]:)[/noparse]
P.S. I am a M$ Visual FoxPro coder by trade. I wonder if I could sell
FoxStamp 1.0 to anyone? hahah , nite all D