HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
RS-232 input Posted by pcrom on 5 Aug 2001 at 12:39 PM
Hello,

I have a voltage meter connected to my RS-232 port and want to display the value on a website.

I made a program which is always on the background (VB). Every 10 seconds it reads out the voltage meter and produces a straight text-HTML file every 10 seconds. When I open this file in my web browser it works.

But I don't think this is the common way to make such things work.

Could someone give me a hint how to do this in a professional way ? I was thinking of an .exe-file which is executed via a CGI script ? Is this possible ?

My background : I have a programming background using Turbo Pascal / C / C++ / little VB but did nothing with the internet upto now.

Any hints ?

Report
Re: RS-232 input Posted by Manish on 6 Aug 2001 at 3:10 PM

Hello,

What I gather from here is 3 possibilities with CGI or ASP:

1. You create a program in ASP (which is better at dealing with VB) and it directly calls a function in your VB program (you'll have to convert your program into a DLL..its easy however) and takes the returned value and displays it on the browser.

(post in the ASP forum if you need more information on this)

2. You can create a C++ CGI program to do the above.

(again, post in the CGI forum if you need more info)

3. If you can ensure that the VB program is running the in background of the server (where the .html file is to be hosted) (this requires a dedicated server if you aren't only testing on your local intranet or local machine), then you can simply put an "HTTP META Refresh" tag in your .html file which will automatically reload the .html file in your browser after a specified interval of time. This way, it always read the latest file generated by your VB program.


Hope the above helped in some way.

Manish.


Report
Re: RS-232 input Posted by pcrom on 10 Aug 2001 at 9:15 AM
:
: Hello,
:
: What I gather from here is 3 possibilities with CGI or ASP:
:
: 1. You create a program in ASP (which is better at dealing with VB) and it directly calls a function in your VB program (you'll have to convert your program into a DLL..its easy however) and takes the returned value and displays it on the browser.
:
: (post in the ASP forum if you need more information on this)
:
: 2. You can create a C++ CGI program to do the above.
:
: (again, post in the CGI forum if you need more info)
:
: 3. If you can ensure that the VB program is running the in background of the server (where the .html file is to be hosted) (this requires a dedicated server if you aren't only testing on your local intranet or local machine), then you can simply put an "HTTP META Refresh" tag in your .html file which will automatically reload the .html file in your browser after a specified interval of time. This way, it always read the latest file generated by your VB program.
:
:
: Hope the above helped in some way.
:
: Manish.
:
:

Ok, thanks very much. I allready tried option 3 and this works ok.

Patrick



Report
RS-232 input Posted by niyati247 on 24 Feb 2009 at 11:11 PM
hi..can u plz tell me where and how to see the input of rs232 in laptop?i have interfaced 89c51 with rs232 and i have used db15 male n female connector.




 

Recent Jobs