LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Send values to the Internet?

Is it possible to send values from CVI to a web browser and submitting it?
0 Kudos
Message 1 of 6
(3,593 Views)
There is several ways to do this.

You can create and Image of the value or the whole Application window and publish that in a place were your web browser can access the image file.

You can Use the NI Internet toolkit

Or you can write your values is a tect file and process the tect file using a CGI scrip using any of the variety of languages out there. I would recommend my favourite thou nameley PHP as it's very close to the C syntax and easy to pick up for c programmers.

If you can be more clear on what exactly you want to publish and the format of the value etc I can give you more specific pointers.
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
0 Kudos
Message 2 of 6
(3,593 Views)
What do you mean by sending values, do you mean publishing an image of a UIR, or just posting some values you determine programatically? If it is the first then see Jattie's suggestion. If it is the later then you could probably just create an html file with the values you want. Also, what do you mean by sending values to a web browser? Do you want to create a web page for other people to view, or do you just want to save some data in html format and then open a browser to view it (the later can be done with ActiveX).

Regards,
Ryan K.
0 Kudos
Message 3 of 6
(3,593 Views)
Sorry for not being clear about my question. I need to send values to a form on the web browser. For instant, say this is an input field called 'name' on this page. I would like my program to fill in the value 'Ly' and then have it submitting with a click on a button from the program.

Thanks for your time Jattie and Ryan.
0 Kudos
Message 4 of 6
(3,593 Views)
You can do it, but it will definitely not be the easiest way to achieve the objective. The accessibility of your web form will determine what you can and can not do.

The first issue would be populating the field of the form, and that can be achieved by actually re-generating the form programmatically and assigning a value to the html value tag for that field.

The second issue of "click on the button" is not trivial. If you're in the windows environment you will have to get into intercepting windows messages from the message queues and get the handle of the web browser window and after finding all the relevant information that will change every time this process is performed, is in my opinion not worth the effort.

I would approach this di
fferently in looking at what you are trying to achieve in the first place and that is to do directly with the data what the form would've done.

Forms will either send some e-mail to someone using the submitted data or submit information to a database or write it to a file. If you have a cgi script behind the form you can pass the information directly to the script rather, i.e call the scrip directly in the same way the form would've using your program and skip the form.

If you can be specific about your objectives and give me details about the forms and detail on the web server type and the capabilities of handling various types of cgi scripts I can give you detailed advice and pointers towards achieving the solution.

Questions you need to answer:

  1. What would the form do with the data? (mail, file, database etc.)
  2. How many fields do you need to submit?
  3. What type of web server are you running? (IIS, Apache etc.)
  4. Were is the form hosted, on the www
    or on an intranet?
  5. Is it accessible to you to change/add scrips to it?

Hope this helps.

Best regards
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
0 Kudos
Message 5 of 6
(3,593 Views)

Has anyone continued down this path successfully?

0 Kudos
Message 6 of 6
(2,976 Views)