12-05-2007 02:50 PM
12-06-2007 05:25 PM
12-07-2007 08:42 AM
To Clarify:
The Run Button is the Native LV Toolbar run button, it was simply turned on for runtime under the VI properties.
Problem Summary - I made a major mistake and upgraded my dev package from 8.2.1 to 8.5 that cuased the following
1. Application would run with no problems when it was deployed to the CRIO through the development package.
2. When the user would access the CRIO via the web page the web page had two menus "Edit" and "Operate" that appeared, all menus and Toolbars had been disabled in the VI properties.
3. Application was running on the hardware as indicated by the User1 and FPGA LEDS that were toggling via the running code. I setup a write file function outside the right side of the RT loop. This functions purpose is to write any error code and error source to a text file on the CRIO. I had to do this to capture any errors because I could not get to the front panel to see the error cluster. The only way the code is allowed to stop is if there is an error. The error status signal was tied to the RT loop stop control.
4. During my attempts to troubleshoot the web server I made MANY publications, each of which looked different, i.e. scroll bars would show up even though they were disabled, Sometimes the webpage would appear to be floating above the web browser (hard to describe but basically the front panel was not posistioned were it was suppose to be). Even though the pages would look different and none of which ever came out looking correct NONE of them would update unless the LV run button was visible in the toolbar and pressed. Pressing the abort button would stop the web page from updating and pressing the run button would allow it to update again.
5. During the early stages of troubleshooting errors were captured that pointed to a Property node in a native low level vi. To correct this problem I had to delete the open FPGA ref and install a new one on the block diagram and point it to the ORIGINAL bit stream file, Another word of caution is to ensure you VISA reference is pointing to the right resource AND saved as default value. I also want to note that during this projects developement that there was a bug in LV that would not always be visible. The bug is that the FPGA ref would would not flow into a Sub VI. The work around was to create a Type def control and place it inside the Sub Vi then wire the upper level VI FPGA ref to the Type Def control of the Sub VI. Again this would not always show up but would cause problems with the code if it was not wired like this.
Solution
The problem turne dout to be the RT VI that gets published. It was corrupt. It would run but would not allow the web server to access it properly. I found this out by creating a small vi that used the same sub VIs and FPGA taget VI on a smaller scale. It worked like a champ so I rebuilt the Host VI and it worked the firts time.
Note I was unable to get my error log to show up at c:\, I had to use C:\ni-rt (on the CRIO platform)
lesson Learned
The simple answer here is NEVER upgrade your dev package in the middle of a time sensative project and if you feel compelled to do so make sure you have a complete backup.
Hope this info helps other FPGA / CRIO project developers
12-07-2007 10:21 AM