High speed http GET help?

Hey I, I have a machine hooked up via RS232 to a standalone computer that has a C++ program that takes the machine information, converts it to xml, and posts it to the tcp/ip host.  I am trying to stream that data to network computer using labview and HTTP GET command and writing the values to binary file to be opened in excel.  My program works, but its only sampling twice a second and I assume that is because I have everything inside the loop and its taking too long to run through the program.  I was wondering how could I accomplish this faster because I need to sample like every 10-100ms.  Something in that range.  This program will be used for monitoring, but also for analysis so that is why the sampling speed needs to be faster.
I am completely new to programming and labview and I could use some real detailed help on this.  Ive attached my current program.  Please, any help or suggestions would be greatly appreciated.  I am working on a deadline and its taking me forever.  Thank you guys for your time.
Attachments:
XML-RPC loop.vi ‏96 KB

Great job on the Producer-Consumer conversion! It looks like you put forth a good deal of effort and understand the general concept.
I mislead you when I said "Consider creating a SubVI for each of the snippets that were copy-and-pasted in your Data processing". What I meant was since each of the functions was so much alike, create ONE SubVI, then use multiple instances of that ONE SubVI. Practices such as creating reusable SubVI's promotes scalability and maintainability, yet Copy-and-Pasting code backs you into the corner of "technical debt" as the project scope increases. On inspection, it would just be better to process your data in a For Loop without needed a SubVI at all. Consider the following:
The efficiency of this code is not impressive, but it's maintains the spirit of the code you already have written, for the purpose of comparing what you have written to a more scalable solution.
Also, rather than having two 'Stop' buttons, you can stop the bottom loop by wiring the Error Out from the Dequeue directly into the Loop Stop Terminal. When the top loop exits from pressing the stop button, it will destroy the queue after exiting the loop, causing a (benign) error on the Dequeue in the bottom loop, causing that loop to cleanly exit. All of the File Write business should be in the No Error case of a case structure, so that it doesn't execute on this (benign and expected) error condition.
Finally, when you upload your top level VI, ensure to upload SubVI's as well. They show up as "?" when I open the main VI. I am especially interest in the VI you have named "TCP Read All.vi", because this is probably the culprit for your slow loop times.
a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

Similar Messages

  • Safari HIGH SPEED PROBLEMS HELP!!!

    Hi, I'm new and my iMac is old.
    Anyway, in early Oct. my high speed stopped working with Safari, Mail, and Software update. It is however functioning perfectly. My friend came by with her PC laptop and it works fine. My internet connection tells me I'm hooked up, my provider has concurred that there is no connection issues at all, yet when I open Safari I get the spinning ball and then "Safari can't find the server".
    -When I hook up using dial up... Safari and everything else works fine (that's how I'm posting right now on my trusty old mac)
    -Does anyone have any suggestions??? I really miss my high speed. Any help would be appreciated. I have tried many of the suggestions in the the Safari spinning ball thread to no avail.
    -Could this be a hardware problem?
    ANY HELP WOULD BE GREATLY APPRECIATED.

    Hi. My ISP is Bell Sympatico Ultra High Speed with a SpeedStream 5200 ADSL Ethernet Modem.
    I have... followed every usual re-set and sink for the modem. Disconnecting the power, restarting, clearing the cache, resetting Safari, reconnecting the modem... which like I said, contacts, authenticates, authorizes and connects to my ISP just like it always did. When I open Safari.... beach ball, "Safari cannot find the server" even though I am clearly connected.
    Used a physical Reset button on the modem as well (did this with a Sympatico help person on the line, following their prompts)
    Removed the Safari Plist from preferences and Safari Icons folder from my Library... restarted.. still nothing.
    Yet dial up still works like normal, like it is now.
    ..and yes 128 SDRAM.
    I know, I know... But, it still runs high speed (up until the first of Oct.) and more Ram is worth more than the whole computer... and yes, I need to get a new iMac, but anyway...
    iMac G3 350Mhz   Mac OS X (10.3.9)   128 Ram, OS X 10.3.9

  • How can I add an address to my high speed contacts?

    I have an address in my general contacts but I cannot figure out how to add this name to my catagory of high speed contacts! Help!

    From the general contacts group drag the name (contact) over to the high speed contacts group in the left side column.

  • I just set up an Optus Cisco DPQ3925 wireless router to access higher speed internet I signed up for. I have a 4th gen airport extreme I want to put in another room and use as a wifi extender the wifi but I get an error message each time I try. Help?

    Hello all.
    I have just set up a new cisco DPQ3925 wireless router that Optus sent me to be able to access the higher speed internet I have signed up for.
    I have a 4th gen apple extreme that I want to use to extend the wifi but when I try to update the settings via the airport utility I get a message that says it cannot do so, and to check it is in range and the wifi is set up correctly. I'm not experienced with these things but I can't think what I have done wrong.
    Is anybody able to help me please.

    You cannot use the AE to extend wireless from a non apple router such as your cisco modem router.. they are not compatible..
    You need to tie to the two devices together either with ethernet or something like EOP adapters.. They are about $120 and you can price match in officeworks.

  • I switched modems to a cisco for high speed broadband now my homesharing will not show my computer so I cannot stream my movie collection. WI/Fi works as I can get apple TV and you tube. Of course my ISP is no help, any ideas.

    After switching to a new Cisco router for higher speed broadband my homesharing will no longer show my computer so I cannot stream my movies. My WIFi functions as You tube Apple TV and Netflix all work,please help.

    http://reviews.cnet.com/8301-13727_7-20025542-263.html
    I have not tested the solution suggested in the article linked above.
    But hope it helps.

  • Any Help will be apreciated,  I am having problems printing with my Epson PX720WD using Aperture software.  I am getting banding across the photo equal distances apart (25mm), plus it appears to be printing at high speed.

    When printing on my Epson PX720WD using Aperture 3 I get lines across the photo 25mm apart, it also appears to be printing at high speed.  I have no problems when I print through Epson Easy print.

    Thomas
    Wow - thanks for such a comprehensive post.
    I have Aperture and a 2400 so this information is exceptionally useful to me.
    Again - thanks for caring and sharing
    Brian

  • I changed from a dial up to a high speed network and can no longer get Firefox to work as my browser. What do I need to do?

    I changed from a dial up to a high speed network and can no longer get Firefox to work as my browser. What can I do.
    I did try to download Firefox again, but still will not work.

    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 6.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • How do i change the http setting to high speed

    how do i change the http setting to high speed ???

    Are you experiencing problems with a slow connection in Firefox?
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Another possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install?

    I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install on my 24" Imac?

    As long as you use your Apple ID to purchase it, I don't see why they wouldn't let you download the installer on one of their Macs and put it on a pocket drive.
    Or, a friend with a high speed connection?
    I agree with you about the delivery method, just trying to help you get what you want.

  • Help! data manipulation for high speed streaming to disk from multiple boards and multiple channels

    I am using Labview 7.1 and have been trying to capture data from 12 channels simutaneously sampled at 2MS/s each and streaming to disk for up to a minute or more.  The hardware I am using is 2 x PXI 6133 S series boards with a MXI4 link to a Pentium D 2.8 Ghz machine with 2Gb ram.   I have 2 sata drives set up in a raid 0 configuration which should give me hard disk write speed faster or equal to the MXI-4 transfer speed. 
    I have first started off by using the example code "multi device sync - analog input- cont acquisition" which has enabled me to sync the two boards and sample at the required speed. 
    To stream the data to disk, I have first merged the data from each board  together to save it to one file.  I have tried using the storage vi's but I end up with a Daqmx read error (trying to read data that is no longer available).  I have played around with the read data size to the point that I either get a insufficient memory error, or I get the "trying to read data that is no longer available"  error.  I have also tried using the file IO blocks with some success and have found that I have been able to stream to disk only if I configure the daqmx read block to output the data in "raw 1D I16" format and plugging it into the file-write block.  In doing this, I have noticed that using  multiple channels on one daqmx read task, I will get all the channels in one 1D array rather than a 2D array organized by channels.  This makes it messy to read at the end of this, and I also don't want to write another vi to separate the channels, due to the high chance of getting the data mixed or messed up if I happen to change the number of channels on a board
    Is there a cleaner way of streaming this data to disk and keeping the channel data separated from each other?, and/or is there a better way to capture and handle the data I need? 
    I have attached the vi which I have got to consistantly work streaming to disk using the raw 1D I16 format.
    Thanks in advance to anyone who can help.
    Attachments:
    multidevicesync_analoginput_streamtodisk.vi ‏197 KB

    Hi,
    i can suggest following
    Refer to an example VI called as "High speed data logger.VI"  in conjunction with "High Speed data logger reader.vi" in Labview examples. Alhrough the logger might be in Tradiditional Daq format, it can be quite easily converted to Daq Mx format to store data in Binary (I32 format) . I have used this for many of my applications and i have found that the data retrieved does not have any "messups".
    Why not keep a seperate file for each card? This way, you do not have to load your application with extra process. You only have to acquire and save. After saving in Binbary format, you can retrive it offline, convert it to ascii format and merge the data files of various cards to get one consolidated ascii data file.
    hope this helps
    Regards
    Dev

  • Urgent problem! please help. high speed digitizer, channel switch time too long!

    Dear all NI high speed digitizer experts:
     I post a question concerning the two-channel configuration using NI5154 digitizer (see Need help to configure a two-channel acquisition using NI5154 ).
     As we need to do some measurement using NI5154 very soon so purchase a DAQ board as suggested by Efrain is not a option for our coming experiment. So I try to configure the NI5154 a two channel acquisition. I configure the NI5154 to count pulse in two channels. Our experimental setup will send pulse to channel 0 for 400 ms and then stop. 100 ms later pulses from other source will be send to channel 1 for 2 s.  I thought the 100ms dead time in our setup would be long enough for the digitizer to switch from channel 0 to channel 1. But after some test I found the digitizer takes more time to switch between channels. 
    I made a test vi (NISCOPE-Timing.vi) just for count how many ms it takes for the digitizer to switch between channels. In the attached vi, if you run for only one channel one loop takes about 20 ms in my pc. If you run for two channels it takes about 130 ms for one loop. If you just run one channel twice the loop time is about 40 ms (I mean stop a channel and then restart the that channel).
    I don't understand why it takes so long to switch from channel 0 to channel 1.  As I tested the niScope Commit.vi consumes a lot of time for the second channel. Is there any way to avoid this? We can not extend the 100ms long dead time of out set up so I must get rid of this problem. 
    Solved!
    Go to Solution.
    Attachments:
    NiSCOPE-Timing.vi ‏34 KB

    Hi Lixin,
    There are a couple of different options that you may try. The first, which it sounds like you may not prefer, is to use the TRIG line on the 5154 and somehow find a way to route both sets of pulses to that line. You can either somehow connect both lines to the one input or use some sort of external switch since the signals will not come in at the same time.
    Unfortunately, what you re seeing in terms of the time it takes the board to reconfigure itself for a different trigger channel and re-inititiate is due to the settling time that is necessary for the board to be able to fully reach its specifications. The majority of settling usually occurs pretty quickly, but the board will wait for some time to get the best possible performance in terms of specs. If you are okay with reducing this settling time (and very slightly diminish the specified performance), then you can use an internal scope property to set the max settling time.
    I have attached a .rc file which must be placed in the LabVIEW directory for niScope to enable use of this property node. Please place the file in your ...\Program Files\National Instruments\<LabVIEW 2009>\instr.lib\niScope directory. Once the file is in that directory, restart LabVIEW, and you should be able to see a new category in the niScope Property Node tree titled "Internal". Under that category, you will have the Max Settling Time property, which gives the driver a maximum amount of time (in seconds) to wait for settling before beginning a new acquisition. Add this new property to your first property node at the beginning of your program. I tested this out with a value of 50 ms and found that my initiate went from ~125 ms to ~53 ms or so after reconfiguring the trigger channel and re-initiating.
    Hope this helps!
    Daniel S.
    National Instruments
    Attachments:
    niScopeMaxSettling.zip ‏1 KB

  • Battery gets very hot during use and doesn't last long, fan runs at high speed, computer won't shut down

    Macbook Air isn't a year old and I don't leave it plugged in ever. The battery might last 2 hours and gets very hot. In addition the fan runs at a very high speed. The computer won't shut down in a normal way. I have to hold the power button down to shut it off. Can someone suggest something please.
    Thanks.

    Runaway applications can shorten battery runtime

  • Help! Trying to record/render high speed movies (1/1000fps). Can I do this?

    I am trying to make high speed movies of the twitches. My camera can do up to 1/10000 fps analog but I cannot change the raw video fps. I believe it is 29.97, because of this each frame has 2 or more captures on it. No good! Can anyone help.

    What camera is this? How is it recording the footage?
    I had footage from a camera that shot at 2000fps to a hard drive..a high speed computer camera. That raw footage wan't something I could use in FCP, as it was some proprietary format. They needed to export it from their system as a Quicktime movie...Animation codec. And it being a computer camera, it captured with computer monitor dimensions, 800x600. So I had some resizing to do.
    How does your camera work?
    Shane

  • My MacBook Air 2nd h 2011 running Mac OS X ver 10.7.5, camera disappeared. FaceTime. Photo Booth, iChat, Skype can't find it. It isnt in System Report, in USB High-Speed tree. I've browsed discussions found no solution.Pls help me

    My MacBook Air 2nd h 2011 running Mac OS X ver 10.7.5, camera disappeared. FaceTime. Photo Booth, iChat, Skype can't find it. It isnt in System Report, in USB High-Speed tree. I've browsed discussions found no solution.Pls help me

    JLeme wrote: ... camera ... isnt in System Report, in USB High-Speed tree...
    If you have tried every relevant suggestion from How to Troubleshoot iSight but your camera is still not recognized anywhere in your System Profiler's USB Device Tree, you likely have a hardware problem.
    Properly applying the Combo version of the latest update for your Mac OS can sometimes correct software problems, but, if your trouble is caused by a hardware problem, there are no user serviceable parts of the camera.  For hardware help, contact Apple or an Apple-Authorized Service Provider for service on your MacBook Air.

  • HT204400 I have an old single 2.4 ghz router. If I upgrade to a new high speed router will I get better streaming video?

    I Have an old single 2.4 GHz router. If I upgrade to a new high speed router will I get improved streaming of  videos?
    thanks.

    It depends on what's rate limiting - if it's your wifi maybe, if your internet connection is slow the router won't make a huge difference though some products are better with poor lines.
    Can you hook up a laptop to the router via ethernet and test the internet speed via speedtest.net?

Maybe you are looking for