Case structure with more than 200 cases, slower lab view app

Problem Description :
i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
vi with more cases in a case structure)
mytestautomation.com
...unleashed the power, explore and share ideas on power supply testing
nissanskyline.org
...your alternative nissan skyline information site

Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
Could you attach the actual VI?
 Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
(On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been usin

    Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been using adobe forms for 2 years with mass response feedback and have never had this problem.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • CONVERT_OTFSPOOLJOB_2_PDF is not working with more than 200 pages

    HI all,
    i am trying to print out Inspection Results (OTFs generated by QGA3 Transaction) via the CONVERT_OTFSPOOLJOB_2_PDF funtion module.
    But if the Inspection Results have more than 200 pages the FM only creates a PDF without content.
    The PDF is there but it has 0 bytes.
    This is how i fill the FM:
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = i_spool
                  no_dialog                = 'X'
             IMPORTING
                  pdf_bytecount            = wl_numbytes
                  pdf_spoolid              = wl_pdfspoolid
                  btc_jobname              = wl_jobname
                  btc_jobcount             = wl_jobcount
             TABLES
                  pdf                      = tl_pdf
             EXCEPTIONS
                  err_no_otf_spooljob      = 1
                  err_no_spooljob          = 2
                  err_no_permission        = 3
                  err_conv_not_possible    = 4
                  err_bad_dstdevice        = 5
                  user_cancelled           = 6
                  err_spoolerror           = 7
                  err_temseerror           = 8
                  err_btcjob_open_failed   = 9
                  err_btcjob_submit_failed = 10
                  err_btcjob_close_failed  = 11.
    Does anyone have an idea ?
    Thanks and Regards
    Volker

    That's because the function reverts to background processing when the page size is over 99 pages (see the code).  I posted how to handle this a while back but basically you can either use RSPO_RETURN_SPOOLJOB directly or you can continue to use your current function but you have to poll for the completion of the job (BP_JOB_STATUS_GET) and then get the resulting spool in RAW format with RSPO_RETURN_SPOOLJOB then convert it:
    FIELD-SYMBOLS: <fs_line> TYPE x.
    DATA: gv_pdf TYPE xstring.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
      EXPORTING
        rqident              = p_spono
        desired_type         = 'RAW'
      TABLES
        buffer               = gt_buffer
      EXCEPTIONS
        no_such_job          = 1
        job_contains_no_data = 2
        selection_empty      = 3
        no_permission        = 4
        can_not_access       = 5
        read_error           = 6
        type_no_match        = 7
        OTHERS               = 8.
    LOOP AT gt_buffer INTO gs_buffer.
      ASSIGN gs_buffer TO <fs_line> CASTING TYPE x.
      CONCATENATE gv_pdf <fs_line> INTO gv_pdf IN BYTE MODE.
    ENDLOOP.

  • AM with more than 200 VOs

    Hi,
    I got a client that implemented a BC4J application with only one AM and 200 VOs.
    The applications responses times are very poor and it ends with a Stack Exception regarding the PS_ tables. Then We get an Internal Server Error.
    Please advise
    Thanks
    JO

    Dear Sir...
    please check the following link:
    ViewObjects ADVICE PLEASE
    Try to check if your view objects are read only, or updatable. if many of them are read only then i guess you have no problem.
    best regards

  • General Scenario- Adding columns into a table with more than 100 million rows

    I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those?
    Thanks in advance.
    svk

    For such a large table, it is better to add the new column to the end of the table to avoid any performance impact, as RSingh suggested.
    Also avoid to use any default on the newly created statement, or SQL Server will have to fill up 200 million fields with this default value. If you need one, add an empty column and update the column by using small batches (otherwise you lock up the whole
    table). Add the default after all the rows have a value for the new column.

  • Is it possible to run more than one case at a time?

    Using a case structure, is it possible to have more than 1 case running at a time? I'm currently using a for loop's iteration terminal to select which case to run but each case contains a for loop with a timer delay. I want them all to run simultaneously somehow..?
    Maybe possible using a different type of loop?
    Thanks for any help.
    Rob

    > Using a case structure, is it possible to have more than 1 case
    > running at a time? I'm currently using a for loop's iteration terminal
    > to select which case to run but each case contains a for loop with a
    > timer delay. I want them all to run simultaneously somehow..?
    > Maybe possible using a different type of loop?
    >
    If it did this, we'd consider it a bug. By design, only one diagram of
    a case is supposed to run, the one the selector specifies. If you want
    them to run in parallel, put the contents into separate case statements
    and use a Boolean to either run or skip the code.
    For example, if you have cases run whenever their bit is set in an
    integer, then you would have cases for bit 0, 1, 2, and 3. Instead of
    putting them in one case, make fo
    ur cases. Put the AND logic in front
    of each for ANDing with 1, 2, 4, and 8, and wire the output Boolean to
    the case structure. Now take i and wire it to the logic. The 0 diagram
    will run on odd numbers, etc.
    Greg McKaskle

  • Can I have multiple event structures with the same event cases?

    Hello, 
    I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
    (initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
    My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
    Any help is appreciated.
    Thank you very much.
    Solved!
    Go to Solution.

    natasftw wrote:
    Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
    A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Excel 2013 (pro plus) extermely slow with sheets with more than 100 checkboxes

    I have a customer with Excel 2013 (pro plus).
    They use sheets with more than 100 checkboxes in it.
    The sheet is extremly slow to display. When a user starts scrolling down, the checkboxes appear very slowly, one by one.
    It happens with all users, on both x86 and 64bits Windows 8 PC's and Office clients (32b & 64b).
    Anyone any idea?

    Hi R.Nieraeth,
    Could you please let us know what exactly these checkbox was used for ? Any formulas depend on these checkbox? Or any VBA code in this excel file? If so, you may need to check your formulas or the VBA code.
    In addition,does this issue happen only on excel 2013? You can try to disable hardware graphics acceleration: Click
    File, and then click Options. In the Advanced group, click to select the
    Disable hardware graphics acceleration check box. Click ok.
    Also please check if the following thread is helpful:
    http://social.technet.microsoft.com/Forums/en-US/a9a257fa-ce8b-4399-860c-563022b8714f/checkbox-bug-in-excel-2010-slow-response?forum=excel

  • Unable to write more than 10 case statements in an object in designer

    unable to write more than 10 case statements in an object in designer
    XI 3.0 and XI 3.1
    Please let me know, any known issues.

    Hi,
    yes this is the limitation you cant write more that 10 case statments but you can reduce the number of time you use the case in your object.
    For ex:
    If you are writing few conditions on one field then you can add the login in one case only.
    case when SAL between 100 and 1000 then 'lowsal'
            when SAL between 1000 and 2000 then 'medsal'
            when sal between 2000 and 3000 then highsal
    else
    case when ...then ....
    else
    end
    end
    by following the above ex you can solve your problem.
    But if you are writing case statement based on dofferent columns then write 10 case statements and remaining conditions you can add at the report level.
    using if else condition.
    Hope this will help you....
    Cheers,
    Ravichandra

  • Analyse a partitioned table with more than 50 million rows

    Hi,
    I have a partitioned table with more than 50 million rows. The last analyse is on 1/25/2007. Do I need to analyse him? (query runs on this table is very slow).
    If I need to analyse him, what is the best way? Use DBMS_STATS and schedule a job?
    Thanks

    A partitioned table has global statistics as well as partition (and subpartition if the table is subpartitioned) statistics. My guess is that you mean to say that the last time that global statistics were gathered was in 2007. Is that guess accurate? Are the partition-level statistics more recent?
    Do any of your queries actually use global statistics? Or would you expect that every query involving this table would specify one or more values for the partitioning key and thus force partition pruning to take place? If all your queries are doing partition pruning, global statistics are irrelevant, so it doesn't matter how old and out of date they are.
    Are you seeing any performance problems that are potentially attributable to stale statistics on this table? If you're not seeing any performance problems, leaving the statistics well enough alone may be the most prudent course of action. Gathering statistics would only have the potential to change query plans. And since the cost of a query plan regressing is orders of magnitude greater than the benefit of a different query performing faster (at least for most queries in most systems), the balance of risks would argue for leaving the stats alone if there is no problem you're trying to solve.
    If your system does actually use global statistics and there are performance problems that you believe are potentially attributable to stale global statistics and your partition level statistics are accurate, you can gather just global statistics on the table probably with a reasonably small sample size. Make sure, though, that you back up your existing statistics just in case a query plan goes south. Ideally, you'd also have a test environment with identical (or nearly identical) data volumes that you could use to verify that gathering statistics doesn't cause any problems.
    Justin

  • More than 200 users per org unit

    Hi Experts,
    We are implementing SRM 5.0 and replicating org structure from HR systems. We have some org units which have more than 200 users. Please advise if there is any issue with it.
    Regards,
    Kamal

    Hi,
    The  200  limit is for users generated through trasnc USERS_GEN.
    If an organizational structure with a large number of dependent nodes is displayed in the overview area, access to the transaction can take a very long time.
    Please refer to the following SAP OSS Notes ->
    Note 503915 - PPOMA_BBP: performance improvement overview area
    Note 389869 - Organizational unit with many employees
    Note 405806 - Transaction PPOMA_BBP for new material group attributes
    Note 864221 - EBP 4.0+: Performance location
    Note 920158 - EBP 4.0+: Shopping cart performance
    Note 1044096 - RSWUWFMLEC: Wrong Emails and/or Bad Performance
    Note 1095895 - Slow response times for several SRM transactions
    BR,
    Disha.
    Do reward  points for useful answers.

  • Problems deploying Windows 7 x64 computers with more than 8GB RAM

    SCCM 2012 R2 CU1
    Windows 7 x64
    We have a weird problem after upgrading from SP1 to R2 CU1. We have built a Windows 7 64 bit image with the latest updates (currently September 2014 updates). It deploys fine to all computers. But after some days – don’t know exactly – guess after 4-7 days
    - we start getting errors on computers with more than 8 GB of RAM. The errors just start out of the blue. We didn't change TS, image or driver package.
    The error shows in 3 different ways – depending of the computer model.
    1) BSOD – STOP 0x000000F4. Disk error.
    2) Task Sequence error 0x87D00269 when installing the first Application in TS. The error seems to have something to do with Management Point not found.
    3) Task Sequence simply stops after installing CMclient. No errors - it simply stops.
    For instance we get the BSOD on the Lenovo ThinkCentre M93p. But on the ThinkCentre M83 we get the TS error 0x87D00269. M93p and M83 uses the same driver package. They consequently  fail every time after the error has begun. If we reduce (remove physically)
    the memory to max. 8GB of RAM, they successfully run the Task Sequence.  We get the above errors on both Lenovo and HP machines with more than 8GB. 
    I made a copy of the production TS and started testing. I created a new driver package for M93p/M83. It contains only the NIC drivers. Now M93p an M83 successfully finishes the TS. Adding sata or chipset or MEI/SOL drivers to the package I get the 0x87D00269
    error on both m93p and M83. At least not the BSOD on the M93p ;-)
    Tried setting  SMSTSMPListRequestTimeout to 180 in the TS. Also tried putting in a 5 minute break before installing the first Application in the TS. Also tried putting in SMSMP=mp1.mydomain in the installation properties for the CMclient. It is still
    the same problem.
    Investigating the smsts.log on a computer with the 0x87D00269 error.
    Policy Evaluation failed, hr=0x87d00269 InstallApplication
    25-09-2014 08:59:59 3020 (0x0BCC)
    Setting TSEnv variable 'SMSTSAppPolicyEvaluationJobID__ScopeId_654E40B7-FC55-4213-B807-B97383283607/Application_d9eea5a0-0660-43e6-94b8-13983890bae2'=''InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
    EvaluationJob complete InstallApplication25-09-2014 08:59:59 3020 (0x0BCC)
    MP list missing in WMI, sending message to location service to retrieve MP list and retrying. InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
    m_hResult, HRESULT=87d00269 (e:\qfe\nts\sms\client\osdeployment\installapplication\installapplication.cpp,1080) InstallApplication
    25-09-2014 08:59:59 3020 (0x0BCC)
    Step 2 out of 2 complete InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
    Install application action failed: 'SCIENCE PC Guide'. Error Code 0x87d00269 InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
    Sending error status message InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
     Setting URL = http://mp1.mydomain, Ports = 80,443, CRL = false InstallApplication 25-09-2014 08:59:59 3020 (0x0BCC)
    Investegating the 0x87D00269 error on the siteservers Status Messages Queries is weird.
    Install Static Applications failed, hr=0x87d00269. The operating system reported error 617: You have attempted to change your password to one that you have used in the past. The policy of your user account does not allow this. Please select a password that
    you have not previously used.
    Hopefully this is a bug in translating the errorcodes? Just to be sure I checked all the SCCM serviceaccounts and none of them have expired passwords.  And again why only on computers with more than 8GB RAM.
    Anyone else had problems rolling computers with more than 8GB og RAM?
    Why does this happens after a few days? To begin with, it runs just perfect and then starts failing on all machines with more than 8GB. Without a change in TS, image and driverpackage. We have seen this pattern for the last 3 month after
    updating our image with the latest Windows Updates. It all started after updating from SP1 to R2 CU1.
    Why does it only affect machines with more than 8GB RAM?
    How to get rid of the 0x87D00269 error?
    Seems to be somehow related to driver installation mechanism in SCCM in combination with Windows 7 64 bit, +8GB RAM and SCCM 2012 R2 CU1 or perhaps just R2.
    Any help or hints would be appreciated!
    Thanks
    Anders

    We have the same workaround, using a x64 boot image resolved all our issues with WinPE 5.0.
    Machines with >4GB of RAM
    Lenovo ThinkPad T540p failed applying drivers with 80040005
    Black screen/white cursor issues intermittently
    No updates from Microsoft, they are still looking through the logs, but we have updated our boot images and all is well now. Our case it still open with Microsoft, they are researching the logs.
    Daniel Ratliff | http://www.PotentEngineer.com

  • Get the data with more than one of the desired value

    Hi,
    I need to pull the records with more than one value of 'Other' on the delivery days fields.
    The delivery fields are mon,tue,wed,thu,fri and sat that tells the where the item will be delivered. The value can be Home, Work, or Other.
    Here is the Sample data:
    cust_id: 123
    item: newspaper
    mon: Home
    tue:Work
    wed: Other
    thu: Home
    fri: Other
    sat: Other
    And here is my query so far.
    select
    cust_id,
    item,
    mon,
    tue,
    wed,
    thu,
    fri,
    sat,
    sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1
    else 0 end) as day_ctr
    from customer
    Could you please help me with the right formula I need to get this?
    Thank you in advance..

    First
    DESC customer
    Second
    Can you explain what you are trying with
    sum(case when (del_mon = 'O' or del_tue ='O' or del_wed ='O' or del_thu ='O' or del_fri ='O' or del_sat='O') then 1 else 0 end) as day_ctr
    Third
    Usually it's helpful a example of the result you want...
    Perhaps you want this
    select DECODE(mon,1,(select distinct mon from customer), 'OTHER') mon,
            DECODE(tue,1,(select distinct tue from customer), 'OTHER') tue,
            DECODE(wed,1,(select distinct wed from customer), 'OTHER') wed,
            DECODE(thu,1,(select distinct thu from customer), 'OTHER') thu,
            DECODE(fri,1,(select distinct fri from customer), 'OTHER') fri,
            DECODE(sat,1,(select distinct sat from customer), 'OTHER') sat from
    select
    COUNT(DISTINCT mon) mon,
    COUNT(DISTINCT tue) tue,
    COUNT(DISTINCT wed) wed,
    COUNT(DISTINCT thu) thu,
    COUNT(DISTINCT fri) fri,
    COUNT(DISTINCT sat ) sat
    from customer
    )

  • Report with more than 500 rows

    I have a report with more than 500 rows and i donot know the total number of records returned from sql query before hand. Is there any way to dynamically set the MAX ROW COUNT in the report - layout and pagination.
    Thanks a lot
    Sudha

    Hi All,
    The main problem for the scenario is that....Say you first create a SQL query based report with setting the row per page 15 .Now after the region is displayed if u go through the report attributes of the page and change the no. of row per page and apply changes the same will not going to reflect in the report display page.
    For ur case just select the no. of page u want to show while creating SQL Query based report region say 1000 and after creating the region go to the report attributes -> Layout and Pagination -> Max Row Count : 9000 (say).
    I have solved the problem after creating 700 rows and the all rows displayed in the page fine........If u have further issue plz revert back to me.
    Thats solve ur problem i think.....
    Thanks n Regards,
    ROSY

  • Formating Line thickness for lines in graphs with more than 6 lines.

    I have a line graph with more than 6 lines on it and I'm trying to make them all 1px.
    I can specify a line thickness for the first 6 lines but after that, the lines go back to the default thickness.
    Is it possible to change the default line thickness for a graph or format the line thickness for the 7th line and more?

    Good news! I found out how to format more than 6 lines of data and it's really simple to do!
    In the bottom left hand corner of the Format Chart Data, next to the Clear All button, is a button marked ADD.
    If you click this button, another row is added allowing you to format the 7th line of data.
    Click again and you get a row for the 8th line and keep clicking to add more lines.
    I'm making a note of it here in case it is useful to someone out there who searches on this problem in the future.
    Edited by: user2052587 on Jan 6, 2010 2:45 PM

Maybe you are looking for