05-04-2010 08:59 AM
I am having ad issue with a deployment to a cFP controller. I had a successful deployment that needed a few tweeks. When I may a few changes I got some problems that resulted in a "end of file encountered" error. Here is what I know.
I am running a very simply state machine setup with three loops. One to control the connection and TCP WRITE to an exe running on another machine. A second to control the connection and TCP READ to that same second machine. And a third loop to write some FALSE conditions to cFP modules, configure the 485 serial port, and then to launch and run the subVI which displays information via a webpage on a HMI. The subVI displays data from a SQL database which I am reading on that second machine and passing through to the cFP via TCP. Since the subVI has a problem loading in the webpage I figure the problem is in that loop. It could be related to the remote front panel code or could be in the code to call the subVI.
Any suggestrions? I don't have the hardware. Its deployed on a production line at a client. I am trying to get the hardware back in so I can debug with my development machine.
Doug
Solved! Go to Solution.
05-05-2010 04:55 PM
Hi Doug,
I have a couple of questions:
1. What is the cFP controller and LabVIEW RT versions, etc.
2. What do you mean by "control the connection"? Does it have to do with clients connected to the RFP?
3. Also, if the cFP is displaying information via webpage, are you referring to the RFP or is this a separate webpage hosted on the LVRT server?
I'm not quite sure where the problem is, but as far as debugging is concerned, you can try disabling some of the loops to see if performance improves. You can also build a debuggable executable to try and debug the issue: http://digital.ni.com/public.nsf/allkb/CE6C440EE28BDF9F8625714000746D15
05-06-2010 10:54 AM
cFP-2120 with LabVIEW 2009
Control the connection is the TCP connection through two ports to an exe running on another networked windows machine
The cFP is displaying the front panel of a subVI using remote front panel/web publishing tool functionality.
I will picking up the cFP to bring back to my office to debug.
07-29-2010 08:21 AM
Ok, we finally got this solved. Thanks to the effort given by Roger Hebert of NI for the help.
It seems I had two problems. The first was a 0 bytes of 0 % downloaded problem. When I took the cFP off the deployed network and put it on my home network, I didn't remove the specified DNS server in the cFP setup page. Since it wasn't present on my local network, it couldn't download the web page properly. Unspecified the DNS server fixed that issue.
The second issue was this "server has regained control" followed by the "end of file" message. In my code I am publishing a subVI's front panel as a webpage. Its a single while loop that executes once and stores information shift registers. It is called repeatedly in a timed while loop from the top level VI. When the front panel appearance of the subVI was default it worked fine. But when I changed it to a dialog to hide the menu bar and run button, by default the "show front panel when called" and "close afterwards if originally closed" are checked in the VI window appearance properties. The "close afterwards if originally closed" caused all the problems. After it ran, it closed and released the control back to the server (cFP). When the top level loop called the subVI again it couldn't file the subVI, which had been closed.
Thanks to Roger for the patience to help me out on this. But who here understands the pharse "close afterwards if originally closed"?????????