Jump to content

LabVIEW + AJAX (Asynchronous Java and XML)


Recommended Posts

<p style="text-align: left;"><a class="noborder" href="http://lavag.org/old_files/monthly_11_2007/post-4279-1194047889.jpg" target="_blank">post-4279-1194047889.jpg?width=400</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.

Link to comment
  • 1 month later...

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..

Link to comment
  • 1 year later...

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)

Link to comment
  • 1 month later...

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.