LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interacting with a CGI web page

Solved!
Go to solution

Greetings NI Forums,


I am trying to develop a telescope pointing control system which needs ephemeris data generated by a Jet Propulsion Laboratory web site:

http://ssd.jpl.nasa.gov/horizons.cgi


The main interface to their horizons system is via Telnet which is insecure and no longer supported by LabVIEW.  I was hoping someone could advise me on how to get started using LabVIEW to interact with the above cgi based web page.  If I can do that, I can retrieve the required ephemeris data and parse it inside of LabVIEW using basic string commands.

Is there a basic tool kit you can point me to for interacting with web pages or any sample code?

Thanks,
Scott

 

High Altitude Observatory

Boulder, CO

0 Kudos
Message 1 of 2
(3,717 Views)
Solution
Accepted by topic author Scott_Sewell

Use the HTTP Client VIs:

2015-11-06_09-45-45.png

 

The GET VI is the standard 'give me this web page' request - give it the URL to your Ephemeris data session and the 'body' output will give you the content of the web page - if you use the plain text output then that should make parsing the string easier (no html tags etc.).

 

(Also, you can use Telnet in LabVIEW, there just isn't a bundled library for it any more - you should be able to use the TCP VIs to roll your own and you can also interface with other Telnet libraries/applications e.g. PuTTy...there might even be something in .NET)


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(3,678 Views)