FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

how to build a login program by using CGI for built-in webserver of fieldpoint

hi ,

I want to build a login program by using CGI . And implement in the built-in webserver of feildpoint.Can any one help me to give ideas ? THANKS
Message 1 of 8
(4,566 Views)
Hello,

The G Web Server is what you should try to use. The server comes with the Internet Toolkit. There is no way to use CGI directly with FieldPoint without the G Web Server. There is lots of information here about the Internet Toolkit http://www.ni.com/support/labview/toolkits/internet/. Once it is installed there is lots of documentation that comes with it.

Let me know if you have any further questions.

Regards,
Sean C.
Message 2 of 8
(4,544 Views)
HI,Sean C.

Thanks for your reply. I am a starter of labVIEW,so i dont know much how to build such program. Can you give me examples relative with these programs. And i have problem in configuration access of the G web server . Thanks
0 Kudos
Message 3 of 8
(4,511 Views)
Hi,

If you have the Internet Toolkit already, the User’s Guide has great instructions that will help you get started. In particular to your questions, I would suggest you take a look at the section titled “Using CGI in LabVIEW” and “Getting Started with the G Web Server”.

Also, once you start the G Web Server (Tools >> Internet Toolkit >> Start G Web Server), just type in http://localhost on a web browser and you will be directed to a page with a large selection of CGI examples.

Again, the Internet Tookit is your best bet. From there, take a look at the User’s Guide for examples and instructions. Thanks!

Kileen
0 Kudos
Message 4 of 8
(4,486 Views)
Hi, KileenC
Thank for your reply. I have followed the instrustion of user guide of G web server to configurate it .But i still cann't try to implement my vi to the server.And i have problem in configuration access. I have attached my simple vi at below. i want to try to implement the vi to the server where my computer acts as the server. And then,people browse it with a request of password and user id. Can u tell how to do it and configurate it.Thank you
0 Kudos
Message 5 of 8
(4,470 Views)
Hi Barry,

To set up configuration access to a VI panel image, you will need to set up a global access configuration file (*.cfg). There are numerous CGI shipping examples that are included with the Internet Toolkit. To access these examples, first start your G web server. Then, in a web browser, type in http://localhost (if you are not using port 80, you’ll need to type in a colon followed by the port number in the URL).

The localhost url above should direct you to the default homepage for the G web server. Make sure the title is “G Web Server” and not “LabVIEW Web Server.” From the G web server page, you’ll see a button to “View CGI Examples” and from there, you’ll see a category titled Access Control. Just so you know, the hard-coded path to this page on your computer is: C:\Program Files\National Instruments\LabVIEW 7.1\www\examples\access.htm. There are then examples on setting up access control for panel images as well as directories. The sample configuration file is: C:\Program Files\National Instruments\LabVIEW 7.1\internet\http\conf\access.cfg

Hope this helps. Best of luck!
Message 6 of 8
(4,432 Views)
Hi, KileenC
I have built the login programe and attached at below. The user Id is ni and password is ni.com . Would you help me to check if it is whether ok. I have tested,sometimes,it would display out the login window for user to entry password,then user can browse the NI.COM if he/she get correct password.But sometimes,it doesnt do it.User can browse the NI.COM directly without login. Can you tell me what is happened with it? Thanks
0 Kudos
Message 7 of 8
(4,413 Views)
Barry,

I didn't see any immediate problems from looking at the code, but I cannot run it without the website that contains the link. Can you provide the URL for me to go to and check the functionality of the vi?

TylerS
0 Kudos
Message 8 of 8
(4,364 Views)