How to disseminate data over HTTP

Hi all

Need a little bit of sense on this one because I think (and hope) it's pretty simple, but I can't for the life of understand me. Not much on the TCP/IP or HTTP protocol before am so a little out of my comfort zone.

I'm talking to a momo SoMat Lite. There is a command that I can call in a web browser that works perfectly (from the point of view of obtaining data and to the screen): http://192.168.100.100:2345 / realtime? rate = 10 & Headers = 0

It returns data, continuous, at my window Chrome. If I scroll down, I find that new values are written on the bottom of the page at all times. Everything is in a text format.

Now, all I want to do is to replicate that in LabVIEW. This is where I am stuck. I tried various HTTP and TCP/IP Protocol and got more or less errors. I have attached a VI that does not work. The reasons why? I don't get errors until I get an error timeout on TCP/IP (error 56) of reading. If I run it again I get error 60 since the first VI.

Any help gratefully received.

Looking at the details of the HTTP protocol for the device, you have 2 options:

(1) use the screws of HTTP Client to claim a fixed amount of data
(2) use the screws of TCP/IP to implement a HTTP protocol that can "keepalive" the TCP connection to read data continuously

With Option 1, the VIs HTTP will send an HTTP request and wait for a response to be sent followed by the closing of the connection device. I think that the URL you provide maintains the TCP connection alive to continue to send data (which are added continuously to the page) which probably means that the client HTTP VI will continue to read the data until the VI is to expire. You would need to ask a set amount of data every time that you run the VI of HTTP (for example 1 data point) which must be returned within the time limit of the VI of HTTP.

I think with Option 2, you need to implement a basic HTTP request in TCP - similar to what you did but rather to send a string that is a URL, you must send a properly formatted HTTP GET request header and then to the TCP read HTTP response headers followed by your data, you will receive.

According to Wikipedia... .the string must be formatted as follows:

-A request line (for example GET /realtime? Rate = 10 & Headers = 0 HTTP/1.1)

-The request headers (maybe not required... but a "Host: " line apparently is required as part of the HTTP/1.1 specification ")

-A blank line

-Body of the message (probably not necessary...)

If you use the CRLF of the PCT read mode, you should get a reading by line of HTTP headers (which cannot be sent by the device - I guess that's what the headers = 0 is for) followed by a reading by row of data (as you saw by accessing it via the browser).

If you use some of the tools in your browser (for example in chrome - tools-> tools development-> Network tab) - you can usually see the raw HTTP sent/received data when you access the URL you provided.

Tags: NI Software

Similar Questions

  • How to play video over https using system of video player?

    BlackBerry 10.3

    Question: I tried to call the system video player to play video files with the Protocol file:// and http://, it's OK, but when I changed to https://, it hangs and displays SIGSIEV.

    the same as url https protocol can be played in webview & qml media player control.so here is the question:

    Q: how call system of video player and play the video via the https protocol?

    Thank you.

    Oh... my bad, problem solved.
    I forgot to init call Director.

  • How to get data from HTTP connection string?

    First of all, I have a PHP page that establishes the connection and the query to the database to get a random string in the database and printing on the page, say the name is: getString.php, such as every time that you refresh the page, the string that is printed on this page can be (or most of the time) different. The next step I wanted to do is to get this string and put it on my application for Blackberry, and I do not know how.

    I use WAP2 for the connection, and I copied the code that is shown here:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    So once the connection is established, how can I get the string content in this page? I had the url of http://mydomain.com/getString.php

    Thank you!

    Why don't you use a StringBuffer?

  • Muse in the preview is not working. Doesn't have a prior view. Cannot establish a connection over HTTP. How can I fix? Antivirus protection does not block. Firewall disabled

    Muse in the preview is not working. Doesn't have a prior view. Cannot establish a connection over HTTP. How can I fix? Antivirus protection does not block. Firewall disabled

    Sorry I forgot to paste the link in the previous answer,

    Here's the link - Preview fails in muse

    Kind regards

    _Ankush

  • How can I have my partner over HTTPS messages

    My partners want to send messages over HTTPS and I can't see what follows in one of the threads. It is good even for HTTP (S) or the HTTP protocol?

    "or cannot create channel listen HTTP." There is a channel to listen to HTTP to default you should use-

    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet

    Your remote TP may publish documents to the URL above.
    "

    Thank you
    Vincent

    Vincent,

    It is true for HTTPS as well. The partner must validate documents on the url (if SSL is enabled on the server of SOA)-

    https://hostname:soa_server_port/b2b/httpReceiver or https://hostname:soa_server_port/b2b/transportServlet

    If you use any off-loader SSL for your front door, then the host and the port will change accordingly.

    Kind regards
    Anuj

  • I follow from the same date over and over again. And it updates successfully whenever I sign in my computer.

    I follow from the same date over and over again.  And it updates successfully whenever I sign in my computer.   Or I can click on windows update and update the same thing again.  Some miuutes or a fews seconds it will say I need to update my computer again.  I updated the same 25 times.  How can I stop this.

    Hello

    I suggest you follow the steps in the link below and check if it helps:

    http://support.Microsoft.com/kb/910339

    It will be useful.

  • XML over HTTP

    I download a XML over HTTP. The extension is .php, but it fully contains XML data. The Chrome browser, it shows me - exit iterpreted content defined in XML instead of the Tags etc. However, on IE, I can see XML.

    Now in my BlackBerry (curve 8900) application in the connectivity of BIS - B, I get the result interpreted as in Chrome and it of course cannot be parsed.

    But if I save the same PHP file (with XML inside) as .xml and do the process above, it works fine - I get XML proper.

    Could you please someone indicate why this is happening and how can I solve it?

    Well it's rubbish isn't.

    Because I assume that your server sends the same data, it appears then that is to be converted by the BIS-B gateway.

    You can check all the Http headers you receive to see if you can see a difference.  I suspect that the server sends a different Content Type in each case, and the gateway that uses to decide that it can reformat the data.

    Otherwise, you might be able to define a header on your application which will stop the bridge BIS-B change the answer.  You might find something like those coded in this Thread to work for you.

    http://supportforums.BlackBerry.com/T5/Java-development/Vodafone-UK-wav-file-downloading-problem/m-p...

    You can also review this article:

    Support - HTTP transmits incorrectly when includes a User-Agent 'BlackBerry '.
    Article number: DB-00600
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/support...

    And you might find something interesting here:

    http://supportforums.BlackBerry.com/T5/Java-development/direct-TCP-and-WAP-2-0-connection-problems-c...

    Let us know how you go.

  • How to display date / time in the browser console?

    How to display date / time in the browser console?

    You can set through the Options (gear icon) page in the Web Console (Firefox/tools > Web Developer).
    This applies to the browser console and the Web console.

  • Re: How to restore data after format disk?

    Hi, people

    I need your help to restore some important data which disappeared after formatting the hard drive.
    I have not any backup that was my mistake.
    Everyone's help is appreciated.

    Thank you all.

    Hi mate

    I don t think you will be able to do.
    Usually, data are lost after you have formatted the HARD drive.
    Of course, there are some different applications that could help recover some data for example. Data Recovery Wizard, but it is not cheap software.

    But I found this:
    http://www.Buzzle.com/articles/how-to-recover-data-from-formatted-hard-drive.html

    Maybe it helps. Good luck

  • How to save data in the text file of Spartan 3

    Hi all

    I would like to kindly save the data table text file or a spreadsheet on vi using fpga spartan 3e as an fpga target. Once I added all the functions related to the operation of file, it gave an error that these functions are not supported by the target device.

    could you please help me with this

    Thank you

    Rania

    Hi David,

    Thank you for posting. You use LabVIEW? If so, what version of LabVIEW FPGA do you use? You use a host VI, or any deployment of code at your target to run? The file IO VI probably won't compile to target because they are not intended to be used on your host computer. Resources and the paths of files do not exist on the target FPGA, but rather on the side of the host. I have included a link below that describes how to transfer data between the FPGA and host. I hope this helps!

    http://zone.NI.com/reference/en-XX/help/371599F-01/lvfpgaconcepts/pfi_data_transfer/

  • How to download data from test to SFIS via webservice

    Hello world

    I need to download data from test to SFIS via the webservice and the service will return the result., but I have no idea of web service.

    I need to submit as soon as possible. If anyone can write it.

    You start by the seller. How do get the data? HTTP put and get operations? Customer HTML screws can do that.

    Which makes the network based thing you are trying to send your data? It would be useful to know. You see SFIS, MY or LIMS are terms all very generals who actually communicate very little useful information (see also: "buzz words").

    Mike...

  • How to recover data images and videos

    How to recover data images and videos of empty Recycle Bin.

    Hello

    Have you looked in the trash?

    Recover files from the Recycle Bin - Vista
    http://Windows.Microsoft.com/en-us/Windows-Vista/recover-files-from-the-Recycle-Bin

    Recover files from the Recycle Bin - Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/recover-files-from-the-Recycle-Bin

    How to restore previous Versions of a file and the folder of Vista (Ultimate, Business and Enterprise)
    http://www.Vistax64.com/tutorials/122127-previous-versions-shadow-copy.html

    How to restore files and folders in Windows 7 with previous Versions
    http://www.SevenForums.com/tutorials/85679-previous-versions-restore-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    This could help you recover a file, or a previous version (all versions of Vista and Windows 7).
    http://www.ShadowExplorer.com/

    ShadowExplorer - recover lost files and folders (Vista and Windows 7)
    http://www.SevenForums.com/tutorials/132087-ShadowExplorer-recover-lost-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    Recuva - free - recovers files deleted from your Windows computer, Recycle Bin,
    map of the camera digital or MP3 player. And it's free!
    http://www.Piriform.com/Recuva

    Recuva - Forums - help here
    http://Forum.Piriform.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to move data from the old hard drive to a new operating system, games, songs, vista etc.

    you want to install more hard drive. How can I move all of the data, os, games, music, etc.

    and have computer always starts.

    Hello

    You cannot move by themselves programs

    you need to reinstall it from the original media

    read this about moving everything, including the operating system

    or save your data and reinstall clean vista

    There are different ways to do

    hard drive manufacturers will normally provide the cloning software to move your operating system installed from the old to the new hard disk

    Search for information on this subject on their Web site

    If you have vista business or ultimate, you can use the builtin vista complete PC Backup to move

    read the information below

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    or if you have vista home version you'll need 3rd party software

    link below is an example of this:

    http://www.Acronis.com/homecomputing/products/TrueImage/index.html

    also to put your machine how you bought:

    1. that vista is preinstalled, you should have a recovery on your old hard drive partition

    You can recovery disks to reinstall on your new hard drive

    ask the manufacturer of the machine how

    2. contact the computer manufacturer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    3. or borrow a microsoft dvd vista

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    Save all data, because it will be lost, do the above

    How to make a backup of your data

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

  • How to open .dat WP51 with Vista?

    I have Windows Vista, and it should be up to date.

    I need to access two WP51 documents that were sent to me.  We got a .dat extension, and the other has an extension .read.

    I was prompted to "set associations...". "but when I went to the appropriate place to do this, nor read extensions or .dat generated on the long list of extensions on the page"associate a file type... ". ».

    It is essential that I have access to these documents.  I can't find anything when I googled "How to open .dat wp51" (except odd links to pages of pirate...)

    If anyone can help, I'd appreciate it.  Please keep your instructions as lay people as possible.

    Hi AnnieElle,

    Looks like there are two parts to your question:

    (1) open a file read:

    Just to clarify, you have tried to open the file read extension in a text file? (Opening the .dat file perfect word would fail to open as a .txt file)

    (2) open a WordPerfect file with .dat extension:

    Basically, the idea would be to open the file in WordPerfect or open it in a word perfect reader. It would be really better to know which version of this file may have been because they have different extensions depending on the version of Word Perfect.

    Reference (for more information on what file extension fit the WP version the .dat file came from):

    http://en.Wikipedia.org/wiki/WordPerfect

    How do you get the file to read at this point would be to change to the extension of the WP program it has been generated to go and then open the form in WordPerfect format or Word Perfect player. For example, to change the .dat by .wp extension and open it.

    If it does not, the file is of a type, we cannot recognize or likely unreadable or corrupted.

    Hope this helps,

    Steve <> Microsoft Partner

  • How to transfer data from an old laptop (broken screen) to a new laptop

    How to retrieve data from an old laptop, to transfer to the new laptop. the problem is that the screen is broken on the old portable th.

    From Internet Explorer

    Original title: data transfer

    The easiest way would be to put his HARD drive in a box that connects to the computer by USB.

    This is just an example - http://www.amazon.co.uk/Hard-Drive-Caddy-Case-Enclosure/dp/B003MVW2SM

    You probably have a 2.5 HDD "because I know that all laptops do.  If you need to buy an enclosure for a 2.5 drive "[not a disk 3.5" that could come from a desktop computer].

    Almost all cases derive the power to drive the HARD drive to the USB itself [rather than an external power].  If you see one that needs an external power supply, then you are probably looking to the wrong thing.

    You need to know if the HARD drive is IDE or SATA.  It depends on the age of the computer.  Your computer's manual should tell you or you can whip the HARD drive just to have a look.

Maybe you are looking for

  • How to stop Firefox from storing the CAC PIN?

    I'm working on the configuration of Firefox to use an ACC Player. In the process, it seems that Firefox saves my PIN. For example, to put in place the .dll file to get Firefox to see the player, I went to view certificates to verify that they were in

  • Formula

    Should what formula I use? If B2 M registration, then I want C2 to say "Male." Help!

  • Compaq fan not working, overheating and stopping.

    I've had my Compaq Presario CQ60 - 227ca for about 2 years now and after getting my favorite fan on this last time he stopped working. The laptop since I bought it was always heating to a high temperature, but the fan just always worked harder. Think

  • Using multiple cores in a fun XP

    I normally run Windows 7, but I use a Windows XP fun to start a reduction program.  The program has a parallelizer which runs on up to 4 cores, but the fun is to limit to one.  I have a processor i7 with 2 cores and 4 wires.  In my fun XP Task Manage

  • Print layout on screen rotation when you use the arrow keys

    I must have accidentally pressed a wrong key combination.  Now, when I use the arrow keys on the keyboard while typing of text, orientation changes screen, according to which key I hit it, I hit the down arrow, the text on the printed page rotates 18