Hi,
I guess the easiest way you can do this is by using the
CGI VIs and the
HTTP Server from LabVIEW's
Internet Developer's Toolkit.
The CGI VIs allow us to process the data passed from a HTML page (a form). You would then query the Citadel database based on user's input and pass the results back as a HTML page (using again the HTML VIs from the toolkit).
Running the HTTP Server on your machine (which has DSC and the database) will turn it into a web server. You need to take care of the static IP address for your machine, the security, firewalls, etc.
I wrote a simple working example which does this (attached). Obviously you will need the Internet Toolkit for the VI to work. But this will give yo
u the general idea of how things would work. I am also attaching the Query Web page (cit5.htm) and the sample results page (results.htm).
There's much more you can do with this -- display data on a graph and then publish its image on the web page, etc. See the product page of
Internet Developer's Toolkit for more.
The other approach, if you do not wish to go the Internet Toolkit route, would be to use
PHP and the
ODBC interface of Citadel. You could simply use any Web Server out there, like the Windows IIS, Apache, etc. I have not tired this though. Theoretically, I don't see why it would not work. PHP4 has functionality to connect to ODBC databases (the odbc_connect function). The difficult part here could be the setting up of the ODBC interface for Citadel. Following page describes the
odbc_connect function and has some useful posts from users who have done something similar:
ref=http://us4.php.net/manual/en/function.odbc-connect.php>http://us4.php.net/manual/en/function.odb...Hope this helps,
Khalid 🙂