01-03-2012 07:19 AM
Hi,
I want to know if it is possible to create a web server with CVI so that I can log in my application and see the data with the internet explorer?
Backround: we run an CVI-application on a computer inside a network. On this computer we collect data from different systems and publish these data in a CVI panel. Users who wants to see the data, have to log in the computer with a remote control software.
Now we asked ourselves if it possible to create a web server with CVI. And if the user can not see the data on his computer by using the internet explorer.
In the forum we found some very old posts. Are there any new information about this?
thanks
Oliver
Solved! Go to Solution.
01-03-2012 08:19 AM - edited 01-03-2012 08:19 AM
As far as I know this is not supported at the moment.
And there is this product suggestion that needs some kudos 😉
01-03-2012 08:45 AM
I would approach this problem more conventionally.
You can write a client application that connects to that app and get its data.
There are many old and new techniques to pass such data between computers: simple TCP connections, data sockets, shared variables, etc.
The client may display the data (downloaded from the server) in its own way. You can even make it a 2-way communication and control the server app from the client.
I think you are looking for a much simpler solution, like a CVI wizard that turns your panels into web panels with a single click.
Well, it looks like you literally need a "wizard" for this until the product suggestion is implemented 🙂
01-03-2012 10:18 AM
Hi
> There are many old and new techniques to pass such data between computers:
> simple TCP connections, data sockets, shared variables, etc.
Yes, we use these technologies in our project to exchange the data between our systems
> The client may display the data (downloaded from the server) in its own way.
Yes, but how can I display them on a web page?
greetings
Oliver
01-04-2012 12:02 AM
Well, I assumed the displaying of the data is the main requirement, not the web page.
If you must really display it on a web page then maybe you need another application on the server side that will collect the data (from the CVI app running on the same machine) and present it in a web form.
I am not very experienced on that but I think .NET would be a good choice.
01-05-2012 01:30 PM
One option would be to use Measurement Studio's ASP.NET support to publish a web page. Measurement Studio actually supports NI Network Variables and NI Datasocket so you can easily transmit the data between applications. It also comes with graphing capabilities similar to CVI. However, this will require a Visual Studio license and a Measurement Studio license.
Alternatively, you can create the web site using the tool of your choice and transmit the data to the web page using a client-server architecture with TCP/IP.
01-09-2012 05:22 AM
If you only want to view date on a web server, create a bitmap image of the panel and save in to a web browser compatible format, i.e. .jpg or .png
GetPanelDisplayBitmap (panelHandle, VAL_VISIBLE_AREA,VAL_ENTIRE_OBJECT, &PanelBitmap); SaveBitmapToJPEGFile (PanelBitMap,"\\\\intranetserver\\panelbitmapfile.jpg",JPEG_INTERLACE, 80);
then create a web page to display the image:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT=""> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <IMG src="\\intranetserver\panelbitmapfile.jpg" WIDTH="597" HEIGHT="554" BORDER="0" ALT=""> </BODY> </HTML>
01-09-2012 06:10 AM
That sounds very interesting. I will try this and report if it is working
Just to precise our idea a little bit. We have an application which run in a production. This computer (consists a TCP server) is connected to the company network. We have also a client software (consists a TCP client) which can be installed on computers in the offices e.g. for the production manager to see how his production is running. Both applications are written with CVI.The problem is that the two application run in different networks (production and office network) and from time to time we loose data or at some customers we do not have a connection because of some firewalls. Also all people who want to see the data have to install the client software on their computer and this installation has to be done by an administrator.
we think that it is much easier, when we improve the application software from a TCP server to a web server and all people can connect to it by a standard browser
greetings
Oliver
10-23-2012 02:34 PM
To NI,
What happened to LabWindows/CVI Internet Toolkit. I came across the help file for that which does exactly what OP wants.