String concatenation and vi speed

I'm trying to convert data waveform .tdms in ASCII file in a particular format in order to be read by other software. The vi that I wrote (attached) is capable of doing the job but at a very slow pace. The vi in takes about 20 minutes to complete one a second data (22050 samples). This American too slow because I intend to work with waveform data at 1.5 million samples (it takes 16 hours). I think that the problem is due to the the string concatination. Does anyone has any suggestion how I can improve on this performance of vi with regard to its speed. Thank you.

LabVIEW 2011 running on a laptop Windows 7 (i5 2.50 GHz with 8 G of RAM)

Sorry for this question.  I had solved after removing the 'wait until the next multiple ms' vi from the iteration of the loop.

Tags: NI Software

Similar Questions

  • String concatenation and put into registry to offset slowing computer

    Hi all

    I tried to create a record of comms between LabVIEW and an Arduino by concatenating the current message with previous posts and put in a shift register.  After a few hours the LabVIEW began to crawl.

    I had a vague idea that you could write a string indicator without wiping the old content.  I thought that if I could do that is there not a huge overload copy all a larger string.

    Am I dreaming?

    Thank you

    If you need registration integer comm I would say the comms streaming the file.  Make sure you put a Boolean value in to turn off logging.

    Usually, it's one of those things you just do everything in debugging.  If so use OR spy rather than writing your own debugger.

  • Why the operator: = is not working when it is in a string concatenated and assigned to a variable?

    I met with an error ORA-00904: "V_DEPTNO": online: 14 (My PL/SQL code is below), while playing with the cursor of reference (for the end of the apprenticeship).
    I debugged it and the problem was solved and it returns the desired output.  However, the solution of it is not sensible for me even if the output
    has been posted/successfully recovered.    Here's a clearer description of the code:


    On line 14, I have a variable called stmt and stmt value concatenated with the string "where deptno =: v_deptno' and then finally assigned to this stmt variable."

    In this line, he returned ORA-00904 but it was fixed by using =: operator instead of the = operator.

     stmt:=stmt || 'where deptno=:v_deptno'; 
    

    In sql pure when it is intended to add where clause for such purpose, the = comparison operator is used.
    Example:

    Select empno,ename,sal from emp where deptno=10;
    

    But in my pl/sql code, =: operator was used.

    Why is this? Can someone explain what it is? Even if I did my research, but I couldn't find the explanation yet.

    All what I've understood so far, is that this may mean the following (I may be wrong):
    1 - everything first, assign the value 10, of v_deptno, who was declared, to easily compare.
    2. compare the value assigned with deptno.
    On this basis, recover data.


    Thus, he worked as a = + tour operator defined in another high programming language such as c#... etc.
    Example:

    int a = 0;
    
    a =+ 1;    //  a was declared as an integer that has value 0
            // then  we tried to increment by 1 or add by one
             // so it would be  a=a+1;  
                    //which is  a=0+1;
    

    It works the same?

    Here's my complete code pl/sql, just in case...

    --ref cursor
    declare 
    
    type emp_refcur  is ref cursor;
    emp_cv emp_refcur;
    emprec emp%rowtype;
    stmt varchar2(299):= 'select * from emp';
    v_deptno number:=10;
    
    begin
    
    if v_deptno is null then
      open emp_cv for stmt;
    
    else
      stmt:= stmt || ' where deptno=:v_deptno';
      open emp_cv for stmt using v_deptno;
    end if;
    
    loop
    fetch emp_cv into emprec;
    exit when emp_cv%notfound;
    dbms_output.put_line(emprec.empno||chr(9)||emprec.ename||chr(9)||emprec.deptno);
    end loop;
    close emp_cv;
    end;
    /
    
    
    
    
    
    
    
    

    I would you to explain and share with me something to read or give me some clues.

    Thanks in advance!

    In this line, he returned ORA-00904 but it was fixed by using =: operator instead of the = operator.

    There is no "=:" operator.

    The colon character ': ' is used to define a binding (placeholder) variable in the query string.

    The value of this variable must be passed ("linked") after analysis and run step so that the query is executed correctly. That's what the USING clause in your code.

    Thus, he worked as a = + tour operator defined in another high programming language such as c#... etc.

    Example:

    1. int a = 0;
    2. a = + 1;    one has been declared as an integer that is set to 0
    3. then we tried to increment by 1 or add one
    4. so it would be a = a + 1;
    5. which is a = 0 + 1;

    It works the same?

    No, nothing to do with it.

  • String concatenation without loop

    Hello

    I have an array of strings containing numbers in engineering as format below:

    5.34000E - 10

    3.23245E - 1

    -8.43560E - 9

    I'm trying to concatenate to this array of strings to a header, which is a unique, formed string using the string concatenation function.  So, I would that my output as follows:

    Header line 1

    Header line 2

    Row header 3

    5.34000E - 10

    3.23245E - 1

    -8.43560E - 9

    However, the result is currently reads:

    Header line 1

    Header line 2

    Row header 3

    5.34000E - 103.23245E - 1 - 8.43560E - 9

    I can get the desired result using a loop for, but I do not like concatenate them strings function seems to run very slowly in the loop.  Is there a way I can get the desired result without using a loop for?

    Thank you.

    It is a real possibility that concatenate strings runs slowly in a loop For. change the statement "I find that Array Build runs slowly in a for loop" and we would get a serious discussion of fly memory. Absolutely no difference here, maybe even worse because the strings are more difficult to predict than most data types. There is perhaps not a miracle solution to make it faster, but there might be ways to ensure there are no longer than necessary. I probably just build the header as its own array of channels and build table allows to reach the two (concatenate entries of course). Writing to text file will manage an array of strings directly when the time comes.

  • String equals and == difference...

    Hi all

    According to my understanding is equal to string corresponds to the string value and 'is' corresponds to objects represented on each side of the operator. but I saw a strange behavior while playing with these String API.

    class StringTest1
    {
    Public Shared Sub main (String [] args)
    {
    Ja string = "Ja".
    String's = "go";

    Java2 string = "Java";
    String java1 = ja + is going;
    String java1 = "Java";

    System.out.println ("is equal to:" + (java1.equals (java2)));
    System.out.println ("==:" + (java1 is java2));
    }
    }

    For the code above I get the output as 'true' for the first and 'false' for the second expression. output equal to equal is fair enough, but for the operator "is" its fake giving that according to my thinking should be true as says the chain worn No. TWO CHANNELS WITH SAME VALUES funda.
    Among the 2 variables java2 is a string 'Java' and java1 is the result of the concatenation smthing like 'Ja' + 'goes '.

    I tried to do something like
    System.out.println ("obj1:" + java1.hashCode ());
    System.out.println ("obj1:" + java2.hashCode ());
    BTU that returns the same value.

    Please help me understand how is the expression be false for "is".

    Published by: 807216 on May 10, 2011 02:20

    For comparison, try to "ja" and "goes" final.

    final String ja = "Ja";
    final String va = "va";
    
    String java2 = "Java";
    String java1 = ja + va;
    //String java1 = "Java";
    
    System.out.println("equals: " + (java1.equals(java2)));
    System.out.println("==: " + (java1 == java2));
    

    prints

    equals: true
    ==: true
    

    This is because "ja + is going" is a constant expression and can be evaluated by the compiler.

  • FireWire 400 and 800 speed question

    I recently bought one of these cords off of eBay for a few dollars.  I have an old external WD which was connected by usb 1.0.  I thought I could get more speed with this cord, but I get all the same read and write speeds of close to 23MBS.

    Any ideas why the speed is slow?  Cord? By car?

    Thank you!

    USB 1.0 MAX is 12 Mbps, which is 1.5 Mbps. (b = bit, B = byte [8-bit]).

    FireWire 400 MAX is 400 Mbps, which is 50 MB/s.

    Without knowing the specifications of the car, I guess that the "old external WD' performance is the limiting factor.

  • The satellite C855 - raised average temperature and fan speed

    Hello!

    I got this toshiba Satellite C855 since March this year. It is only recently that the CPU temperature and the speed of the fans have been worrying me.

    When I'm not playing games or doing a livestream my CPU temp is about 35-40% with the regular 50% fanspeed or not on because she was cool.

    When I play games however the fanspeed is up around 66 to 68% with the central unit was 55-60%

    I was wondering if this is normal? or I have to clean it by taking it apart. If it's the second option then I'm worried because I don't want to damage anything inside. In addition, I'm not bad with the inner workings of a computer.

    Any help or information would be greatly appreciated thanks.

    In my opinion there is no reason to panic. T is the logic which is higher under stress, activity of the CPU and CPU produces more heat. Laptop needs to be cooled correctly, so the sensors that control the cooling fans sign up for increasing temperature and cooling fans run on higher speed.

    There is no reason for cleaning. And one day if this must be done please don t do it alone. You are not allowed to do this.

  • Best way to transfer strings, arrays and clusters

    Hi, I just want to know the best way to transfer strings, arrays and clusters between a PC and a computer-RT (compactRIO) if I want to use them in deterministic loops:

    For a string should I use a published network shared variable flow or network?

    For an array of doubles should I flatten the array in a string and the string of transfer? or should I send it as a picture?

    The same for clusters, should I flatten the cluster or the transfer as a cluster?

    Thank you!

    Transfers on the network are not deterministic.  You ask how to use the data in a deterministic way, once it arrives on the RT system.  Usually, you would create a separate loop, not critics of time to deal with network communications.  The data arrives it is copied in real-time-safe structures such as RT-FIFO to put at the disposal of the evanescent loop.

    I can't give you specific advice on network variables and network flows; Finally, I did this kind of transfer over TCP, until these other options were available.

  • How to increase computer speed and bandwidth speed

    For the last 2 weeks I was unable to get into my farmville on facebook.  Talk with the support of zynga and they said after they have reset their side my site works for them.  When I try it gets only so far and the I get a rejection and it resets automatically.  These notes have been left by the developers of farmville, loading time for battery are influenced by its size, the number of elements and the computer speed and bandwidth speed, and even other programs running while you're tying to play.  In the worst case scenario, it can take 5 minutes to load your farm.  Please avoid opening multiple instances of the game.  My computer has been used to the factory settings and all updates were executed.  My computer speed and the speed of bandwidth, I don't know what to do?

    Hi Bobbie,

    Please go to the Microsoft Community Forums.
     
    1. do you get an error message?
    2. What is the brand and model of the computer?
    3. what web browser you use to access the internet?
    4. do you have the internet connection wired or wireless?
     
    I have to improve the speed of the computer, follow the steps given the links:
     
    Ways to improve your computer's performance
    Important: When running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    Optimize Windows 7 for better performance
    Important: When running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
     
    I have to improve the speed of bandwidth, see the link:
    WARNING: Reset 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.
    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
     
    I hope this helps.
  • could not find a server reports and analysis hyperion running on localhost port 6800. Please check your connection string server and verify that the server is

    Hi all

    We have properly installed and configured Hyperion Reporting and analysis 11.1.2.4 in windows 2012 server however when I try to logint to the workspace, I get an error like "start-up of the specified document does not exist in the repository." "Select a new start under the General Preferences tab document" monitoring of "could not find a server reports and analysis hyperion running on localhost at port 6800. Please check your connection string server and verify that the server is up '.



    10.PNG


    11.PNG

    HyS9RaFramework_epmsystem2-syserr:

    GsmNotFound

    com.brio.one.services.globalservicemanager.GSMException: GsmNotFound

    at com.brio.one.services.globalservicemanager.GSMFactory.getGSM (unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory$ ClientFactoryInitializer.connect (unknown Source)

    at com.brio.one.client.ClientFactory.getClientFactoryConnect (unknown Source)

    at com.brio.one.client.ClientFactory.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.setDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.initLogging (unknown Source)

    at com.sqribe.WS.WSBaseServlet.loadConfiguration (unknown Source)

    at com.sqribe.WS.WSBaseServlet.init (unknown Source)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:283)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)

    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)

    to weblogic.servlet.internal.StubLifecycleHelper. < init > (StubLifecycleHelper.java:48)

    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)

    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)

    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)

    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)

    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3155)

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:487)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)

    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:672)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)

    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:52)

    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)

    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:31)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)

    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)

    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)

    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)

    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)

    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    In the workspace, it shows that the Service is pending.

    14.PNG

    EMP Diagnostic Report:

    13.PNG

    Can help kindly out how should I solve this problem.

    I restarted the services and rebooted the Machine but still getting the same error.

    Kind regards

    VJ


    Hello

    I've reconfigured the Reporting, analysis, and everything by, I chose "Drop table" and the issue was resolved.

    Kind regards

    VJ

  • How String concat and number?

    This is my code:

    PMString strLabel is 'TXT-' + 1;.

    But result = 'TXT '.

    How String concat and number?

    Hi daitranthanhoa,

    PMString has an AppendNumber function.

    Markus

  • Playback jerky and double speed?

    First post, sorry if I miss any format directives.

    I was edit a project of files H.264 29.7 fps for a few days, and suddenly today the reading would not output sound is incredibly jerky and seems to be at x 2 speed. This isn't due to the J, K or L keyboard commands, but I have no idea why this is happening, as it happened randomly in the middle of a few basic linear editing. I imported an other H.264 with the same cadence and the quality that the rest of the project and then it began. After removing the H.264 and seeing no improvement, I tried project open an old (and white), who also had identical reading problems. Also, I restarted the computer (possibly including disconnect entirely) and the first resettlement. This glitch is odd, since CC worked without problem for months on this device.

    Any thoughts on why this is happening?

    Details:
    As I reinstalled it first CC, I use the latest version.

    32 GB OF RAM

    Intel core i7

    Graphics EVGA GTX 970

    (Note: monitor the status of the computer while playing, there is no unusual spike in the use of the RAM, there is an increase of about 8% 3% 11% CPU)

    Turn on the screenshot above to "No. Input", fixed the problem of the entry 'default'. All messages "(ne fonctionne ne pas)" disappeared and sound speed / normal has been restored to my projects. " Thanks to all who helped!

  • How to get the part of string before and after a character

    Hi all

    How to get the string before and after the comma character)

    Ex: The string contains the value John Kennedy

    I need the output as first stirng - John

    Second stirng - Kennedy

    Create table names (fullname varchar2 (20));

    insert into values of names ("John, Kennedy");

    insert into values of names ("papa ibra, Shan");

    insert into values of names ('Don Bosco'),

    Select * from names;

    Expected results

    FullName firstname lastname

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    Please let me know how to proceed

    Thank you

    Hello

    This proves what I said before, on 0 and several commas commas.

    If we add these 3 rows to the sample data you posted:

    insert into names (fullname) values ("tou").

    insert into names (fullname) values (' David, Lloyd, George ");

    insert into names (fullname) values ('J, R, R, Tolkien");

    then the query I posted earlier produced these results:

    FULLNAME FIRSTNAME LASTNAME

    -------------------- -------------------- --------------------

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David Lloyd, George

    J, R, R, Tolkien J R, R, Tolkien

    If you prefer to get these results:

    FULLNAME FIRSTNAME LASTNAME

    -------------------- -------------------- --------------------

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David, Lloyd George

    J, R, R, J, R, R Tolkien Tolkien

    then you just change line 1:

    WITH got_commapos AS

    (

    SELECT FullName

    , INSTR (fullname, ','-1) AS commapos-* CHANGED *.

    Names

    )

    SELECT FullName

    , SUBSTR (fullname, commapos 1, -1) AS a first name

    SUBSTR (fullname, commapos + 1) in the FORM name

    OF got_commapos

    ;

  • images of 50 fps for export of 25 fps with a normal and slow speed

    Hello world!

    I use first since more than ten years, but now, for the first time that I have to deal with this situation. I have 1080 p at 50 fps 40Mbps images. My output images must be 25 fps 1080 p, but I need to have some video clips to a normal and some speed in slow motion. Any advise how to set my project and sequences? Should I do two sequences - one with 50 fps (for video clips that will be in slow motin) and the other with 25 frames per second and then nest 50 fps sequence in sequence of 25 frames per second for her (50 fps sequence) can be played back in slow motion? Or any other suggestions?

    Thank you!

    I duplicate the image in the project Panel, leave a version at 50 frames per second for use in sections of normal speed and interpret the other at 25 fps for use as slow Mo. use a sequence of 25 p.

  • I use LR5.7 based on Windows 7 and got a few pictures 150 000 in a catalugue. Could import, export and rendering speed be increased, if I store the LR catalog on the same drive as my photos? Today the program, the catalog and the photos are all

    I use LR5.7 based on Windows 7 and got a few pictures 150 000 in a catalugue. Could import, export and rendering speed be increased, if I store the LR catalog on the same drive as my photos? Today, the program, the catalog and photos are all on different drives.

    Import and export and rendering speed depends on the CPU. The disk contributes only a negligible amount to import and export and rendering speed. You would spend more time to pass the photos that you would gain in speed.

Maybe you are looking for

  • A few questions about Apple Watch.

    Hello, guys... My name is Alexander and I live in India. I wanted to buy a Apple Watch and I have a few questions. 1. I use Wi - Fi router and did not have cellular data Plans. Now my doubt is, when the iPhone is not connected to a network of data, W

  • HP Pavilion Notebook N9R33EA # a: problems with the BIOS update (HP Support Assistant)

    I was offered an update of software SP77359, which seems to me to be an update of the BIOS provided by HP Support Assistant. Version F.82Ap1. Two days ago, I updated the BIOS via the support and, on the report wizard got an other update via the suppo

  • Windows Server 2008 R2 with Exchange of HDD replaceable hot backup?

    I have a server that is running Windows Server 2008 R2 with 4 exchangeable to hard drives hot.  3 250 GB disks and configured in RAID 5.  The 4th 1 TB hard drive and used for the backup.  With capabilities to warm the intention was to use the 4th har

  • Spend the WRT54GS to WRT54G2 Router?

    I am running the Linksys WRT54GS router.  A family member gave me a unopened, still in sealed box WRT54G2 router which they never used.  For routers that I have to start all over with the installation of the new router or is there a setting in the co

  • issues with a burned dvd of Director to create dvd

    I created a film with videos and photos and audio on windows movie maker. I went to the creation of windows dvd to burn the disc, and everything seems to be going smoothly. However, when I look at it, the music ends a minute before it should - when I