08-06-2004 09:06 AM
08-23-2004 02:55 PM
09-21-2005 12:45 PM
09-21-2005 01:04 PM
09-26-2005 01:19 PM
Brian:
I had the MessagesPump.dll download from one your threads.
The case which I am dealing with is
1. There is a compiled EXE and a DLL for the same Labview-VI Application.
2. Both of them are installed in a Machine where there is only LV-Runtime installed.
3. THE EXE works fine and I am able to see the application running . ( There is no call to the LABview server and I dont want this) as any stand alone normal windows application.
4. When coming to the DLL+IIS+ASP.NET application. How do I embedded or place or construct the same on a (aspx)Web page and looks exactly the same as in the exe version of it.
5. Manage to get your C# code to VB.NET.
6. Even though there were few explanations on this area from you this summer , I was not quite clear or to follow .
Was there any workaround in this area from you on this.
Regards
Ram.
09-26-2005 03:15 PM
Oh, I see the misunderstanding. The EXE you talk about is your LV built application - not related to ASP.NET. Okay...
What you want to look up in your LV docs is "remote front panels". This allows you to either embed a dynamically generated image of the VI into the HTML or actually the front panel itself (requires the RTE on the client machine). The second form means the display is interactive. Unfortunately, the only web server supported for this right now is the LV web server. However, you could do some tricks to get the image (option #1 of RFP) from a LV server and then post it up on the IIS server.
For example, you could create a little LV application that uses the IE control in LV to hit the LV web server, grab the page and then save it in the IIS virtual directory.
You other questions...
5. Manage to get your C# code to VB.NET.
I'm not a VB.NET programmer so I can only tell you what you need to do...The PumpMessages dll is C++ so that isn't going to change. To call it from VB.NET, you need to create a DllImport statement. Trying to convert what is in the MSDN sample, it should be something like
<DllImport("C:\Inetpub\wwwroot\MyWebApp\bin\MyLVApp.dll", EntryPoint := "LVDLLStatus", _
ExactSpelling := True, _
CallingConvention := CallingConvention.Cdecl)> _
Public Shared Function MoveFile(errStr As IntPtr, errStrLen As Integer, module As IntPtr) As Integer
' Leave function empty -
End Function
The other code just calls it. You need to create a VB.NET class with a static constructor (the static Global() in my example), static member (Thread) and static method (ThreadProc).
6. Even though there were few explanations on this area from you this summer , I was not quite clear or to follow .
Was there any workaround in this area from you on this.
09-26-2005 06:10 PM
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.
09-26-2005 06:10 PM
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.
09-26-2005 06:10 PM
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.
09-26-2005 06:10 PM
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.