07-09-2007 05:34 PM
07-10-2007 05:32 PM
07-11-2007 09:54 AM
07-11-2007 10:23 AM
07-11-2007 10:27 AM
07-12-2007 03:38 PM
Kyle,
I took a second look and have new information. I was able to reproduce your issue by taking Mike Porter's executable and using a LabVIEW Remote Front Panel as the webpage to access. This exe works great when accessing normal webpages (ni.com/yahoo.com etc...). The problem occurs when accessing a LV remote front panel. I saw the same errors you did. I will file a Corrective Action Request (CAR) on this issue.
I have tried a few different things. First, I ran the original VI and it worked great. I could open the remote panel in the ActiveX container. I then rebuilt the executable with remote debugging. I found something unique here. When I remotely debug the executable, it works! There is a bug though. When I remotely control the exe, the webpage gets published on the original executable shell and not the remotely controlling panel I have open! I will be filing a CAR on this as well.
What I am looking into now is being able to split your program into two VI's. One VI for the Event Handling, and a second VI that will open an ActiveX shell for the browser. I would suggest playing around with this option yourself as well. I have attached a sample VI of what I am playing with. It doesn't work now, but might give you a start on where to go. Open the Project, then open CallVI and look at the block diagram. It is a start of where we want to go.
I will post to this thread at some point next week (as I am Out of Office for a while) and let you know what I find. If you find anything sooner, post back and let me know!
Reggie Rector ¦ Applications Engineer ¦ National Instruments
07-12-2007 04:09 PM - edited 07-12-2007 04:09 PM
Message Edited by Kyle Thompson on 07-12-2007 04:09 PM
07-16-2007 08:19 AM
Here is the option I was trying to start looking at. It remotely calls the VI to be opened (similar to the remote debug that works properly). It isn't working now, but should give you some idea of where to go. I will continue looking as well.
reggier
07-16-2007 09:52 AM
I see now what you are getting at by using two VIs. Good idea based on the observation that things work correctly in the EXE when it is being remotely debugged. I have looked at your VIs and have not been able to find a way to have RemoteVI.vi trigger those events by changing the values of the controls from CallVI.vi. RemoteVI's front panel will show the changes in the controls so I know that is working, but the event associated with a value change of the control never is triggered.
Otherwise the VIs look fine and they work. Obviously there was no use testing it as an EXE because I wouldn't be able to get the events to trigger which seems to be where the problem occurs everytime.
I attached the VIs again because I added Mike Porter's error handling VIs since they were required for the ~RemoteVI.vi that he originally provided. Otherwise I am not sure what to do about that one. Any further help would be greatly appreciated.
Kyle
07-23-2007 01:19 PM
Congratulations goes to Reggie Rector for finding a workaround for the issue. His final example with some tweaks has been attached for convenience in understanding the forum conversation thus far.
My final issue was resolved by creating a while loop in RemoteVI.vi that checks the value of the controls to see if they have changed since the loops previous iteration. If a change has occured, it will change the Val(Sgnl) property of the control so that the appropriate event handler will be activated.
Thanks again all!
Kyle