siva Posted November 4, 2007 Report Share Posted November 4, 2007 <p style="text-align: left;"><a class="noborder" href="http://lavag.org/old_files/monthly_11_2007/post-4279-1194047889.jpg" target="_blank"></a></p> A sample code to show the possibilities of LabVIEW +AJAX. To run, Download File:post-4279-1194047596.zip Unzip and copy the ajax_text.htm, diagram.js files to the following folder, <LabVIEW 8.x.x>\www\ Download File:post-4279-1194047580.vi Copy the mycgi.vi to the following folder, <LabVIEW 8.x.x>\www\cgi-bin\ now, start the G-Webserver ane surf the following link, <a href="http://localhost/ajax_test.htm" target="_blank">http://localhost/ajax_test.htm</a> This approach takes less band-width for transfering the information across the web. so, Controlling/monitoring the application through the web at low-bandwidth is possible.. No image tranfers. No need to install LV runtime at client side. All the presentation part is done using client-side javascripts. LabVIEW just passes the result data through the CGI. Quote Link to comment
Yair Posted November 4, 2007 Report Share Posted November 4, 2007 Sounds interesting, but unfortunately requires the internet toolkit. Quote Link to comment
siva Posted December 28, 2007 Author Report Share Posted December 28, 2007 QUOTE(Yen @ Nov 4 2007, 12:24 AM) Sounds interesting, but unfortunately requires the internet toolkit. That example demostrates the implementation of web2.0 with labview. Offcourse the demo needs internet toolkit. But, With proper implementation of web2.0, internet toolkit can be avoided. 1) Point all the xmlopen function to a application server 2) Implement a tcp communicator(labview code) in application server On a tcp request, read the network-shared variables and convert it into a csv string and send it as a tcp response 3) in the ajax script, parse the value and update the graphics on the page. This technique demands very less bandwidth compared to the traditional approaches.. Quote Link to comment
mngolo Posted May 12, 2009 Report Share Posted May 12, 2009 QUOTE (Yen @ Nov 3 2007, 07:54 PM) Sounds interesting, but unfortunately requires the internet toolkit. is that technique works with the new implementation of labview web services? im trying to use it to draw a graphic from this xml generated from labview but im having problems (im new to ajax and samehow i just cant get the job done). <Response> − <Terminal> <Name>vout</Name> <Value>0,000000</Value> </Terminal> − <Terminal> <Name>httpRequestID out</Name> <Value>71</Value> </Terminal> </Response> i want to download to the graph the value of vout (wich is diferent every time after refresh) Quote Link to comment
Jolt Posted July 10, 2009 Report Share Posted July 10, 2009 Great original post by siva! Unfortunately the links don't work anymore. Anyone have any ideas? Specifically, I'm having trouble with the Javascript side of things - parsing and displaying the returned XML string... Pointers and/or examples appreciated! Cheers, -Jolt Quote Link to comment
Michael Aivaliotis Posted July 10, 2009 Report Share Posted July 10, 2009 Unfortunately the links don't work anymore. Anyone have any ideas? I just fixed the links. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.