How can I make this faster (more efficient) loop?

IV attached a screenshot of my code. In the books it is said not having 'picture of generation' and "concetenate strings" in the loop, but what can I use instead? Also are there any other changes I can make to this program, to make it faster?

See you soon,.

Sam

Sam,

for a structure (except "timed structures" as the timed loop) of the time, you place the wait function within the frame where the wait is scheduled. So in regard to a loop simply drag it iside the loop and connect a time-out for her.

Looking in your VI, there is always something preventing the VI of work:

-Remove useless (in comparison with the 10) logic including the invalid son

-Connect a digital '10' to the "n" - of the loop in order to limit the number of iterations to 10.

-Change the output terminal of the loop of the piles of data to be "Indexing" (right-click on the tunnel and select "Enable Indexing"). This will create a table 2D channels; Therefore, you must connect the stringarray on table 'spreadsheet of writing file' 2D connector instead of connector D 1.

-Never, really never ever ever work with unstoppable loops in Windows! This already messed up complete systems of tests doing serious damage to the equipment. The only target I'm ok with infinite loops are FPGA and to some extend, real-time targets...

The right approach would be a producer/consumer, but looking in your messages that you posted the last days, I would say that it is beyond your current knowledge of LV...

Tags: NI Software

Similar Questions

  • How can I make my adodc more quickly connect my SqlServer?, its takes a minute before that I can view thousands of record in my listview.

    How can I make my adodc more quickly connect my SqlServer?, its takes a minute (so long) before I can view thousands of record in my listview.please someone help me.

    I'm using...

    Public Class McheckpaymentNew
    Cn as New ADODB. Connection
    Private RS As New ADODB. Recordset

    Private Sub McheckpaymentNew_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    Try

    CN. ConnectionString = "DSN = database; UID = user; PWD = password"
    CN. Open()

    RS. CursorLocation = ADODB. CursorLocationEnum.adUseClient
    RS. CursorType = ADODB. CursorTypeEnum.adOpenStatic
    RS. LockType = ADODB. LockTypeEnum.adLockBatchOptimistic

    Catch ex As Exception
    MsgBox ("could not connect!, please check your network connections, or Contact MIS Dept. for assistance.", vbCritical, "Error connecting to the database...")
    End
    End Try

    End Sub

    Please correct if I wrong use, causing the delay.please someone help me...


    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • whenever I open the browser, plugins check page always opens in a second tab. How can I make this stop?

    Whenever I open my browser, plugins check page keeps opening, even though I've updated all my plugins.

    How can I make this stop?

    This is a bug with plugin blocklisting has been corrected.

    You can correct this problem by forcing the blocklist.xml file to update or wait until Firefox updates the file.

    This update will remove the gravity = '0' flags in the file that causes the problem.

    See:

    • Bug 663722 - the release of blocklist is notably gravity = '0' where it should not be
  • How can I make this form?

    How can I make this shape in fireworks:

    shape.png

    I want some pictures in my site has rounded corners. Im making this by adding 4 divs with background images and absolutely positioned, one on each corner of the image. Background images are png with transparent areas. It works as the site background is a solid color, rounded corners do not need to be truly transparent.

    The issue im having is that the pixels on the curve must be semi transparent. ID like to make this shape as a vector, but I don't know how.

    Thank you

    You can do a vector shape like this perforating a circle within a square. Draw a square, draw a circle above it. Select the two objects, and then select Modify > combine paths > Punch. It would be much easier to export your images with corners rounded Fireworks, rather than hide the corners with divs positioned absoultely, however. To do this, draw a white, rounded rectangle on the image. Choose Selection > select all and then modify > mask > Group as mask. Change the color of the canvas to the color of your HTML page.

  • How can I make this update, when I have two records (a primary key, no seq)

    How can I make this update in pl\sql
    Below is the table with data
    CREATE TABLE INSERT_TE
    ( 
    PIDM        VARCHAR2(8), 
    FORM_ID     VARCHAR2(2),
    TEACHER     VARCHAR2(30)
    )
    INSERT into INSERT_TE
    (
    PIDM,
    FORM_ID,
    TEACHER 
    )
    SELECT 
    '1106651', 
    'TE',
    'Teacher, Alber Howard' 
    from dual
    commit;
    INSERT into INSERT_TE
    (
    PIDM,
    FORM_ID,
    TEACHER 
    )
    SELECT 
    '1106651', 
    'TE',
    'Teacher, Alber2 ' 
    from dual
    commit;
    INSERT into INSERT_TE
    (
    PIDM,
    FORM_ID,
    TEACHER 
    )
    SELECT 
    '2321241', 
    'TE',
    'Teacher, Silly Billy ' 
    from dual
    Commit

    You're going to end with something like this: in a cursor...
    PIDM     FORM_ID     TEACHER
    1106651     TE     Teacher, Alber Howard
    1106651     TE     Teacher, Alber2 
    2321241     TE     Teacher, Silly Billy
    so I need to update a table

    If there is only one file like this 2321241 teacher YOU, Billy Silly
    no problem I'm
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC1'
    But if there's a PIDM (pk) with two records
    PIDM FORM_ID TEACHER
    1106651 TE Teacher, Alber Howard
    1106651 TE Teacher, Alber2 
    I need to make 2 updates (notice the rec1 sarchkl_admr_code AND for the firs and rec2 during the second
    The first record should update the table when the condition is sarchkl_admr_code = "REC1" and the second disc with the
    condition is sarchkl_admr_code = "REC2.
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC1'
    and
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC2'
    I do this in pl\sql, I don't have a sequence in the INSERT_TE table, how do I know that the first record in
    1106651 TE Teacher, Alber Howard
    1106651 TE Teacher, Alber2 
    updated a rec1 and the second updates when sarchkl_admr_code = "REC2."

    I guess I can create a sequence, but I'm inserting a table of a select statement, I get the error message
    ORA-02287: sequence number not allowed here, when I try to do the following:
     
     INSERT INTO SYTEACH
    ( 
    SYTEACH_PIDM,
    SYTEACH_ID,
    SYTEACH_TEACHER,
    SYTEACH_SEQ
    )
    SELECT   
          DISTINCT
          spriden_pidm, 
          sarchkl_admr_code, 
          szsform_form_id, 
          szsform_schl_off_type||', '||szsform_schl_off_firstname||' '||szsform_schl_off_lasttname teacher,
           SZSFORM_SEQ.NEXTVAL
            FROM   saturn_midd.szsform, saturn.spriden, saturn.sarchkl
           WHERE       spriden_ntyp_code = 'CAPP'
                   AND szsform_common_app_id = spriden_id
                   AND spriden_pidm = sarchkl_pidm
                   AND sarchkl_admr_code = 'REC1'
                   AND szsform_form_id = 'TE' 
     
    What is the simple way to make this update...

    Hello

    you said:

    >
    But if there's a PIDM (pk) with two records

    PIDM $FORM_ID TEACHER
    TE 1106651 teacher, Alber Howard
    1106651 TE, Alber2 Professor
    >

    Loc PKS are unique! (otherwise we don't call them pk)

    For your table, you can set a single like this:
    PIDM column + a sequence. (new heading):

    ALTER TABLE INSERT_TE ADD(TEACH_SEQ NUMBER)
    /
    
    UPDATE INSERT_TE x
       SET TEACH_SEQ =
              (SELECT n
               FROM   (SELECT ROWID rid,
                              ROW_NUMBER() OVER(PARTITION BY pidm ORDER BY TEACHER) n
                       FROM   INSERT_TE t) s
               WHERE  s.rid = x.ROWID)
    
    PIDM     FORM_ID     TEACHER     TEACH_SEQ
    1106651     TE     Teacher, Alber Howard      1
    1106651     TE     Teacher, Alber2       2
    2321241     TE     Teacher, Silly Billy      1
    

    I need to make 2 updates (notice the rec1 sarchkl_admr_code AND for the firs and rec2 during the second
    The first record should update the table when the condition is sarchkl_admr_code = "REC1" and the second record with the condition is sarchkl_admr_code = "REC2.
    >

    not normally.

    but you can do (now)

    select PIDM, FORM_ID, TEACHER, 'REC'||TEACH_SEQ TEACH_SEQ from INSERT_TE
    
    PIDM     FORM_ID     TEACHER     TEACH_SEQ
    1106651     TE     Teacher, Alber Howard     REC1
    1106651     TE     Teacher, Alber2      REC2
    2321241     TE     Teacher, Silly Billy      REC1
    

    and use the last column to update you...

    Published by: user11268895 on August 20, 2010 14:01

  • How can I make this object?

    Maybe that's... .mesh object...

    but I can't develop... or disassociate...

    What kind object? How can I do this?

    Please... Help me...

    Here is the link file have

    mesh.jpg

    Open your transparency Panel and you can get out of here and see how its construction.

    You end up with this...

  • How can I make this scroll

    Hello how can I do this kind of http://anthelios.laroche-posay.ca/en/beach animate scrolling with edge adobe?


    Hi Yigit

    I think that the following link can help you.

    http://www.Adobe.com/inspire/2014/01/Parallax-edge-animate.html

    Thank you

    Dieudonné

  • How can I make this emphasis?

    I am a newbie and trying to recreate this image below. I know how to do the letters and the text, but how do I underscore below? If you download the image and zoom in to 2000% , you'll see that there are two different layers, the darker on top and layer just below. How can you do this?

    This isn't a regular point out also, I know that you can go highlight the text option, but it's different, Zoom 2000% to see what I mean

    Use could use the line shape layers tool and draw a straight line, the value

    Duplicate the layer, then move it below (using the tool move).

    Then use the parameter opacity to look semi transparent

    When your happy with placement and all, merge two shape layers

    and use the Eraser tool configured to block the cut around the letter p.

    MTSTUNER

    Post edited by: MTSTUNER

  • How can I make this vi run faster?

    I did this vi to read of the oscillioscope 540 tds, and he is just a good amount of time (about 3-4 seconds) to read the scope. I want to make this more effective vi in the case I want to downlad and save data from multiple traces in a row. The vi is attached.


  • How can I make this transition?

    Hello everyone,

    I'm new to After Effects and I was wondering how I can make this transition @0: 40

    The last of us: graphic comparison PS4 vs PS3 - YouTube

    Thank you.

    It looks like to the first clip fades to white and then the second clip is fading from white to the original color.

    You can get such fade using an effect levels or curves with two keyframes (one with the default value and such as the image is very bright / almost all white).

    This tutorial shows how to use the effect curves:

    Lesson 4 - Color Correction and the curves effect guru | mamoworld

    And this one how to use key frames (you can keyframe the curved parameter as any other parameter):

    Lesson 2 - effects and keyframes guru | mamoworld

  • How can I make this button look better gif?

    I admit I'm fairly new to Illustrator... but if you can point me in the right direction, it will be greatly appreciated.

    All I have to do is create a GIF file that also looks good as a SWF file.  I played with all the settings and I can not understand how to do this!

    This is how it looks when I exported to GIF format

    buttonwithnodither.gif

    That's what I see in artificial intelligence. Letters are much better defined.

    buttonai.jpg

    How can I do I export a simple GIF and make it look great?

    Jose

    In the save for web and devices in the image check anti alias tab.

  • HP 7520 Double face (two-sided) scanning possible? If so, how can I make this work?

    How can I scan a document double sided (A4) with the HP Photosmart 7520?

    I prefer to scan directly to e-mail, but I never see the option of detection across a document. With scan-to-mail, but also with the other options (scan of the computer, USB)

    Several reviews that I've read what follows:

    "The Photosmart can print and scan in duplex (two-sided page), but scanning duplex requires two passes.

    But how does it work? I guess that doesn't mean that I have to do two separate analyses (which would not of course double-sided).

    But at no time, I gives me the possibility to transform the document and resume analysis.

    Any ideas on how to use duplex (sort of) scanning with HP 7520?

    The Photosmart 7520 offers the possibility to scan double-sided.

    You scan the front of the printer or the software on the computer? Duplex scanning must be started from the software.

    Scanning both sides of the software on the PC:
    * Open the HP printer Assistant software for the Photosmart 7520
    * Select scan a Document or Photo
    * Select the Document in PDF format (or by e-mail in PDF format)
    * On the side right of the screen is a list of drop-down menus and one of them is the source of the scan
    * Select this option to scan from the automatic document feeder
    * After you select this option, a checkbox will appear under this option to activate Dulpex scanning
    * Set the other options as desired and start the scan

    If you are scanning multiple pages which should be duplex scanning, then the printer will travel the most complete list on one side and then to instruct you on how to reset the pages to scan the remaining sides. The unit requires a method of style "flip and resume" duplex scanning. I hope this helps.

  • How can I make this layout.

    I need to make this layout using horizontal area manager. Can someone help me with this...

    HFM with use_all_width, red background.
    LabelField with paddings properly set and covered with paint method to change the font to white color.

  • Contrast of the menu bar is sick. How can I make it look more vivid?

    How can I increase the contrast for the Menu bar?

    Maybe see if you can find a solid character that works for you.

  • How can I make this effect in Photoshop CC? (DJ effect)

    91487276.jpg?v=1&c=IWSAsset&k=2&d=62CA815BFB1CE480E31072B0CB0FCA532B6A5D266AEA58DBFC205CB3CE69123F1E7CAB80B8494D79

    Just the filter that has been added to this image.

    How to reproduce this? :/

    You can use the halftone, according to Pierre thread linked to, but the holes tend to be more square than round.

    Thus, in order to work for five minutes, I create a pattern and do it right.

    • Turn on the grid and place nine black discs as below with a hard brush completely

    • Make a new layer and fill it with black.
    • CTRL click on the layer and 9 points to load a selection with this selection in place, add a layer to the black layer mask you just made.
    • Invert the layer mask (Ctrl I)
    • Disable the layer of 9 points, and you should see this:

    • Make sure that snap to grid is enabled under the view menu, and then drag a rectangular through holes as selection below.  Do not forget that you deploy a repeating pattern, so we don't need that inner pixels.

    • Now Edit > Define model and your new pattern is made.  Give it a name (I used honeycomb)
    • Make a new layer and select the paint bucket.  In the Options bar set it on the ground. Find your model of honeycomb in the menu drop down and fill a new layer with it.

    If the model is too large, use the free transform to its size.  I have first of all to the large oversize, because the downsizing hiding any small errors

    I decided that your blue vaguely resembled a fuzzy polar bear.  To clean the outside of the honeycomb, add a layer mask to the layer bear and make a selection of the points of the half and fill it with black.

    I gave the right side of the layer honeycomb, a little blur to match your image, but I personally love the clean edges.

Maybe you are looking for

  • Deletion of Contacts

    I have several Apple devices which are all synchronized and whenever I have delete/update my contact list on one of them, he reappears as its original list. Must it be carried out via my iCloud account, rather than on an individual device, that is to

  • transition from iPhoto to Photos

    I have several print projects on the road in iPhoto.  Initially, I learned that these projects will not pass to the Photos without any problems.  Maybe so, but I lose some of the formatting and layout when I do.  For example, a layout 6-photo on iPho

  • Y50 external microphone does not work do not

    Bought the Y50 because it is decent spec for video editing (which works well), but - can not get the external microphone to work. Tried a headphones/mic adapter. Tried all the different settings in Realtek HD Audio Manager I tried Control Panel / its

  • control of DC motor using myDAQ

    Hello I'm building a DC motor using myDAQ command, that I ran into a couple of problem with the STOP button and the Max speed Min. For some reason, the diagram of waveform becomes crazy I will attach my file VI. Description of the project: -An engine

  • How to password protect my files shared on my network?

    I am trying to share a folder on the network and the have password protected. I use Windows XP Service Pack 3 Professional. I have disabled in simple file sharing files Options. All my computers are in the same workgroup. For the record I would like