07-07-2009 07:04 AM
HI,
I have created a HTML Form page. I want to export all the fields which are stored in HTML into Labview, do all the backend processing work on the fields and return back values into HTML. Does anyone know if it can be done in LabVIEW? If not, can anyone please suggest what is the best way to do this job.
Thanking you,
SUCHIT SHAH
Solved! Go to Solution.
07-07-2009 07:07 AM
07-07-2009 07:10 AM
Hi Suchit,
it sounds like you want to provide your front panel as an webinterface. Please see the webpublishing tool.
http://forums.ni.com/ni/board/message?board.id=170&message.id=325294&requireLogin=False
Mike
07-07-2009 07:48 AM
Hey Mike,
Thank you for your reply. But I fear thats not the case. I do not want to create a front panel on Labview. Instead, I want my HTML page to be the front panel and LabVIEW's Block diagram for all processing work. I wanted to use Labview as a backend language (just because I feel most comfortable with it) which takes input from the HTML page and does all logic work on it and returns output back to the HTML page. I hope am able to convey my idea clearly here. Or else, let me try to build some sample HTML page and give and idea as to exactly what I am looking for.
07-07-2009 08:01 AM
Hi Suchit,
i think in this case your LabVIEW program has to work as a webserver.
This link can be usefull:
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=361394#M361394
Mike
07-07-2009 08:28 AM
I think yeah...I need to make LabVIEW as webserver. Though I haven't worked on it before ...I probably would have to find tutorials or sample examples on NI website.
Just for my own sake of confirmation, I have uploaded a sample html page to show what exactly I plan to do. When I click submit button, I want to parse all the field input values and send it to LabVIEW to store in excel format and later on after processing retrieve from excel and send it back to html page. Do you think, using webserver TCP/IP is the best option to do this stuff?
And by the way, thanks a lot for your replies.
07-07-2009 08:39 AM
Hi Suchit,
i'm not sure if it is the best option. You can also use apache server to write your file. 🙂
What else do you want realize in LabVIEW? Why do you need this data in LabVIEW?
Mike
07-07-2009 09:54 AM - edited 07-07-2009 09:57 AM
To be honest...just because I am GOOD with LabVIEW. I searched on the internet and found I can do the same stuff with either Visual Basic or even simple PERL / VBscripts...but I thought...since I know Labview...I can exploit it to use for this purpose. Do you think...LabVIEW is not an efficient way to solve this problem?
Oh by the way..the reason I am using HTML is because I have multiple pages with such similar forms..and as far as I know..Labview will open different windows for each VI. So I wanted an interface where say, if I click on the "SUBMIT" button, the form changes to say page 2. In labview I think...the only way I can do this is through TAB CONTROL..right? So I thought its easier to make front end in HTML and backend storage part in LabVIEW or as you say probably an APACHE SERVER.
07-07-2009 10:03 AM
Hi Suchit,
i'm sure it's possible. The before provided link contains a small webserver. With this you should be able to see the field names and the values which were received.
BTW: a tab control is not the only way to present different views. You can also use a subpanel.
Mike
08-05-2014 10:14 AM
Did you get the solution for this one?
I am also having ideas but it too early to share. I need sometime, inorder to solve it and I almost there.
Though it's easy if you will be using MYSQL. Using Labview is exciting...