11-07-2017 07:33 PM - edited 11-07-2017 08:02 PM
I have a cRIO-9035 which runs NI Linux Real-Time and I created a project using the wizard and it offered to have a web server based UI so I chose that option. The instructions say to upload the provided html file to the web server root folder, enable the web server, and then browse to it via a web browser.
The web server, according to the web-based system configuration, the web server is running on port 80. However, I'm unable to find any documentation that actually tells me where the root of the webserver is located. I found out that the only folders that I can write to via WebDAV are:
So, I figured "webserv" sounded like a good place to put web server files. This doesn't appear to do anything. So, I tried putting a simple text file in there to see if it would properly show any file via the web server. When I browse to http://<ip>/helloworld.html, I get error 404.
So, how do I get the web server working?
EDIT: Using LabVIEW 2014 SP1
11-08-2017 12:49 PM
Hi NathanJD,
Are you talking about the FPGA Project wizard? I would like to take a look at the documentation that you are reading.
"Root Directory" Typically means the highest level location on the drive (Example: C:\). From your post this sounds like the same level as the folders which you are talking about.
11-08-2017 01:02 PM
Here are the steps that get me my pre-built project:
File > New...
Project > Project from Wizard > Real-Time Project
OK
Project type = "Continuous communication architecture"
'deterministic components' is checked
Next
Target Configuration = Two loops
Include user interface is checked and set to Remote Panel
Next
Add my target as a cRIO-9035 (as a new target since it's not currently connected)
Next
Open VI's is checked
Finish
It creates readme.txt which is where is "explains" how to set up the web stuff. The "root" to which it refers is not the OS root, it's the web server root (which on Linux with Apache, in my experience is typically a "www" folder).
So, the wizard appears like it creates a working project but that is definitely not the case here since the instructions are way to vague to be useful.
12-05-2017 08:30 AM
Jup, it referes to the appache file root, which is /var/local/natinst/labview/www
Nevertheless I don't think it a good idea to use these network panels as a interface to the cRIO.
For several reasons:
It is a far better idea to creat a small webpage by youself which calls some methods of an NI webserver. You can use frameworks and java script on that, all you want!
12-05-2017 02:27 PM
So, it turns out that the instructions (in the ReadMe file) are just plain bad. I had a coworker look into this using a "remote front panel" tutorial/other information and he got it working.
We are only using the remote front panel as an intermediate step to test some non-time-sensitive components in our hardware (e.g. for debugging hardware issues). When we actually do the end-product, we won't use any web services.