Tips to make my most effective software

Hello

I am running LV 8.5 on a Dell under Windows XP SP3 machine. I have a peripheral 6252 LICOR of print data via a COM port to labview. Each bag contains 6 data items, all that I want to store and possibly save in a worksheet. The LICOR can send this packet of data every 1 second. However, when I put the high data rate, the data is saved only every 10-12 seconds. I guess that's due to failures in how I save everything in a table. Can you suggest anything I can do to make my program more efficient so that more data is backed up? Thank you.

Your building of paintings will kill your speed and your memory.  What you should really do is to save your data in file after you buy it.  To do this use a configuration of producer/consumer .  The idea is to read the data, analyze and then use a queue to send the data to another loop that does the logging.  In this way, you won't have to keep accumulating your arrays and memory remains at least.

And just to dig in the Instrument i/o Assistant.  You certainly don't want to use.  It provides a reading of your instrument for EACH parameter that you put in.  From what I can tell, you need to a single reading, and you can analyze all the settings from there.  What does that mean?  Your actions do not come from the same time of measurement.  This may cause some problems with the projects I've had.  So, Yes, you want to use the VISA gross.  You can do the installation before the loop and close the port after the loop.  The analysis of the data should be really simple as well.

Tags: NI Software

Similar Questions

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello
     
    I want to acquire the data of several Modules cDAQ using several chassis to
    high data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measured data is written to a PDM file. I guess, the memory or the HARD disk speed is the limits. For the user, there must be a possibility to view the selection of channels in a graph during the measurement.

    My question: what is the best and most effective way to save and read data at the same time?

    First of all, I use an architecture of producer-consumer and I don't want to write and display the data in the same loop. I expect two possibilities:

    [1] to use the 'DAQmx configure logging.vi' with the operation 'journal and read' to write the data to a PDM file. To display the data in a second loop, I would create a DVR samples documented and 'sent' the DVR for the second loop, where the data will be displayed in a graph (data value reference). This method has the disadvantage that the data of all channels is copied into memory. Correct me if I'm wrong.

    [2] use 'DAQmx configure logging.vi', but only with the "journal" operation to write the data to a PDM file. To view the selected data, I had read a number of samples of the TDMS file in the second loop (I'm currently writing the TDMS file). In this case, I have only one copy data from the selected channels (not), but there will be more HARD drive accesses necessary.

    What is the most effective and efficient solution in this case?

    Are there ways to connect and read data with high frequencies of sampling?

    Thank you for your help.

    You say that the measurement time is 10 minutes. If you have 40 channels and you enjoy all CHs at 100 kHz, it is quite a number of values.

    In this case, I always try to approach under the conditions of use. If a measure is only 10 minutes, I just connect all PDM data and create a graphic module that could be in the same loop of consumers where connect you the data. You can always work on the raw data files big offline afterwards, the extraction of all the information you need (have a look at the product called NI DIAdem: http://www.ni.com/diadem/)

    The main issue is that the user needs to see in the graph (or perhaps a chart can be useful too). Lets say that the graph is 1024 pixels wide. It makes no sense to show multiple data to 1024 points, Yes? Every second will produce you 100 data points k per channel. What is the useful information, which should see your username? It depends on the application. In similar cases, I usually use some kind of data reduction method: I use a moving average (Point by point Mean.VI for example) with a size of the interval of 100. This way you get 100 data points of 1000 per channel every second. If you feed your graph every second with these average values, it will be able to data points in 1024 of the store (as a default) by channel (curve), which is a little more than 10 minutes, so that the user will see the entire measurement.

    So it depends on the frequency at which you send data to the consumer. For example, collect you values 1024 by iteration of the producer and send it to the consumer. Here you can make a normal means calc or a bearing (according to your needs) and he draw a graphic. This way your chart will display only the values of the last 10 seconds...

    Once I programmed some kind of module where I use a chart and not a graph, and the user can specify the interval of the absolute timestamp that is traced. If the data size is larger than the size of the chart in pixels, the module performs an average calculation in order to reduce the number of data points. Of course, if you need to see the raw data, you can specify an interval that is small. It all depends on how you program zoom functions, etc... In my case I hade a rate of 1 Hz, so I just kept all data in RAM limiting the berries to keep 24 hours of data, so that technicians could monitor the system. In your case, given the enormous amount of data, only a file read/write approach can work, if you really need access to all of the RAW data on the fly. But I hope that the values of working capital means will be enough?

  • How to make a 3D shape tool to make the attached effect? Help, please!

    Edys-shakes-coupon-e1311029488365.pngThis is one of my favorite ads for a few years and have found a similar use for style. The text which says delicious according to me is done with a brush but whenever I try to create the effect seems flat. The red lines remain on top and do not wind it suggesting the straw to be 3D. Another problem I did the shadows on the straw to look as realistic. I have a good amount of knowledge in illustrator, so I understand most of the parts of the program very well.

    No info to make the straw effect will help. What I can say so far is each letter in fact individullay and I believe they used the Brush tool.

    I have the new version of Illustrator CC on a mac. I also own a Tablet if it will help recreate the text.

    As mentioned, I don't have a brush "3D" (THAT would be cool!). This is a facsimile of the illustration of the effect using mixtures, opacity masks and clipping masks:

    I realize there is no red stripes '1' '2 '. I'm lazy.

  • Mail question: I want to remove my archived email (10, 000 ~) because I want to clean my iMac and make it more effective. Does anyone know if the removal of archive e-mail will leave my Inbox and saved intact E-mail or anything that doesn't fade too?

    Mail question: I want to remove my archived email (10, 000 ~) because I want to clean my iMac and make it more effective. Does anyone know if the removal of archive e-mail will leave my Inbox and saved intact E-mail or anything that doesn't fade too?

    Who is your e-mail provider?

  • How do I make the "REVERB" effect when you export the multitrack mixer?

    How do I make the "REVERB" effect when you export the multitrack mixer?

    The pre-rendered in multitrack view tool is the tilde to bit at the bottom of the effects rack lightning bolt.  Select the range that you have pre-made and click on the button that will turn blue when activated.

    Alternatively, you can go to the sight of waveform on the track, you need to pre render, apply the effect, and use the Save command as (with a new name) to save the new version and keep the original.  Less elegant than pre rendered but sometimes useful.

  • How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    I used Adobe Muse since the day it first came out, I played with the timings and effects of scrolling a lot. Tumblr landing page scrolling is very nice, I can see why you want a similar effect. Something similar could be created using the scrolling in AdobeMuse effects, especially if you familiarize yourself with the scrolling of the transparency. Start with a color block simple try it scroll up to double speed, then add items to the next page with the scrolling transparencies. Best practical work, use layers to do this, it makes things so much easier when you need to edit the page.

    Once you have played with the effects of scroll, you will begin to note how the elements of the Tumblr page can be re-created. This will be a sharp learning curve, but very doable in Muse for a similar effect. You will have a number of layers with page elements and new blocks of color on each layer when your done, fine tweaking the movement of scrolling and timings will make perfect. Good luck.

    If not, try adding an animation on board, you can create a Web page in Adobe Edge, but again... probably much more involved learning with this option.

  • The most effective way to retrieve a number of virtual machines in an org?

    Hi all, what is the most effective way to retrieve a MV of County in an org. I am currently recovering all CDV in an org, then all the vApps, then all of the virtual machines and pushing them into a table, then do a vms.length on the table filled by all virtual machines.

    It takes a horrible time, and there MUST be a better way.

    Open to any suggestion. Thank you

    Good, as administrator of the organization then: (I have not tried as a normal user account)

    var vdcs = new Array();
    var orgVMCount = 0;
    var vcdHost = org.getHost();
    
    var queryService = vcdHost.getQueryService();
    var expression = new VclExpression(VclQueryOrgVdcField.ORGNAME, org.name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    
    var resultSet = queryService.queryRecords(VclQueryRecordType.ORGVDC,params);
    while (resultSet != null) {
    
        var records = resultSet.getRecords(new VclQueryResultOrgVdcRecord);
        for each (var record in records) {
            var vdcVMCount = getVdcVMCount(record.href, vcdHost);
            System.log("VDC "+record.name+" VM Count: "+vdcVMCount);
        }
        orgVMCount += vdcVMCount;
        resultSet = resultSet.getNextPage();
    }
    System.log("Total Organization VM Count: "+ orgVMCount);
    
    function getVdcVMCount(vdcHref, host){
        var vmCount = 0;
    
        var qs = host.getQueryService();
        var exp = new VclExpression(VclQueryVMField.VDC, vdcHref, VclExpressionType.EQUALS);
        var exp2 = new VclExpression(VclQueryVMField.ISVAPPTEMPLATE, false, VclExpressionType.EQUALS);
        var exps = new Array(exp,exp2);
    
        var expFilter = new VclFilter(exps,VclFilterType.AND);
        var queryParams = new VclQueryParams();
        var vmArray = new Array();
        queryParams.setFilter(expFilter);
        var rs = qs.queryRecords(VclQueryRecordType.VM,queryParams);
        while (rs != null){
            var vmRecords = rs.getRecords(new VclQueryResultVMRecord);
            vmCount += vmRecords.length;
            rs = rs.getNextPage();
        }
        return vmCount;
    }
    

    It takes a little more code because the ".ORG" field is not available for the non-Admin queryVMField, but the. VDC IS, so we start by retrieving the TDC for the Org, then for each one, ask the number of vm for VDC.

    Post edited by: Burke - had accidentally initialization of orgVMCount as new Array(); -changed second line to 'var orgVMCount = 0;

  • the most effective configuration using vmware lab environment?

    Hello

    I have a production vmware

    infrastructure. It consists of multiple esx hosts, an iscsi san, and

    about 12 virtual machines.  I would like to get some of these machines in

    a lab environment, which is the most effective way to achieve this?

    have also a few physical machines as well, that I intend to help

    the p2v tool for.  Thank you

    1. create the VLANS separated for the Lab virtual machines and use to limit the bandwidth of the traffic shaping

    2 create a new pool of resources for the virtual laboratory machines, to control the use of resources (configure "share" = low)

    3 use/Take snapshots before allocating virtual users computers, so that you can return it back once the activity is complete.

    See you soon,.

    ~ Jean

    ~ Don't forget to points, if you found the useful answer

  • form the most effective of condtional for many of | » s ?

    Hello

    I have an if statement that checks file extensions.

    He continues the code if file extensions filled one of the about 20 kinds:

    so

    If (ext == 'mpeg' | ext == 'mp3' |.. .etc)

    I noticed that when checking of file names 4000, there is an increase in the time between having 50 only 2 | options and 20.  It is not a problem to 4000 files, but if checking ten times that, it's just increased in time.

    I was wondering what is the most effective way to do this?  Is a table, a better way to go?

    Thanks for your help.

    Shaun

    Store extensions in a table and use the Array.IndexOf method.  If the extension exists the method returns the index of it, if not the methods return-1.

    If (extArray.IndexOf (ext) >-1) {}

    the extensin is in the table

    }

  • What is the most effective way to bring up the 1 of 4 images at any time?

    Thanks for reading this.  I have the same exact image need to attend different places in my program.  Right now, I created a movieclip with the image and I pasted in my step 4 different times and given to each instance a different instance name.  I would make a more effective program if I changed the location in the script of the video and has said the Stop program on a different image for each image, I need?

    What I'm trying to do, is to have a user to select from 4 different options and if they choose option 1, for example, the image of LED for option 1 light up and the other 3 lights will be off.  So, right now, if they choose option 1 I put ownership .visible to false for the other 3 images.  Is there a better way?

    The visible property control is very good.  If there is no need to show three of four, and they are identical in all cases, it may be better to simply have an and control its position.

  • The most effective component to use

    What is the most effective component to use a piece of a single line of dynamic text?
    A Lable; TextInput or TextArea components?

    I would like to use the more appropriate for a single line of dynamic text.
    Also the esiest of style component I want to 3 sizes of text and being able to change the background.

    I also tried to use the custom declaration and do not know if it would be appropriate or overkill:
    Import mx.styles.CSSStyleDeclaration;
    var new_style:Object = new CSSStyleDeclaration();
    _Global.styles.myLableStyle = new_style;
    new_style. SetStyle ("fontSize", 18);

    myText1.setStyle ("styleName", "myLableStyle");

    When I use the setStyle it seems to work very well for my dynamic TextInput.
    Any info on these components would be really useful.

    Please see code is attached as a reference to what I want to do.
    Thank you.
    Bell W.

    W assume that I wonder, why not just create an instance of TextField? rather than use a component to a single line. You can always ask your TextFormat object to the field on instantiation.

  • The most effective way to store lines

    DB version: 10gRel2 and 11G


    If I want to keep a single column as structure, I would like to use associative arrays for performance reasons. Who is the most effective method to store a multicolumn line?


    You guys are using something like this
    DECLARE
      type v_emprec_array is table of emp%rowtype INDEX BY BINARY_INTEGER;
      v_emprec v_emprec_array;
    BEGIN
      select * bulk collect into v_emprec from emp where empno=7369;
    or this
     declare
      TYPE rec_UpdateEmp IS RECORD
               (
              Inpt_emp_id         t_InptId,
              Stat_Code               gt_StatCode,
              Tms_Proc                pa_TmsProc,
              Tms_Po_Flag             pa_TmsPoFlag,
              Sngl_Unit_Flag          pa_SnglUnitFlag,
              Pkt_Profile_Id          gt_ProfileId,
              Pkt_Type                pa_PktType,
              host_inpt_id            pa_HostInptId
              );
              
          rec                         rec_UpdateEmp;
      

    Ref Cursor is a better option

    create or replace procedure emp_dtls
    (
     p_sal number,
     p_result out sys_refcursor
    )
    as
    begin
     open p_result for
      select ename,sal from emp where sal>p_sal;
    end;
    /
    
    SQL> var myvar refcursor
    SQL> exec emp_dtls(2000,:myvar);
    
    PL/SQL procedure successfully completed.
    
    SQL> print myvar
    
    ENAME             SAL
    ---------- ----------
    JONES            2975
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    FORD             3000
    ADAMS            7654
    
  • the most effective way to make vista aster

    I am 63, new computer, need serious help to speed up vista, help

    Hello

    Here's how to make vista faster... Follow all the steps
    performance http://Windows.Microsoft.com/en-in/Windows-Vista/Optimize-Windows-Vista-for-Better

  • How can I make smooth paint effect?

    Just see the image below. Can anyone suggest how to do this effect using photoshop? or y at - it another software through which I can achieve this? I tried to use effects photoshop lightroom and photomatix HDR. None where I could find it.

    Untitled.png

    Hi smILUv,

    Here is a tutorial that shows how to do exactly that: new filter in oil-painting Photoshop and skin your selection tool.

    The key is to use the filter in Photoshop CS6 oil paint or Photoshop Creative Cloud (CC). To do this, go to filter--> oil painting.

    This dialog box will appear and you will be able to make adjustments according to your image.

    It's the final result:

    Front

    After

    I hope this helps!

    Good luck with your project.

    Clarice

  • How to make a transformative effect ignore the line attributes?

    Hi all

    I am intermediate (at best) with Illustrator. I use CS6 on an iMac 2009.

    Could someone advise me on how to make Illustrator ignore STROKE weight/CAP/join parameters when I apply a live effect make rotate/multiple copy on a group of paths? Currently, Illustrator defines the rotation point to the extreme point of my stroke (contained in the atrributes of traits), but I want only to calculate the track structure: the coordinates of my anchor point designated.

    Screen shot 2012-10-16 at 12.04.07 PM.png

    Here are the top/right of paths with a rotation Group / 3 copies effect of 90 degrees. This view looks without problem.

    Screen shot 2012-10-16 at 12.04.24 PM.png

    This band of the top/right of the railways with the addition of a reflection / 1 copy effect of the x-axis. Still no apparent problem.

    Screen shot 2012-10-16 at 12.05.13 PM.pngScreen shot 2012-10-16 at 1.20.14 PM.png

    But this is a close to the alignment of the corner points. As shown, the transformation indeed is based on attributes of the strokes (the tip of his corner), not the actual location of the corner point.

    It does not help to apply styles different heading a corner or race alignments; that only slightly Wizz the pivot point to the Center.

    In addition, this race of a point is somewhat arbitrary. I only put it so in order to see my dynamic effects.

    Refine vertical and horizontal effects of the elements turned/copied movements won't help because this art will subsequently undergo a lot of alteration, changing money, especially in the weight of the stroke (thickness of the line maybe same variable).

    I need the skeleton of the struct to snap together precisely.

    Any solution, regardless of how roundabout, would save this project! I'd appreciate some advice.

    Assuming that you did clean:

    1. check the order of the effects and strokes: this is important if you first apply the effect, then the stroke or vice versa

    2. check that "Snap to grid of pixels" is turned on

Maybe you are looking for