Improving load times in Linux LabVIEW executable

I'm looking for (simple) ways to improve the loading times in a Linux LabVIEW executable. We're using a low performance, low cost CPU board, and loading times are terrible. The CPU is capable of doing everything after the application is loaded, but takes forever to get there.
One of the problems is the size of the executable, that grows everytime you just look at it. Are there ways to create smaller executables? It runs from a Compact Flash card, which is ofcourse much slower than hard disk.
Another problem is a dynamic vi, that is started for every TCP connection that connects to the application. It takes a long time to load, and connecting too fast can even effectively hang up the system. Starting a handler task takes about half a second, up to a few seconds for the first task.
We're using the LabVIEW 7.1 runtime, system is a 300 MHz cyrix SBC, running from a Compact Flash.

Dennisvr wrote:
I'm looking for
(simple) ways to improve the loading times in a Linux LabVIEW
executable. We're using a low performance, low cost CPU board, and
loading times are terrible. The CPU is capable of doing everything
after the application is loaded, but takes forever to get there.   One
of the problems is the size of the executable, that grows everytime you
just look at it. Are there ways to create smaller executables? It runs
from a Compact Flash card, which is ofcourse much slower than hard disk.   Another
problem is a dynamic vi, that is started for every TCP connection that
connects to the application. It takes a long time to load, and
connecting too fast can even effectively hang up the system. Starting a
handler task takes about half a second, up to a few seconds for the
first task.   We're using the LabVIEW 7.1 runtime, system is a 300 MHz cyrix SBC, running from a Compact Flash.
I'm
not sure about the first part of your question. LabVIEW is highly
binary and does a lot of memory allocations before even one VI is ready
to be started. So maybe the memory manager is a problem. Another issue
is that the Macintosh like resource file format that is used by LabVIEW to store its VIs etc. results in
lots and lots of individual disk accesses with a rther random like
character inside a single file. So if you can configure the read
caching of your disk to use more memory this may significantly increase
the speed of loading LabVIEW VIs or applications.
And finally spawning VIs through VI server is a rather costly operation
especially on low resoruce systems. A VI is more like an executable in
many ways as far as resource consumption is concerned rather than a
thread. A much better way would be to avoid spawning subVIs altogether
and implement a queued TCP/IP server similar to the Date Time Server
example. It is a little extra work to work with this shift register
architecture but it will not have the issues of long load times for
every new TCP/IP connection coming in.
Rolf Kalbermatter
Message Edited by rolfk on 03-07-2006 06:33 PM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Loading jfx app into web browser with preloader (improving load time)

    hi,
    has anyone made any attempt to construct kind of application preloader, waiting for whole app to load can take long time and default spinning wheel with java cup is not really user friendly.
    I was thinking about breaking app in two parts
    1)login view
    2)rest of the app that will be loaded lazily
    but then how to load second jar, what about updates of that second jar. Is there any way to talk to javascript in browser to show something nicer then default applet's preloadder.????
    maybe there is a better idea on how to improve loading time of jfx app embedded in web browser, my experience is based on 1.1 version of jfx so now it can be better.
    apart from jfx component im planing to use spring ioc and jdbc driver. so it should show something as quick as possible (confirm certificate and show login view) and then (or in the meantime) load rest of the stuff.
    any thoughts appreciated
    thanks

    Have you read the last post of (the prolific ;-) ) Rakesh Menon ;-)
    http://blogs.sun.com/rakeshmenonp/entry/javafx_lazy_loading
    May be it could help you.
    Regards
    Richard

  • Improve Query Suggestions Load time

    How can I improve load time for Pre Query Suggestions on search home page when user start typing ?? 
    I notice it was slow in loading when I hit first time in the morning so I try to warm up by adding
    ""http://SiteName/_api/search/suggest?querytext='sharepoint' ""
    in to warm up script but even during the day time after hitting few times it is slower some times . Any reason ? 
    Do you think moving Query Component to WFE will do any help here?
    Pleas let me know - Thanks .  

    Hi,
    Query Suggestions should work at a high level overview is:
    • You issue a query within a Search Center site and get results..
    • When you hover over or click a result.. this gets stored as a “RecordPageClick” method and will be stored in the Web Applications W3WP process…
    • Every five minutes ( I believe ) this W3WP will flush these Recorded Page Clicks and pass them over to the Search Proxy…
    • This will then store them in a table in the SSA ( Search Service Application ) Admin DB
    • By default, once a day, there is a timer job, Prepare Query Suggestions, that will run
    • It does a check to see if the same term has been queried for and clicked at least 6 times and then will move them to another table in the same DB..
    • If there are successful queries\clicks > 6 times for a term, and they move to the appropriate table, then when you start to type a word, like “share”
    • This will fire a “method” over to the Search proxy servers called “GetQuerySuggestions” and will check that Admin DB to see if they have any matches..
    • If so, then it will show up in your Search Box as like “SharePoint” for a suggestion…
    Other components involved with the Query Suggestions:
    Timer Jobs
    Prepare query suggestions                   Daily
    Query Classification Dictionary Update for Search Application Search Service Application       Minutes
    Query Logging                    Minutes
    Database
     MSSQLogQuerySuggestion (SearchDB)  This gets cleaned up when we run the timer job
     MSSQLogQueryString (SearchDB)  Info on the Query String
     MSSQLogSearchCounts (SearchDB)  Info on the click counts
     MSSQLogQuerySuggestion Looks like this may be where the hits for suggestions are stored
    So the issue might related to timer job, database, connection between SharePoint server and SQL server. There is  a similar case caused by DistributedCache.
    If you move query component on to another sever, this may improve the process related to Search service, however, it may affect the performance due to networking.
    Please collect verbose ULS log per steps below:
    Enable Verbose logging via Central Admin> Monitoring> Reporting>Configure diagnostic logging(You can simply set all the categories with Verbose level and I can filter myself).
    Reproduce the issue(Try to remove SSRS).
    Record the time and get a capture of the error message(including the correlation ID if there is). Collect the log file which is by default located in the folder:  <C:\Program files\common files\Microsoft Shared\web server extensions\15\LOGS>.
    Stop verbose logging.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Slow load times

    Hi there -
    Is there a good way to improve load times for my pages that have Edge animation?  I have a very simple slide show set up, and even with the Preloader script, it's taking many seconds to load the page.  Any thoughts?
    Thanks!

    Hi Amy,
    Did you try the suggestions in this article?
    Edge Animate reduces runtime size by 55%, ‘Save to Custom Folders’ feature, new Preloader options, and more! « Adobe Ed…
    animation - Improving Performance in Edge Animate - Graphic Design Stack Exchange
    Thanks,
    Preran

  • Dvrcast load times - is HDS a solution?

    We are streaming H.264 video to the dvrcast application using RTMP streaming.  Everything is working fine, though we are noticing some unacceptable load times when loading large videos for playback that have been recorded this way.  I found http://forums.adobe.com/message/3399973#3399973 which offers some suggestions.  I will be looking into post-processing the video to defragment it, but I'm also interested in HDS.  Is it possible to use HDS with dvrcast streams that were recorded to mp4 via RTMP streaming?  I tried the HDS URL convention - http://server/dvrcast_origin/stream_name.f4m but this isn't working.  Are there other suggestions for improving load times for long videos with the dvrcast application?

    Additionally, I can't seem to get the F4V post processor to work with these files.  It is throwing an error "cannot open file" and the -v flag adds no helpful output.

  • Labview executable does not open excel...

    i just compiled labview code into an executable and when i run the executable, it does not open an excel document like it is supposed to.  it opens the excel program, but not the specific file stipulated in the code. the problem only exists on one of my computers.  the "problem computer" is being set up for the first time to run labview executables.
    thanks in advance for the help.
    Erik

    That is probably the reason.  Microsoft is notorious for the way they change their activeX components between office versions.
    At the minimum, you need to install the LabVIEW runtime engine on the other PC.  It needs to be the same version as the version of LabVIEW you developed in.  You can either search the NI website and download and install the run-time engine, or you can create an installer for your application from the development PC that will include the run-time engine.
    You may need some other run-time engines such as VISA or DAQmx if your application is using any of those functions.

  • Same image, loaded multiple times: speeding up load time?

    I wrote this message before thinking about embedding the
    image... I was thinking that putting a relative path automatically
    embedded the image, but in retrospect I was wrong, and that will
    probably solve my problem. I'll just leave the question here anyway
    though:
    I'm using image components in my application loaded from a
    relative path. The problem is, I have many copies (30+) of the same
    image, essentially 30+ identical image components which need to be
    loaded/unloaded at different intervals, and they are not loading
    fast enough for me. Would it be more effective to duplicate an
    existing "master" Image to improve load time instead of explicitly
    setting "image.source=" each time? Is there any better solution for
    improving image load speed?
    Best of all would be some way to pre-cache or buffer images,
    so that I can be guaranteed that they will load as quickly as
    possible when I bind them to an Image component.
    Cheers!

    JPGS are much better for photos.  PNGs are good when you need transparency.
    Instead of Image Swapping, why don't you use a photo gallery?
    FancyBox is nice..  It supports real text captions/descriptions, too.
    http://fancybox.net/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to improve the load time of my swf group

    Hi,
    I need help to have some tricks to improve my load time on my swf captivate online traning. My training has 6 sections and it takes 3 minutes to download each time I open the window of the training. It takes too much time and if there are 50 users at the same time, it will take lots of my website bandwidth. Do you have any tips on captivate settings or other tips to help reduce my training download time? I do not understand why the 6 modules loading simultaneously and not every time I click to start a new part of training.
    Can you help me with my problem?
    Thank you

    Bryan,
    If "read from spreadsheet file" is the main time hog, consider dropping it! It is a high-level, very multipurpose VI and thus carries a lot of baggage around with it. (you can double-click it and look at the "guts" )
    If the files come from a just executed "list files", you can assume the files all exist and you want to read them in one single swoop. All that extra detailed error checking for valid filenames is not needed and you never e.g. want it to popup a file dialog if a file goes missing, but simply skip it silently. If open generates an error, just skip to the next in line. Case closed.
    I would do a streamlined low level "open->read->close" for each and do the "spreadsheet string to array" in your own code, optimized to the exact format of your files. For example, notice that "read from spreadheet file" converts everything to SGL, a waste of CPU if you later need to convert it to DBL for some signal processing anyway.
    Anything involving formatted text is not very efficient. Consider a direct binary file format for your data files, it will read MUCH faster and take up less disk space.
    LabVIEW Champion . Do more with less code and in less time .

  • Linux labview unable to run executable

    I would like to run a labview executable and have been unable to do so.  The executable was built on a Windows platform using Labview 9.  I'm using a Linux box and when I try to run the executable from a terminal I receive the error message "bash:  cannot execute binary file" and if I try to double-click the executable on the desktop I receive the error message "Nautilus has no installed viewer capable of displaying ".
    I've already installed the Linux labview runtime engine.
    Am I missing files that need to be associated with the executable?  Or is there an environment variable set improperly?
    Thank you,
    Laura 

    This is outside of my area of expertise, but 'NiRioSrv.so' and 'FPGA vi templates' tells me your application most likely uses both the LabVIEW Real-Time mobule and the LabVIEW FPGA module.
    Both of these modules are not available on Linux [1] [2], which means your application will not load or run.
    [1] LabVIEW Real-Time Module Release and Upgrade Notes
    http://digital.ni.com/manuals.nsf/websearch/297523CECD7F45BC862575B00063C235
    [2] LabVIEW FPGA Module Release and Upgrade Notes
    http://digital.ni.com/manuals.nsf/websearch/EAD749EE185AE46C8625759A007D8591
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • Load Time for executable

    Hi,
    I've just built an exe from a vi that loads very quickly. It takes about 10s to display the icon in the task bar and then more than 40s to display the front face.
    I've disabled everything in my vi so that the only thing made at start up is an apparition of the front face from 100% transparancy to 0%. In the exe i just include my vi.
    Do you have an idea to fix this?
    Attachments:
    diagram.JPG ‏148 KB

    Remi
    Here are attached the CPU charge of the vi itself and the vi in exe. I've checked the while loop and added some timings which improves a lot the load time of the vi and a little the load time of the exe.
    I don't use high resolution images on the front panel.
    I'm using Labview 8.5 under windows XP SP3. I don't know exactly the version of the driver installed (I couldn't find).
    The application is acquiring data on a RFID system and after some analysis fills a database. In the meantime, a bigger part of the database is read and displayed on the main front panel.
    It has been designed by launching 6 times the same acquisition vi (which is composed of 2 loops one generating data and one consumming datas) in order to try to rich real time treatment.
    Best regards,
    Julien
    Attachments:
    CPU charge.PNG ‏359 KB

  • How to improve the process chain loading time

    hi gurus,
    one process chian having start - loading - roll up (3activities) but the load is data mart load which is going to update 11further targets. this take 1hrs. we want reduce this load. pl give ideas about reducing process chain time. (there are no indexing in the chain)

    delete index and re-create after loading will surely improve loading performance but only it is only applicable if you do not compress the data , because if you compress the data will be available in E fact table.
    Check the  tranfer and update rules, if you have routines that read tables, check  those statements and see if they can be still more optimized.
    In the infopackage see ifyou have load PSA and then in to data target , if so check if there is any possibility of changing to load both in parallel.
    hope it is clear
    assign points if useful

  • Pacman improvement suggestion - total loading time

    Hi! Sorry if this issue has already been dealed but I couldn't find it at least with the forum's search function and this section gets so many messages every day that I couldn't browse too far. And at least it is not yet implemented in pacman
    Anyway, I'm new to Arch with most of my previous linux experience with Debian/Ubuntu. I did not have any problems starting using pacman after apt, but I read the Arch vs. Debian posts on both forums and somebody mentioned (don't remember which forum) that pacman only shows the expected loading time for individual packages and not the total loading time.
    I don't know how difficult it would be to implement this to pacman, but I'm sure people would find it quite useful since normally we download more than one package. Plus it would take one argument away from Debian fanboys
    I'm generally really pleased with Arch, I have had it only a few days and already learned a lot. It is still good that "easier" distros exist for beginners, but KISS philosophy suits me and I'm ready to enter a totally new level of linux experience.

    Well that was a quick implementation! I guess I should read the manuals a bit better, since the pacman man page already said that the pacman.conf manual existed, I had totally overlooked it. Sorry to bother, lesson learned. Anyway, thanks for pointing out the right place!

  • Reducing a SWF file size / creating "instance names" for website loading time improvement

    Im hoping someone clever can help...
    What i have done so far:
    1) Created a flipbook using indesign CS5.5 that contains approx 25
    images (embedded PNG's), these need to be good quality as this is a
    portfolio - I'd also like to keep the 'page curl' effect. This makes the SWF generated cira 25MB.
    2) created a Flash website "wrapper" to hold the above flipbook and add
    features such as "bookmarks", links to other sites and forward/backward
    page navigation buttions.
    The issue we have is that because the flipbook SWF is 25MB the site
    load time is slow.
    What can be done to speed this up without compromising the image
    quality?
    1) Is there a way to make the indesign SWF smaller?
    2) is there a way in indesign to properly give each page an
    "instance name" so that they can be controlled from flash and therefore
    I can load each pages image as and when needed.
    any other ideas?
    (If you'd like to visit the website to view the loading issue http://www.lizblackdesigns.co.uk)
    Thanks
    Liz

    these need to be good quality as this is a portfolio
    The approach to your portfolio website seems very outdated and will not help you in the near future. Flash is being used less and less with the increase in Mobile Devices being used to access the internet - a large chunk of which include Apple's iDevices which don't support Flash. This alone is a reason not to do it, however there are a few other big issues with the method you have chosen.
    There is no "content" on your website for any search engine to find. No text. No meta data. No image alt tags. No titles. Nothing. In other words, your website will not be found by the people you are trying to attract. I would imagine for a portfolio site, you may want to re-think this approach.
    The way the Flash file was created is the worst possible way to add Flash to the web as you have only embedded image files - and this is your entire site?! You could have included some text, which would have been viewable by search engines, and used color shapes to increase quality but lower filesize.
    The filesize meant it took me over 1 minute to get off your home page. The average internet user will leave your site if you do not keep them interested after 5 seconds. In other words, you should have content of interest viewable within 5 seconds of load time.
    If you are set on keeping the Flash setup for your website, re-build using as much text, color shapes and lines as you can (vector work in other words) and do not rasterize/export as image. This will drastically reduce load time and increase quality. You will also want to divide your file into sections and create more than 1 HTML page so that the browser only loads a bit at a time. You might also want to set a maximum size container for the Flash file as on my browser, it looks extremely pixelated and is very large, but unclear.
    I would suggest looking into HTML5 if you are keen to create a website that can be viewed by around 98% of the web surfing people and it will also mean you can use an image slider (or similar) to show good quality images of your work. This will aid your site in being found by search engines but will also allow you to update sections of the site without re-publishing the entire Flash file.
    Rik

  • Help improving server PDF loading time

    I have a large Adobe LifeCycle SE application (xdp 87,000 KB or 3,500KB PDF) it consists of over 130 forms (contains fragments as well).  My problem is that it is taking over 6 minutes to load into the server.  What can I do to speed up the rendering process?  any suggestions on practices for more efficient loading time?  Thanks

    I will be out of the office starting  07/09/2009 and will not return until
    07/10/2009.
    This e-mail and any files transmitted with it are confidential and are solely for the use of the addressee.  It may contain material that is legally privileged, proprietary or subject to copyright belonging to Mutual of Omaha Insurance Company and its affiliates, and it may be subject to protection under federal or state law.  If you are not the intended recipient, you are notified that any use of this material is strictly prohibited.  If you received this transmission in error, please contact the sender immediately by replying to this e-mail and delete the material from your system.  Mutual of Omaha Insurance Company may archive e-mails, which may be accessed by authorized persons and may be produced to other parties, including public authorities, in compliance with applicable laws.

  • How to improve jsp load time?

    Hi everyone --
    Got a question for all of you.
    I have a form in a JSP, which does a (Oracle 9i) db lookup on 13 fields and populates the drop-down boxes. The load time for the JSP is slooooww.
    These are my options for speeding up the load time (I think):
    1. When the web/app server starts the application, have it do all the db lookups and store the resultsets...somewhere. Maybe have some dblistener thread that periodically checks for updates to the db. Then, when someone actually requests the JSP, all the JSP has to do is read the pre-populated drop-down boxes and load.
    2. Wait until someone requests the JSP and store all the resultsets as cookies for the session. The resultsets will be good for the home JSP and its sister. This doesn't really solve the problem, since the initial load will still be slow.
    3. Combine all the lookup statements into one huge statement, and store the results somewhere. This method queries the db only once, and the drop-down boxes can be populated from one query (instead of 13 separate connections and queries).
    All of these ideas seem mediocre to me, and they don't address the fact that the results of the queries change contantly. What I need is a
    way to make the JSP load quickly and with the most current information.
    Does anyone have any ideas? Which of my suggestions is rather boneheaded?
    Thanks for any advice,
    -Kwj

    It's still not perfect, but it's better at least.
    I'm querying 4 different tables overall, and I have a Db class that the jsp instantiates.
    from home.jsp:
    Db d = new Db();
    ResultSet [] all = d.getAll();
    <body>
    %>
    <tr><td align=right>Correspondence ID: </td><td><select>
    <option label=""></option>
    <%
        rs = all [1];
        while(rs.next()){
    %>
            <option><%=rs.getString("sak_correspondence")%></option>
    <%
    %>
    </select></td>
    </body>
    [\code]
    from Db.java:public ResultSet [] getAll() throws SQLException
    ResultSet [] all = new ResultSet [4];
    all [0] = con.prepareStatement
    ("select nam_category from doco.corr_category " +
    "order by nam_category asc").executeQuery();
    all [1] = con.prepareStatement
    ("select sak_correspondence, dte_received, dte_response_due, " +
    "dte_sent, file_path, id_outref, subject " +
    "from doco.correspondence").executeQuery();
    all [2] = con.prepareStatement
    ("select nam from doco.corr_type order by nam asc").executeQuery();
    all [3] = con.prepareStatement
    ("select nam_subcategory from doco.corr_subcategory " +
    "order by nam_subcategory asc").executeQuery();
    return all;
    }//getAll()

Maybe you are looking for

  • Error 500--Internal Server Error:How to modify req.setReportAbsolutePath

    I test a servlet but I get following errors. I use OBIEE 11g and Jdeveloper 11.1.1.3 How to modify the source code and the req.setReportAbsolutePath? ===============error==================== http://127.0.0.1:7101/Application4-Project4-context-root/bi

  • Can't move photos or folders inside Lightroom

    Dragging photos or folders doesn't work properly. I've tried dragging the image and the border of photos but neither works. Occasionally, I can move photos, but more than 50% of the time it doesn't. I've been having this trouble since using Lightroom

  • Deactivating devices?

    Is there any way to make sure a built-in device is deactivated? Let me explain: in my netbook (Samsung NC10) if I run powertop one of the causes of wakeups is the builtin webcam, which 99% of the time I'm not using (and the module is not loaded). In

  • Error in displaying TripForm

    Hi, Using SAP standard ESS / Travel Management we want to display the trip form from the service My Trips and Expenses > tab All My Trips. When selecting Display/Print button the error message is appearing: "An error occured while starting the iView.

  • Can't get anymore brightness out of Older 23" Apple Cinema HD Display

    Hey guys, So I'm trying to match an older monitor (Apple Cinema Display HD 23" circa 2002-04...I know) to a newer iMac. Currently attached using ADC->DVI->Thunderbolt. In comparison, the iMac is much brighter. I'm guessing due to the fact that it's n