LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ASPX page to call ASP.Net Application to start LabVIEW and change a VI

Brian:

Thanks for the first one.( I am trying to figure out the "G web server" option which comes with the internet tool kit).

Let me describe the Application:

Step 1 : I am creating an exe( application) and deploying it on a different machine which the LV run time only.

             The application as an exe run well show the front panel and able to use the UI elements wonderful.

             Note : there is no access to the Labview server (VI) at all.

Step 2: Secondly, thinking that this VI compiled as an exe can run on a machine without the Labview server I am taking it one step further to compile it as a dll. ( there are different options but let say shared dll)

Step 3: I have an ASP.NET application ( this is exactly the same you have explained in your Blog site). and  now I will have to deploy my VI compiled as a DLL and called from an ASPX page in an aspx application which should now show the same Front pannel as it did with the standalone exe application.

Step 4: I see your MessagePump.dll governs the messaging or call between the LV and the Windows to override the threading,

   when each call from the LV dll instead of directly call the windows base class methods. I saw your explanation in a thread and that was my question and was not able to follow that but was pretty close.( i.e running a test.aspx and showing the results in results.aspx). 

Step 5: In short :

             I have a machine  (Say Windows 2003 server with IIS and with dotnet confiured).

             Installed the LV Run time 6.0.

             Have the VI compiled as DLL also your MessagePump.dll

             There is no communication between the Labview VI server.

              There is an asp.NET application with an aspx page.

             The aspx page should show the VI Panel and just runs with the LV run time.

 

Regards

Ram.

               

             

 

            

 

 

 

 

 

 

 

 

Message Edited by RamN on 09-26-2005 06:13 PM

0 Kudos
Message 11 of 12
(633 Views)
Step 3 is where you hit a brick wall. The problem is that web UI's and windows UI's are two very different beasts. In general, you cannot take any windows application (LV or anything else with a Windows UI) and make it show up in the browser - you have to recreate the UI using the ASP.NET technologies. This is a pain and is something that almost every application programmer runs into. That is one of the reasons for web technologies such as Ajax and deployment technologies such as Java WebStart and MS's ClickOnce.
 
Now, if you use the LV web server (I don't think the G Web Server supports this - you need the actually LV IDE - therefore no DLL, no ASP.NET), you can do one of two things
 
1. Periodically take a snapshot of your VI's front panel and have that sent to the user (such as every 10 seconds). Note that the user cannot interact with the image.
2. Have the VI's front panel actually download (not the VI, just the front panel) to the client's machine and display itself. This is kind of what you are looking for, but it does require that the LV RTE is installed on the client's machine.
0 Kudos
Message 12 of 12
(622 Views)