Go to the PHP website using Labview 8

Hi people,

I'm writing a vi LV8 to retrieve data from a Web site. The first site I've played with just had a text output so a simple:

-OpenTCPConnection (for 'www.hpc.ncep.noaa.gov')

-WriteTCP:

-line 1: 'GET heat_index_MEAN/hitable_east.txt '.

-line 2: "" Host: www.hpc.ncep.noaa.gov".

-line 3:

-ReadTCP

It worked perfectly fine.

But this isn't really the data I want. I want the data displayed on the Web site:

http://forecast.weather.gov/MapClick.php?W0=t&W1=TD&W2=Hi&w3=sfcwind&w3u=1&W4=sky&W5=pop&W6=RH&W7=th... 96 & textField2 =-77.48167 & site = all & unit = 0 & dd = 0 & bw = 0

But, when I try the same calls I get the error messages like:

Query HTTP/1.0 400 Bad server: AkamaiGHost Mime-Version: 1.0 Content-Type: text/html Content-Length: 216 Expires: Sunday 12 August 2012 17:40:25 GMT Date: Sunday 12 August 2012 17:40:25 GMT connection: closeBad request

Bad request

Your browser has requested that this server could not understand.

Reference #7.9f931160.1344793225.0

I don't know enough about HTML or PHP to tell if I have a HTML or PHP problem; and what I have to understand to move forward. More precisely:

-can you tell if it is a PHP or HTML problem in my code?

-If Yes, which?

-I can access a Web site (which uses PHP) LabVIEW?

-what I have to learn more about PHP to proceed?

-J' tried to send a command "OPTIONS" of HTML, but I received very similar eror messages (not a quesstion)

-the site has an XML option that displays data as text/XML, but it also seems to use PHP, if I get the same errors with my code (not an issue)

-any ideas on how to use labview to read data from this site?

Thank you, in advance...


Tags: NI Software

Similar Questions

  • I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    Dennis has already said: for a direct PC - PC connection, you need a cross over cable. If you connect through a router or a switch, you use a standard cable.

  • Coloration of the code for the PHP files using CSS

    Coloration of the code for the PHP files using CSS

    The Situation:

    It is possible to mix PHP and CSS so that you create a PHP file and it is served to the user in a CSS file. It works just like writing a normal PHP file which is then processed and used in HTML. To do this, you create a PHP file and at the top of the file, you add the following line of code:

    <?php header("Content-type: text/css"); ?>

    This line tells the browser that the file is CSS instead of HTML. Fantastic.

    Here is a link to a more detailed article on the subject: http://www.barelyfitz.com/projects/csscolor/

    The problem:

    The problem is that when I create a PHP file in Dreamweaver code colors in the document like PHP for PHP and HTML to CSS code code because it still thinks the document is supposed to be a HTML document. Is there a way to change the style of this situation? I find that code coloring to normal CSS files is really useful and would like to be there instead of just black text.

    Other information:

    I already have this submitted a feature request to Adobe, but I never heard back. Does anyone know how to do this now?

    I would really like to see the code coloring to adapt to the content type of the file, when the file is PHP. So if no content type is specified, values by default in html format, but when it's CSS, code coloring so a coloration of the different code is used. It could also adapt to files JS, XML files, the works. But really, I just want to add the PHP/CSS code coloring.

    I'm certainly not an expert, and this is my first time looking at the file,

    but it looks like the section.

    "ID ="CSS"doctypes ="CSS"priority '50' = > ' see the style css and

    the and refer to where the design must

    be applied. If that is correct then the code you provided should style

    It all starts after the

    and ending with another php code? It should be then that a

    tag additional php to be present in the document of 'close' the

    blowdry.

    And the continuation of this line of thinking, I have just that in the (php-> css)

    file. I placed my code. Then

    After the CSS, I placed another block of php: and it works!

    The CSS is styling just like should the CSS.

    Logically, you need that, and it seems to work ok for me without it. If Yes, you can change "" to be more explicit and less impact for PHP parsing, such as ' /DW/ '.

    Haha, Unfortunantely, PHP is more the same color scheme. He

    went from normal red blends what the html code looks like

    scheme (blue with quotations from green text). Fortunantely this configuration is far

    more convenient than the previous color coding!

    All subsequent PHP Directives are coloring properly for me - it's just the first one that triggers the coloration (e.g. ) is not. What do you see?

    If, therefore, in the XML file you added in CodeColoring.xml, you can change:

    scheme = "outerTag.

    is similar to the colouring of the PHP Directive:

    scheme = "customText" id = "CodeColor_PHPScriptBlock".

    This causes the entire PHP directive is red color - not optimal, but a little better.

    HTH,

    Randy

  • How to implement the wafer map using LabVIEW?

    Hello LabVIEW Masters!

    I have a project which includes control and searching for information on a PROBER. One of the difficulties I have now is how to implement a WAFER card using LabVIEW. According to the requirements of my client, the element of pads varies between 6 k and 23 k. I guess that do everything (a = a ctl/indicator led) will be a hell of a task, especially on how to effectively manipulate each elements. Does anyone have a better idea on the way whose that?

    Please, I seriously need your help...

    Thank you and best regards,

    Dennis DG

    Hi Dennis,

    This wafer GerdW post card appears to me as a sort of histogram (for example http://www.ni.com/white-paper/4158/en#toc3);

    Altenbach post well this example that shows how to use a plot of intensity to create a 2d histogram:

    http://forums.NI.com/T5/LabVIEW/overlay-plots-as-intensity-graph/m-p/211222#M119248

    Learn how it works and try to adapt it to your specific task.

    Alex

  • Failure of the assertion when using Labview ActiveX functions to communicate with the dll

    Hello

    I'm looking for suggestions and tips about the following error that I get when I use .NET Labview functions to communicate with the dll written in .NET environment. I just need a starting pointer on where can I search for the origin of this error. I am a newbie in. NET.

    I am also attaching the .vi I use, if this is of any help. All suggestions are welcome!  Thank you.

    The origin of the error found after studying the examples provided by the OR .NET. The callback function had to be moved out of the loop, which solved the problem.

  • How to make the load simulator using labview 2010

    I would like to ask how to load simulator using labview?

    What have you tried so far? and exactly what your tying to do?

  • Simulate the sine wave using LabVIEW FPGA with NOR-myRIO and display in real time

    Hello

    I'm relatively new to LabVIEW FPGA. I am trying to test (and later apply) controllers high speed on myRIO.

    At this point, I'm trying to simulate the sine wave from 1 to 10 kHz using Sinewave generator VI express. I also intend to display the sine wave on the time real (RT) using FIFO. However, I had a bit of trouble to understaing various synchronization parameters.

    1. how to encode information about the sampling frequency generating sine wave? (The side FPGA vi requires only the frequency of the signal and possibly phase and does not rate update lines)

    2. how to estimate the number of items in a FIFO? (that is, the relationship between the rate of updates to loop (RT), the signal frequency, sampling frequency and the number of items in the FIFO)

    It would be great if we could share a very simple program (side host and target) that did something similar.

    Thank you

    MILIN

    Milot,

    I think the problem is the type of data in your FIFO. Your FIFO is configured to use a data type of I16. The problem is the number, it displays only ever will be-1, 0 or 1. To resolve this problem, you must send the sine wave as a fixed point data and convert it to a double on the side of the RT. This should significantly improve your resolution.

  • Close the HyperTerminal Application using LabVIEW

    I have a client who wants to LabVIEW to close the HyperTerminal Application automatically is the serial port open.

    It is easy to detect that the serial port is already in use.  I already have a popup that tells the operator to close any application communication because the port is already in use; However, they want to do it automatically.

    HyperTerminal is not taken support ActiveX, and they will not go to the version more professional who does.

    For a long time, I had read a thread where it was possible to close (or open)? and demand having no ActiveX support.  I expect to use similar approach...  Opening the app is simple, but closure is another story.  You need some sort of reference to this request to tell Windows that are to close.  The Win - XP operating system.

    Suggestions are welcome.

    R

    http://www.howtogeek.com/HOWTO/Windows/kill-processes-from-the-Windows-command-line/

    OR

    Taskkill (command line as well) http://technet.microsoft.com/en-us/library/bb491009.aspx

    Taskkill /IM hyperterm.exe

    kill hyperterm all windows open, BUT it will ask you if you want to close the sessions open, which I think that you do not want.

    Taskkill /F /IM hyperterm.exe

    voila (without chewing the com port, I just tried)

  • How to control the Planar scanner using labview

    Hi, I am facing a control scanner Planar JSS project, the interface goes series use DB25 port, PM341UNIT and limit switch.

    I don't have any ideas on how to start. Please I need support.


  • How to set the step property when I create the movie file using labview

    I have download a sample program which is a LabVIEW VI, which creates a new sequence file, add a Global file that is a container with two properties and adds a step that calls a module of LabVIEW code (with the new Global file as output from the code module) on the page of NOR.

    Attachment has four screws:

    CreateSequenceFile.vi
    AddFileGlobal.vi
    AddStep.vi
    Module.VI

    I modified AddStep.vi to set a step as the characters "hello" property in Step.Result.ReportText.

    But it does not work. If anyone can know and fix, please download the revised AddStep.vi.

    Thanks for the help.

    Change the appearance the string to Result.ReportText.

    Given that you found the step as an object of property you not need to specify a look up string like Step.Result.ReportText.

    Thank you

  • Programmatically insert step of ActiveX/COM using LabVIEW

    Hello

    I would like to be able to create sequences like the one set using LabVIEW.

    This sequence has only 2 steps, a LabVIEW VI call and an adapter of ActiveX/COM call.

    I was able to do using an adaptation of the code here: https://decibel.ni.com/content/docs/DOC-36337

    However, I am struggling to add the step of the ActiveX/COM.

    Any help would be welcome.

    Thank you

    Of course, there is a way, if you look for it

    Since you have an existing 'Step' class object, you can also get a 'Module' object for her. Subsequently, you will need to specify that it is an ActiveX module. If you do not know which - probably you need to get the object 'map' somehow... Our case is simpler, so just cast to the ActiveX module and... to set certain properties like ServerId, ActiveXReferenceExpr and so on.

    I've attached an example for you. Interesting thing is the ServerId - I just read this chain of the TS for similar action and reused it here so do not ask me how to get automatically

    You will need to complete your 'properties' as 'file' - but I'll gracefully leave this work for you =.

    Best regards

  • zedboard Xilinx Zync 7000 interface using labview

    Hello

    I'm doing my thesis in Zedboard for the development of a test for DDR3 memory and verification. For this I need to set up a base of dedicated on NI Measurement Studio LabVIEW graphical user Interface.

    Theme: Algorithmic Szudy of test set-up for DDR3 SDRAM with a Xilinx architecting.

    Here, I made my algorithm Xilinx SDK. But I need to create a graphical interface using labview. To run these programs. Please let me know how I can do this.

    1 or is it possible to directly access the SoC architecting using Labview. If yes how?

    2. or if I have to do the coding of Xilinx SDK and how do I run this code using Labview?

    Please give me a detailed answer. As I am new to labview. I m not understanding how to start with. If you have any design example please share with me.

    Thank you best regards &,.

    Nithin Ponnarasseri

    No you can not grow directly in LabVIEW and deploy this program to the Board of Directors Zync. NOR has their own material base platform Zync (cRIO and myRIO) but the tools to target these tips are specific to the hardware implementation OR and will not work with other hardware. Develop an interface for another hardware platform is a lot of work and must be adapted for each unique flavor to a new hardware platform. And NEITHER does not support this for other devices.

    If your option will be to develop an application with the SDK Zync for Zync ARM controller and provide a form of communication interface (serial port, TCP/IP, or similar) to this application you can send commands to LabVIEW for your embedded application.

  • How to transfer files from PC to PC via a serial port using labview

    I need to transfer files (.txt, .doc, .xls) from PC to PC via a serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?

    Yes, it is possible to transfer files with the serial port using LabVIEW.  The files are just collections of bytes and the serial port is good enough in the expedition of the bytes from one PC to another.  You must connect the ports series with a null modem cable.

    First, take a look at the example of serial communication.   In LabVIEW, go to the Help menu and select «Find examples...» ».  From there, you can search for "serial" or navigate to hardware input and output > series.  Select «Write series base» and Read.vi  Try this example to gain confidence on the serial communication methods.

    Then it's time to learn how to read and write files.  For this, the examples might be somewhat confusing as they deal with files that are presumed to have data of a specific type in them.  I would recommend just familiarize yourself with the functions in the file e/s palette.  Specifically, familiarize yourself with the following functions.

    1. Open/create/replace file - on the side of your destination, you will need to create the copy of the file you are trying to transfer
    2. Close the file - when you're done reading or writing to a file, you must close it.  It cleans the memory used and finalizes write operations that are still floating in the write buffer.
    3. Read a binary file - is the best way to play a file when you don't really like what type of file it.  In your case, you just want to get these read bytes and sent so they can be written down instead of destination.
    4. Write to a binary file - next to the destination, is what will store the bytes in the file that you created with the number 1.
    5. Size of the file get (under the range of the advanced features of file) - you need to know how big the file is, so you know when you are finished.

    OK, so once you are able to create files byte write and read bytes from existing files, you can move forward.

    I suggest the basic method is to have the user specify a source file on the source PC, and a folder on the destination computer.  Then find the size of the source file using the number 5.  Divide this number of size by the number of bytes that you want to transfer to the times.  The series pads are usually around 32 k (if I remember correctly) in order not to exceed that.  Now start to send data by reading a number of bytes and this string output wiring to the feature of writing VISAS.  On the side of destination, you will want to monitor the serial port for bytes and read when they arrive.  This string of yarn to the writing of the function of binary file to add them to your destination file.

    This is the basic outline of how to do it.  He needs to not to overload him write and read buffers on the serial ports.  Initially, you can use delays on the side sending to make sure that the side reading has enough time to digest.  To make things faster, you can bring in a control of flow.

    If all that sounds a little intimidating, there are there Alliance member companies (such as the automation of PrimeTest) who can write this code for you and even provides a turnkey for you solution.

    Happy wiring,

    Dan press

    Certified LabVIEW Architect

    PrimeTest Automation

  • I can't access some websites using Firefox. For my own site, I get "file not found". My Yahoo downloads in the form of text. No problems with browsers IE or Chrome

    I can't access some websites using Firefox. Pages say "File not found" or in the case of Yahoo and Facebook, they resemble the on-screen text files. No problems with my computer and it is not the case with my browsers IE and Chrome. Already deleted and reinstalled Firefox and it has not solved the problem

    You can also do a check of malware with some digitization programs of malicious software on the Windows computer.

    Please scan with all programs, because each program detects a different malicious program.

    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • When I'm not able to use the video stream on the BBC website.

    At the same time, I was able to use the video stream on the BBC website. I am more able to do. However, I use the video streams on other news sites.

    If the videos are Flash videos, you have disabled an option in Flash preferences to not allow sites to store Flash cookies on your machine. Made BBC videos in Flash are expecting to be able to store cookies Flash, so videos can not work with this option off Flash.

    Go to Storage Global Flash Settings Panel which serves as Adobe/Macromedia site and check the box «Allow third-party Flash content...» ", where you can then manage the sites you have already visited. You will need to reload the page from the BBC after you change this setting.

Maybe you are looking for