New case in the action engine has a radical effect on execution speed. Even after it is deleted.

I use a motor of Action to collect, analyze, and write data queued in for use elsewhere in my program. Data packets are 67 bytes long and arrive at 1 kHz, so the speed of execution is important enough.

In its original form EI was an average of 80-90 uS by running and had no problem keeping up. Adding a box empty to the structure immediately slowed down execution of EI to 440 uS by iteration, even when the empty case is never called. Embarrassing question is that after the empty case is removed and control the enum back to its original state, the runtime remains to be 440 us instead of 80.

The four original cases were intact. All the world run into this kind of behavior before? I know that LabVIEW much changing helpful code in the background - change the representations of data, moving around the benefits of memory buffer... - but I can't understand what could happen in this case.

If you want to play 'spot the difference', I enclose my AE for channel 1 (duration of execution 440 uS) and channel 2 (running time 80 uS).

Comparing them side by side with buffer highlighted benefits I can't find those 260 uS.

(I know it's a lot of queues. I can't be helped; the project requires data signals 11 1 kHz to draw at the same time, for each of the two channels.)

Hi, Alex.

As I understand, you are dealing with different sizes of table stored in the shift register. Check your section Initialize - in a VI you initialized with 1000 elemenths and table in an another VI with 5000 elemenths. That makes the difference:

See attached VI.

Andrey.

PS

Moreover, it is a good idea to post fully functional example, without SubVIs missing, etc.

Tags: NI Software

Similar Questions

  • Whenever I try to answer or write a new e-mail, the "Attachment ID has wrong format" message appears and I can't send emails.

    whenever I try to answer or write a new e-mail, the "Attachment ID has wrong format" message appears and I can't send email, how do I fix?

    original title: problem sending e-mails

    Hello Pamwolfe,

    What program of e-mail that you use or sign in a service such as Windows Live Mail Webmail?
    If you use Windows Live Mail I suggest to take a look at this site:
  • My option "open in a new tab in the same window" has stopped working.

    After working for centuries without any problem, my option "open in a new tab in the same window" has stopped working.  Support suggested that I go to tools, select internet options and open tabs, and then select open in a new tab in the same window option.  I did as instructed and concluded that this option under the tabs was already selected and unchanged.  I changed this option, closed my browser and restarted my computer as instructed.

    As before you follow these instructions, and when viewing online and wish to open a link in a new tab in the same window I once again this desired option.   Internet does not take into account my instructions and opens my link in a new window.  This is extremely irritating.

    Does anyone have a solution?

    Hello

    What version of Internet Explorer work?

    You can try the following steps and check:

    Method 1:

    You can reset Internet Explorer 9 settings and check

    http://Windows.Microsoft.com/en-in/Windows7/reset-Internet-Explorer-settings-in-Internet-Explorer-9

    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Method 2:

    How to reinstall or repair Internet Explorer in Windows 7, Windows Vista and Windows XP

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

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Important note: ignore in place update from the above mentioned link.

  • Hello, I use photoshop cc 2015 for PC. Well my PhotoShop when I try to start texxto tool says the following error message: could not complete your request because something prevented the text engine has been started.

    Hello, I use photoshop cc 2015 for PC. Well my PhotoShop when I try to start the text tool says the following error: could not complete your request because something prevented the text engine has been started.

    Go through the Troubleshooting Guide to solve this problem

    Troubleshoot fonts | Photoshop CS6 2014 CC, CC, CS5

    Error text engine using the type tool in Photoshop CC | Windows 8

  • The action Wizard has no option to save in XML format

    The action Wizard has the ability to save in jpg format, but doesn't have an option to save in XML format. What is the best way to save a PDF file in xml format. I have about 100 PDF files I am trying to record in xml format.

    The action Wizard has the ability to save in jpg format, but doesn't have an option to save in XML format.

    Of course, it does.

  • Improve the Action engine

    I'm new to the use of action engine in my code and hope to learn and improve my use of engines of the action. The first one I created is to control a set of relays that will open and close the pneumatic valves using the NI 9474. I was hoping I could get some general comments on the back and DONTs with this action engine and it will help me with the future creation of AEs for my code. What should I do differently from a point of view of efficiency, etc.?

    Thank you.

    I have attached the VI.

    Bob,

    I am not making 2 AEs, especially since you should be calling not 'set' of the material of the main VI case.  And you duplicate efforts by having both hold the DIO State (and the AE Valve might have some 'old' data if the HW AE has been called).  So what's the problem with just having all the features in a single AE?  This makes it MUCH simpler API.  So the States that I see are:

    • Initialization: the task of installation material and turn off all valves
    • Set Valve: open a designated single valve
    • Claire valve: turn off a designated single valve
    • Set all: turn on all valves
    • Clear all: close all valves
    • Closed: turn off all valves and stop/clear the task

  • Create a new item of the action

    Hello

    I am trying to create a new action item that will use a plugin that I added to the VCO.

    I am currently using the scriptable task object, but I would like to create an element in the action that I reuse in different workflows.

    I looked in the developer/admin/install guides and any reference could not be found.

    Help

    Hello

    Please see section developing actions, pg 99, in the vCO Developer's guide, to understand how to develop custom actions and reusing actions.

    http://www.VMware.com/PDF/VCO401_developers_guide.pdf_

  • Back the action descriptor has no keys

    Hi everyone and thanks for your support,

    I did an action descriptor for a tool of perspective (using CS6) truncation. He received corner points and the midpoint. When the action is executed, the user can change the corner points and selection of crops. The value returned by executeAction is stored under a new action descriptor. Despite, this action descriptor is empty and no key. I was expecting to hold the keys with the new corner point values.

    Code is below.

    app.preferences.rulerUnits = Units.PIXELS
    var srcDoc = app.activeDocument;
    var width = srcDoc.width;
    var height = srcDoc.height;
    var m1, m2, x1, x2, x3, x4, y1, y2, y3, y4;
    var settings_dflt=[m1, m2, x1, y1, x2, y2, x3, y3, x4, y4];
    settings_dflt = [width/2,height/2,0,0,width,0,width,height,0,height];
    var actionDescriptor=new ActionDescriptor();
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
     
     function defaultActionDesciptor(Fa){
    var Ga=new ActionDescriptor();
    var Ha=new ActionDescriptor();
    var Ia=new ActionDescriptor();
    Ia.putUnitDouble(cTID('Hrzn'),cTID('#Pxl'),Fa[0]);
    Ia.putUnitDouble(cTID('Vrtc'),cTID('#Pxl'),Fa[1]);
    Ha.putObject(cTID('Cntr'),cTID('Pnt '),Ia);
    var Ja=new ActionDescriptor();
    Ja.putUnitDouble(cTID('Hrzn'),cTID('#Pxl'),Fa[2]);
    Ja.putUnitDouble(cTID('Vrtc'),cTID('#Pxl'),Fa[3]);
    Ha.putObject(sTID('quadCorner0'),cTID('Ofst'),Ja);
    var Ka=new ActionDescriptor();
    Ka.putUnitDouble(cTID('Hrzn'),cTID('#Pxl'),Fa[4]);
    Ka.putUnitDouble(cTID('Vrtc'),cTID('#Pxl'),Fa[5]);
    Ha.putObject(sTID('quadCorner1'),cTID('Ofst'),Ka);
    var La=new ActionDescriptor();
    La.putUnitDouble(cTID('Hrzn'),cTID('#Pxl'),Fa[6]);
    La.putUnitDouble(cTID('Vrtc'),cTID('#Pxl'),Fa[7]);
    Ha.putObject(sTID('quadCorner2'),cTID('Ofst'),La);
    var Ma=new ActionDescriptor();
    Ma.putUnitDouble(cTID('Hrzn'),cTID('#Pxl'),Fa[8]);
    Ma.putUnitDouble(cTID('Vrtc'),cTID('#Pxl'),Fa[9]);
    Ha.putObject(sTID('quadCorner3'),cTID('Ofst'),Ma);
    Ga.putObject(cTID('T   '),sTID('quadrilateral'),Ha);
    Ga.putUnitDouble(cTID('Wdth'),cTID('#Pxl'),0.000000);
    Ga.putUnitDouble(cTID('Hght'),cTID('#Pxl'),0.000000);
    Ga.putUnitDouble(cTID('Rslt'),cTID('#Rsl'),0.000000);
    return Ga;
        }
    //
    function CallAppropriateAction() {
      var fb = new ActionDescriptor();  
      try{
         fb = executeAction(cTID('Crop'),actionDescriptor,DialogModes.ALL); 
                  }
              
             catch(e){
                 alert("User cancelled operation");
                 }
             
                if(fb!=null){
                   
                   srcDoc.selection.selectAll();
                   alert(fb.count + " = number of keys in fb\n" + fb.typename + " = type of fb")
                   }
    }
    //
    function main()
    {
        
        srcDoc.selection.selectAll();
        actionDescriptor=defaultActionDesciptor(settings_dflt);
        CallAppropriateAction();
            
    }
    //
    app.activeDocument.suspendHistory("CropTool", "main()")
    
    </code>
    
    

    OK, never mind, I found the embarrassing error.

    The problem was this:

    var settings_dflt = [m1, m2, x 1, y1, x 2, y2, x 3, y3, x 4, y4];

    settings_dflt = [width/2, height/2,0,0, width, 0, width, height, 0],

    I thought a little that the variables in the table would be initialized with the values given in the table. However when I remove the second line and initialize variables with starting values before assigning to the table, everything works fine.

    var m1, m2, x 1, x 2, x 3, x 4, y1, y2, y3, y4;

    M1 = width/2;

    M2 = height/2;

    x 1 = 0;

    Y1 = 0;

    x 2 = width;

    Y2 = 0;

    x 3 = width;

    Y3 = height;

    X 4 = 0;

    Y4 = height;

    var settings_dflt = [m1, m2, x 1, y1, x 2, y2, x 3, y3, x 4, y4];

  • I followed the instructions for "Go Thunderbird data to a new computer," but the calendar data has not been transferred and the calendar program does not work.

    I manually moved my profile of Thunderbird in Ubuntu 12.04 LTS to 8.1 Windows. I followed the instructions and everything settled as expected except the calendar. Not only the calendar data has not been transferred, the calendar itself does not, for example no dates & everyday of the week, etc., all the menus associated with the calendar are "grey," etc. I'd appreciate any help. TIA KellyJMorris

    Calendar (aka Lightning) contains binary components, which are dependent on OS. Thus, you should not remove the add-on lightning in your add-ons Manager and install the Windows version of lightning.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/lightning/

  • I just bought a new top of the tower that has windows 7, but the program does not accept the all-in-one HP Officejet J4540. What can I do? It is says I need windows 2000, xp, vista.

    I don't want you download something useless. and I don't really know how to do what needs to be done. Help... Thank you!

    Windows Update has nothing to do with the upgrade of Windows. Or contact the HP support (i.e. get it specific drive Win7 & software updates) or republish your question here: http://social.answers.microsoft.com/Forums/en-US/w7hardware/threads ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Firefox has a problem with the latest Flashplayer as it keeps telling me to update, even after the update

    I'm running Firefox 3.6.9 and have updated to Flash Player 10.1 r53, but the system keeps telling me when I check for updates of plugin Flash Player is vulnerable and a security risk?
    I contacted Adobe is it was NOT much help
    Anyone know what is happening with this program, in addition to having a very sophisticated reporting software installed within the program

    The latest version of Flash is 10.1 r82

    You can install it using the manual installation programs, for details, see http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller

  • Need help to remove the small white lines between attached forms. Still visible even after aligning anchor points.

    Hey, I'm new here, so many apologies if the community has been asked this question several times before. I do a quick search, but couldn't find an answer to my problem anywhere. Would be very grateful for help.

    I'm quite a beginner with Illustrator, so this may be something embarrassing simple!

    But as the title says, I have a very frustrating problem, trying to create an image of polygon. I've been using the pen tool to make triangles, then join all my anchor points with the horiz/vertical align Center. Roads joined look good, until I have add color... Triangles have a very light white line on them, I have tried to delete the anti alias, which solves the problem, but then the triangles look pixelated. Even when you import into Photoshop the pale lines are visible, as well as when the file is merged or saved as a JPG file.

    I've seen some very impressive polygon art and forms look seamless when joined.

    Here is an example of the problem. Ideally, I'd like that forms merged without rough lines.

    See you soon! Any suggestion would be appreciated.

    poly 1.jpg.

    BRI,

    I just read it again.

    align the center of horiz/vertical

    works on objects, rather than Anchor Points.

    You can have triangles which fail to assemble completely.

    Try this, smart guides are your friends:

    Starting with the last triangle (you can see the stacking order in the layers palette), click the path to find) and work your way upward as follows:

    1) click on the lower triangle with the selection tool.

    2) click on one of the neighbors, and move it to the bottom to be second in the stacking order, then move it a little far, then ClickDrag back by one of the Anchor Points to be aligned corresponding to the lower anchor (Smart Guides say anchor when you are there).

    (3) with the ClickDrag Direct selection tool other anchor Point to snap (you can drag a bit far and back until the Smart Guides say anchor);

    Who should ensure a full adjustment between the two less triangles

    4) continue until you are finished with the other triangles.

  • I want to look through the history even after it gets deleted for parental control, how to proceed?

    I wonder what are the sites my daughter runs after sitting in a corner with the laptop for hours, when asked a simple answer is not available and it's the end of the conversation. I have no doubt about it, I want to know if she is simply wasting time or seriously work and to be cool, although the question is here because the story is always empty...

    Hello

    I won't say anything to try to 'spy' on your activities of girls on his device.

    If you're worried about what pages it visits and navigate too, it is easier to set up the network to run after devices in the household.

    If you chase the laptop to see the navigation history, she finds, it will change just by phone (if it has) instead and lock with pin codes and so on.
    It can also easily just be set to private Mode and avoid any local history for you to check.

    To configure the network, and the web pages that are available, you will find what your router and as an option, you may be able to use https://www.opendns.com/home-internet-security/parental-controls/

    But a better way is to focus and guide internet works and what to stay away from and so on. If it is a matter of concern.

  • Repeat the questions of character: will not repeat when maintained key (even after change of repeat speed & delay at the fastest)

    When I type characters (as well as the arrow keys and backspace) etc they will not repeat when the button is kept pressed and you must wait a few seconds before being able to repeat a character or go back and delete a mistake!  This has been a problem since I accidentally leaned on a button and he kept extensible - a message box emerged by asking (I don't remember verbatum what he said) if I wanted to stop this does not happen - and in my drowsy State, I felt just OK!  I disappeared in the 'control panel' and changed the character of repetition and time short and fast many times and it never changes nothing!  I noticed that when I connect to my computer the character repeat works normally.  I'd appreciate any help because it is frustrating and annoying say the least!  Thank you, Danette

    Hello

    1. have you made changes on the computer recently?

     
    Please check if you face the same problem when recording in safe mode. It is a possibility that one of the non-Microsoft application or driver is causing this issue.
     
    Step 1.
    a. restart your computer.
    b. when the computer starts, you will see your computer hardware are listed. When you see this information tap the F8 on your keyboard key repeatedly until you are presented with the screen Windows 7 Advanced Startup Options.
    c. using the arrow keys, select the desired option of Mode without failure.
    d. press the Enter key on your keyboard to start in safe mode of Windows 7.
    e. when Windows starts, you will be at a typical logon screen. Connect to your computer and Windows 7 goes into safe mode.
    f. do whatever tasks you need and when you are done, reboot to return to normal mode.
     
    Step 2.
    If it works fine in safe mode try performing a clean boot in order to find the cause root.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
     
    I hope this helps.
  • With the help of v22.0 cannot apply update - will not even after several reboots - advice?

    bold text

    Hello

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    Please report back to see if this helped you!

    Thank you.

Maybe you are looking for

  • GarageBand not installed, although with still 11GB on my MacBook Air. Why?

    I just updated my MacBook Air to macOS Sierra. The update allowed me to see what apps, documents, photos, etc. take up storage on my laptop. It shows that Garageband is 11.31 GB on my Macbook Air, even if it is not currently installed. Why do so many

  • TOSHIBA controls with winamp

    is it possible to get the "TOSHIBA" commands-media keys to work with winamp? I don't like wmp... not to say I have... it. The pre-installed thing was in the dropdown to select just the wmp. I looked for a new version on this site and installed. I can

  • Where is the first upgrade to Yosemite?

    Hello all,. I want to install Yosemite BONES 10.6.8 (Snow Leopard) but cannot find updates of Yosemite and not the original 10.10 app - if I select the updates later I thought I must have first the initial upgrade 10.10 installed - I searched the App

  • MS Security Center not showint more.

    MS Security Center used appears in the quick launch on the right side bar. Now it does not work and I try to understand what has changed. I don't see it in my group of programs either. Any ideas? Thanks in advance, Thumper357

  • Windows vista 32 bit in a relationship 2541763

    NAO estou access download an ATUALIZACAO 2541763 para o windows vista starter 32-bit. Alias na tela nao appears a versão 32-bit. Quando tento have other, appears uma mensagem dizendo than compativel com o tenho em meu computador e nao!