Execution timing LV4

Hi I am having problems with execution timing of my main vi.
Details:
Win2000
Labview 4.01
The problem lies in the execution of a for loop and the use of a AI multipoint vi for obtaining 2 waveforms. The analog input and the first structure within the for loop are contained within sub vi's.
When run, the for loop must wait to be executed AFTER the analog input has fully completed. This defeats the entire purpose of what I am trying to do.
The for loop is used to communicate with a serial device using NI-VISA, and all the inputs for the loop are ready prior to the execution of the data aquisition.
any ideas how I can get analog input and the for loop and the data acquisition vi to start simultaneously????
Stuart

I am certain there is no data dependency between the two strucutres. I tried a wait function but it didn't seem to have any effect. I also tried a while loop in place of the for loop. Still no change.
The main vi which call the sub vi's and the sub vi's themselves are attached. They are programmed in LV4.01
Attachments:
SinePW.vi ‏70 KB
mainVI.vi ‏195 KB
DAQ.vi ‏132 KB

Similar Messages

  • Teststand Multi UUT execution Timing

    Dear All,
       I am working on Multi uut testsystem where I have to tests 5 UUT in parallel, I am using Labview adapter,with Batch process model and testing energy meters where I have hardware suitable for 5 UUT. My question is My execution timing for 1,2 .And 5 uut at a time is different, Ex.. I an getting 1 UUT tested in 5 minutes and when I starts testing when I start testing 2 UUT at the same time My total execution time for same steps and sequence increases to 7 minutes.
    Pl suggest how I can achieve same timing which I am getting for single UUT for more than one UUT execution.

    Doug, I have shared hardware and it is source calibrator for current and voltage which is wired in parallel to all 5 UUT so that it can source to all UUT at the same time.My report generation is disabled and there is no on-fly report ON.I am doing my report generation using the one labview VI where I formatted report at the end of tests so while running the tests report generation not involved.I have around 65 steps in one sequence which made for calibration.
    To get same time of execution for 5 UUT as single UUT do I need to make my labview code module as reentrant? or do I need to make multi thread in labview vi code module like each socket will have separate loop execution inside the VI.? attaching here .seq file for your reference
    Attachments:
    PM5350 Multi UUT Test.seq ‏88 KB

  • SSIS 2012 Scheduled SSIS package fail to start – Execution timed out

    Hi
    I am currently running into an issue that seem to have a live Connect issue raised for it. The following is the link to the connect issue https://connect.microsoft.com/SQLServer/feedback/details/783291/ssis-package-fails-to-start-application-lock-timeout-in-ssisdb-catalog-create-execution
    There is also a blog post that explains this issue in more detail, however the solution
    it provides does not work all the time and I am very reluctant to create custom stored procedures in the SSISDB. http://speaksql.wordpress.com/2013/06/27/ssis-2012-fail-to-start-execution-timed-out/
    Just to give some more background. When scheduling 10 or more, in my case I scheduled 14, SQL Server Agent Jobs all executing a package in the SSIS Catalog and all kicking off on exactly the same time about 10% to 20% of these jobs fail stating one of the
    following error messages:
    The operation failed because the execution timed out.  Source: .Net SqlClient Data Provider  Started:  12:20:01  Finished: 12:20:07  Elapsed:  5.797 seconds.  The package execution failed.  The step failed.
    Description: Transaction (Process ID 66) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.  Source: .Net SqlClient Data Provider  Started:  14:06:48  Finished: 14:06:53
     Elapsed:  4.719 seconds.  The package execution failed.  The step failed.
    This timeout takes place both when using TSQL to start the package in the Job or when the step in the Job is set to start the package as an Integration Services Package.
    Steps to recreate this:
    1. Create one SSIS package that simply executes for around a minute. For example you can use an Execute SQL Task and simply execute the following TSQL "WAITFOR DELAY '00:01:00'"
    2. Create 14 SQL Server Agent Jobs each executing the same package and schedule all of them to run at the same time.
    3. Watch the execution of the jobs take place and note the failures. (This does not always happen and you might get one run in which everything executes without a problem. The next run might have 6 or 7 of the jobs fail.)
    You can also create 14 different SSIS packages, one for each job, and the result is the same.
    I am running on SQL 2012 SP1 CU4. Windows Server 2012 R2 patched to the lastest patch level.
    This issue does not happen when the packages are deployed to the SSIS Package Store the way that it was done in SQL2008 and before. It only occurs when the SSIS packages are deployed to the SSIS Catalog.
    Any help or feedback on this would be greatly appreciated.
    Kind Regards,
    Christo Olivier

    Hi Tom
    Thank you for the fast response. I went and increased the value by 1024KB instead of the initial
    512KB. Unfortunately this seems to only alleviate the issue but does not stop it from occurring. It
    is happening much less often now but still occurring intermittently.
    Regards,
    Christo

  • Possible to get SQL execution timing?

    Is it possible to get wall-clock timing information in thesame way as using "set timing on" in SQL*Plus?

    I think the information you need is automatically displayed on the toolbar of the Sql Worksheet, to the right of the 'execute explain plan (F6)' and 'Clear (Ctrl-D)' buttons.

  • Query execution timing out

    Hi experts,
    I have two queries on the DSO when we run the query it is taking long time to fetch the data. in query i have only 4 chars and 1 key figure out of 4 chars 2 are navigational attributes. what are the different options i have to improve these query performence.
    Thanks,
    Kiran

    Hi Kiran,
    According to improve performance of DSO, implement Indexes.
    And also if the data is verymuch more then divide the data in to 2 DSO's (as per year) and build a multiprovider to access the data.
    We don't have many options to improve the performance of DSO.
    OR
    Use Cube in place of DSO.
    Regards,
    Ravi Kanth

  • Execution timed out error when running opcagt command on linux server with agent 11.12.009 installed

    Hi,
    Can anyone help me in the below issue.
    we have a Linux server with agent version 11.12.009 installed on it. when I try running opcragt command on it through are management server it gives the output that all agent components are running.
    but when I check the agent status or version through opcagt command on it it gives below error:
    ERROR:   (depl-86) Unable to execute command 'opcagt' on node
                       (depl-176) Message returned from host           
    (xpl-117) Timeout occurred while waiting for data.
    Below are the error lines that I got from system.txt file of the server:
    0: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (conf-180) Could not create messenger for configuration server 'ovconfd' and register its methods with the messenger object.
    1: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (xpl-89) write(11)[012C5430] failed.
    2: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (RTL-28) No space left on device
    Could anyone please let me know what can be the issue in this.
    Thanks,
    Akansha

    ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [942],
    [ORA-00942: table or view does not exist
    ORA-01403: no data found
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 36
    ORA-01403: no data foundWhat does this query return?
    SQL>  SELECT HOST, ACL
    FROM DBA_NETWORK_ACLS;Please see (Redefining a Network Access Control List Fails with ORA-1403 [ID 854083.1]).
    Thanks,
    Hussein

  • Unexpected SQL execution timing

    Oracle Version 9i
    Win 2000/XP
    We have one table comm which is a huge partitioned table (range - quarter). We had one time-taking statement that we were trying to tune -
    DELETE FROM comm WHERE paid <> 'Y';
    The explain plan told us that the index was not getting hit (which is understandable). The cost was around 270K odd.
    We changed the statement to delete a similar numer of records -
    DELETE FROM comm WHERE paid = 'N';
    DELETE FROM comm WHERE paid = 'X';
    DELETE FROM comm WHERE paid = 'ZZ';
    This time the index was getting hit but the cost was still around 260K odd. However, the time taken to execute the 3 given statements went down from 40-minutes to 1minute!
    What I am not able to understand is how come the Cost was so way off in estimation. Thanks in advance for your responses.
    Additional info - the 3 statements will always use the latest partition only. However, the explain plan shows that it traverses all the partitions in both the scenarios.

    The query itself does not hit a specific partition - you said that the PAID column is a local partitioned index. This means that the DELETE predicate does not allow for partition pruning - only hitting specific partitions.
    So depending on the volume of data to process, this can be very slow. Which is the next point. The way the predicate is constructed. A "PAID <> value" is very different than "PAID = value1 OR PAID = value2". The first requires an index range scan (if the index can be used optimally) to determine which rows have indexed values that are not equal to the stated value.
    Range scans can be problem - the bigger the range, the more I/O is needed. I/O is the slowest and most expensive of all RDBMS operations.
    Compare this to telling the CBO the value of PAID that you're looking for - the ideal way an index should be used.
    As for the CBO costs - ignore it. Comparing the cost of one query with that of another query (or even similar query) is not a sensible thing to do. To read up what experts say on it, go to http://asktom.oracle.com and do a search on "comparing cbo costs" or something along those lines. Lots of interesting stuff there.
    Is PAID index a bitmap index? Or a standard B+tree index?

  • Execution timing in LabVIEW

    In my application, I monitor 7 sensor values as either on or off and either update internal variables or turn on actuators accordingly. For some reason, LabVIEW is missing some of the sensor values changing and I think its because i'm using flat sequence structures for some of parts as delays are required in some instances. My question is, with several concurrent processes running at the same time, if i enter a sequence structure, does that preempt the other processes. IE, if i'm in a sequence structure and some condition changes outside of the structure, is my system going to be able to detect it?

    Entering the sequence structure will not prevent operation of code outside of the sequence structure which is independent from and in parallel to the sequence structure.
    I have some questions which may help to isolate the source of your problem.
    1. It appears that the parallel processes in your application are intended to independently monitor your sensors. Is this correct?
    2. What are the hardware resources that you are using?
    3. Is it possible that you're missing data because two portions of the program are trying to utilize the same resources simultaneously?
    I do recommend that you try to steer clear of sequence structures when possible as Lynn suggested. While the flat sequence structure has helped with some of the problems associated with sequence structures it still disrupts the natural LabVIEW dataflow operation.

  • Execution timing

    Hi,
    I'm working for a datalogging project.
    I use a cRIO-9104 with a 9237, a 9215 and a 9233. I use a DMA channel for every mod C. In the RT I have four while loops. One for some operation (loop rate 200ms) and the other three to read data from DMA. I cannot find the loop rate of the last three while loops that can permit to read and save the data on three TDM files.
    configuraion
    DMA ch0: 16383 elements word length 24bits ; Integer word length -4bits 
    DMA ch1: 16383 elements word length 24bits ; Integer word length -4bits 
    DMA ch2: 16383 elements word length 20bits ; Integer word length 5bits 

    Hi Fabio,
    I'm sorry but I cannot fully understand.
    You cannot find the value of wait time of the while loops? What kind of tests have you done?
    Could you post a screenshot of the DMA loop diagram?
    Bye,
    Licia 

  • Test Execution hangs while executing a test from Command prompt option

    I have done the following
    1) Created a script Test driver
    2) Added different scripts as Script->Properties->Assets to the driver script
    3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
    4) Now calling this TestDriver script from command prompt with command
    e:\\OracleATS\\agent
    runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
    TestDriver.jwg
    The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
    Do I need to keep openscript UI open for script execution from command line ?
    Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
    Complete error is as follows
    C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
    er\\TestDriver.jwg
    Running "TestDriver" ...
    Agent started. Available commands:
    stop - Stop the virtual user after it finishes the current iteration.
    abort - Abort the virtual user cleanly, before it finishes the current itera
    tion.
    exit - Terminate the process immediately
    You may type the above commands at any time.
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
    12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
    Execution Timed Out.

    Hi e_raja_sekar,
    You wrote:
    public static void main(String args){should be
    public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
    public class BadMain {
      public static void main(String args) {
        System.out.println("Hello World");
    }The output I got was:
    Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
    Cheers,
    Avi.

  • Changing the timing in scheduler jobs

    Hi All,
    In the below code I have given the execution timing as 2:15. But next run date value is showing as 3:00 AM. What is wrong here?. I created this job at 2:00 AM
    SQL> select owner,LAST_START_DATE,NEXT_RUN_DATE from dba_Scheduler_jobs where JOB_NAME='job2' and owner='owner1';
    OWNER LAST_START_DATE NEXT_RUN_DATE
    owner1 08-DEC-12 03.00.00.000000 AM -
    05:00
    SQL> BEGIN
    2 DBMS_SCHEDULER.create_job (
    3 job_name => owner1.job2',
    4 job_type => 'PLSQL_BLOCK',
    5 job_action => job2();',
    6 start_date => '08-Dec-12 2.15.00AM',
    7 repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
    8 end_date => NULL,
    9 enabled => TRUE,
    10 comments => 'None');
    11 END;
    12 /

    the start_date defines the point in time when the schedule becames active. But the time of the next execution is determined by the repeat_interval - in your case: byminute=0; bysecond=0:
    BEGIN
      DBMS_SCHEDULER.create_job (
      job_name => 'test_job',
      job_type => 'PLSQL_BLOCK',
      job_action => 'begin null; end;',
      start_date => to_date('08.12.2012 02:15', 'dd.mm.yyyy hh24:mi'),
      repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
      end_date => NULL,
      enabled => TRUE,
      comments => 'None');
    END;
    select job_name
         , start_date
         , repeat_interval
         , next_run_date
      from dba_scheduler_jobs
    where job_name like '%&job_name%'
       and owner not like 'SYS%'
    order by owner
            , job_name
    JOB_NAME   START_DATE                          REPEAT_INTERVAL                      NEXT_RUN_DATE
    TEST_JOB   08.12.12 02:15:00,000000 +01:00     freq=hourly; byminute=0; bysecond=0; 08.12.12 12:00:00,000000 +01:00

  • Execution speed onboard programs

    Hi all
    I am tying store the value of analog input channels of PCI-7352 on buffer, from onboard program.
    The program run fine, but I don´t know how measure the total acquisition time in the program.
    In an example in LabView ( adc-gpbuffer.vi ), use 'flex_load_delay' function to establish an interval in
    the acquisition. But the real interval between readings not is calculated.
    Another question, How I can know the execution speed of onboard program ?.  The documentation does not
    show information.
             Thank´s
             Javier
    Attachments:
    adc-gpbuffer.vi ‏165 KB

    Javier,
    there is no easy way to measure the execution timing of onboard programs. One thing that you could do is to toggle a digital line in your onboard program and measure the timing with an oscilloscope.
    Please be aware that the timing of onboard programs doesn't work deterministicallly as onboard programs don't run with time critical priority on the board's CPU so you will probably see a fair amount of jitter.
    The main purpose of the analog inputs on the 7352 is analog feedback. You can use them for single point measurements, too but if you need to acquire data with an accurate timing you better should use an additional M-Series board like the PCI-6220 which provide a much better measurement and timing accuracy and as true measurement devices they provide a whole set of additional useful features.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Concurrency errors on query execution!

    Our application fails to pass our final benchmark (last step before go live).
    Everything works well in development or integration environments with a single or few users, but it fails to pass the final benchmark which simulates intensive workload with an automated web test tool.
    The following exception is thrown when a very simple ReadObjectQuery is executed.
    Stack trace (messages translated from French):
    Exception [TOPLINK-6089] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.QueryException
    Exception description: The expression has not been initialized correctly. Only a single ExpressionBuilder should be used for a query. For parallel expressions, the query class must be provided to the ExpressionBuilder constructor, and the query's ExpressionBuilder must always be on the left side of the expression..
    Expression : [
    Base medialog2.persistence.appel.CategorieAppel]
    Query : ReadObjectQuery(medialog2.persistence.appel.CategorieAppel)
    at oracle.toplink.exceptions.QueryException.noExpressionBuilderFound(QueryException.java:723)
    at oracle.toplink.expressions.ExpressionBuilder.getDescriptor(ExpressionBuilder.java:164)
    at oracle.toplink.internal.expressions.DataExpression.getMapping(DataExpression.java:202)
    at oracle.toplink.internal.expressions.QueryKeyExpression.getMapping(QueryKeyExpression.java:211)
    at oracle.toplink.internal.expressions.QueryKeyExpression.getFieldValue(QueryKeyExpression.java:185)
    at oracle.toplink.internal.expressions.ParameterExpression.getValue(ParameterExpression.java:181)
    at oracle.toplink.internal.expressions.ParameterExpression.valueFromObject(ParameterExpression.java:281)
    at oracle.toplink.internal.expressions.RelationExpression.doesConform(RelationExpression.java:60)
    at oracle.toplink.internal.expressions.LogicalExpression.doesConform(LogicalExpression.java:38)
    at oracle.toplink.expressions.Expression.doesConform(Expression.java:1061)
    at oracle.toplink.internal.identitymaps.IdentityMapManager.getFromIdentityMap(IdentityMapManager.java:553)
    at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.checkCacheForObject(ExpressionQueryMechanism.java:412)
    at oracle.toplink.queryframework.ReadObjectQuery.checkEarlyReturnImpl(ReadObjectQuery.java:223)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:504)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:564)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2073)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:988)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:960)
    at fr.cnamts.jb.TopLinkQuery.executeQuery(Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at fr.cnamts.jb.ObjectQuery.getObject(Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at fr.cnamts.jb.Finder.getObject()Ljava.lang.Object;(Unknown Source)
    at medialog2.metier.appel.CategorieAppel.executerSelectNumAppel(CategorieAppel.java:102)
    at medialog2.presentation.accueil.MenuAccueilAction.execute(MenuAccueilActionjava:220)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Context:
    -     Two-tier model, with pure Pojo objects (no EJB or JDO).
    -     A singleton server session, using TopLink internal pool for JDBC connections
    -     A separate client session per request.
    -     A singleton ReadObjectQuery created during class loading and then executed by subsequent requests (without any further changes).
    -     No thing else was shared between sessions.
    -     There is no transaction in progress (unit of works are not used in this case).
    -     The query expression was of the form: “where a = ? and b = ?” (int values), nothing else.
    Environment:
    -     TopLink : 10g Release 3 (10.1.3.1.0) (Build 061004)
    -     JDBC : Oracle JDBC driver Version 10.2.0.2.0
    -     Database : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    -     App server : Weblogic
    -     JVM : jrockit81 sp6_142_10
    Reproducibility:
    -     This error was reproducible only on the benchmark platform using an automated test tool and only if logs are turned off (production environment simulation).
    -     On the same platform, if logs are turned on, then the problem did not occur (different execution timing).
    -     Despite many attempts, we where not able to isolate a simple test case to demonstrate the problem.
    Sorry, I cannot provide a simple and suitable test case (the application is huge), but the code substance, after being flattened, is like the following one:
    // Query creation (done at class loading time)
    final static ReadObjectQuery q;
    static {
    final ExpressionBuilder expr = new ExpressionBuilder();
    q = new ReadObjectQuery( Data.class, expr );
    q.setReferenceClass( Data.class );
    q.setSelectionCriteria(
    expr.get( "a" ).equal( expr.getParameter( "p1" ) )
    .and( expr.get( "b" ).equal( expr.getParameter( "p2") ) )
    q.addArgument( "p1" );
    q.addArgument( "p2" );
    q.setFetchSize( 1 );
    // somewhere in the application,
    // the query is executed like this (each thread uses a distinct session) :
    final Vector parameters = new Vector( 2 );
    parameters.add( value1 );
    parameters.add( value2 );
    final Object result = session.executeQuery( q, parameters );
    // nothing else !!!
    After lot of investigations, we can certify that nothing else, except execution timing, is involved in this case…
    My impressions:
    -     The returned error message is totally out of context. The expression is well formed. Only one ExpressionBuilder is used in this query construction. The expression is very simple ( where a=? and b=?), no parallel expressions are involved. And, the same code works without high concurrency…
    -     When looking at TopLink source code level, we can see that the exception is thrown because the session associated with the expression builder has been lost (it’s value is null). Neither the application nor the framework can change this information (it is protected). It seams that somewhere, TopLink code did not handle properly threads safety and alter it.
    -     The fact that changing application execution timing (by turning logs on/off) corroborates this.
    A TAR has been opened on metalink but the case is very hard to reproduce…
    Did someone have encountered similar problems before ?

    Passing the Data class to the ExpressionBuilder constructor is normally reserved for parallel expressions. TopLink does not handle these expressions in the same way. It does not check same things on them and expect a root ExpressionBuilder to be left without class. TopLink sets the class on a root ExpressionBuilder only on internal clones for a temporary usage. I am afraid of side effects. Did somebody have some return off experience on this?
    I don’t see what using named queries will change in this case, but I will try. We have used named queries in the past but; our experience show clearly that using named queries is slower and less reliable (using a string to identify the query is one more source off error for developers).
    Here, the main problem is that changing anything can remove the error but, without an explanation on its origin, there is no real warranty.
    Thank you.

  • .rdl file for ssis package execution reports.

    Can I get a .rdl file for the SSIS Packages execution report  which shows execution timing status and etc.. .where it stores (location) and possibility of the Stored procedure for the .rdl file

    Not sure where the SQL Server is storing the .rdl file for the above mentioned reports. But if you just want to get summary of ETL execution you can use something similar to below query and create your own report in SSRS.
    SELECT e.executable_id AS [ID] , CASE es.execution_result when 0 then 'Success' when 1 then 'Failure' when 2 then 'Completion' when 3 then 'Cancelled'  END AS [Status] , ex.folder_name AS [FolderName] , ex.project_name AS [ProjectName] , e.package_name AS [PackageName] , CONVERT(datetime, es.start_time) AS [StartTime] , CONVERT(datetime, es.end_time) AS [EndTime] , CAST(es.execution_duration AS float)/1000 AS [Duration]FROM catalog.executables e INNER JOIN catalog.executable_statistics es ON e.executable_id = es.executable_id AND e.execution_id = es.execution_id INNER JOIN catalog.executions ex ON e.execution_id = ex.execution_id  AND es.execution_id = ex.execution_idWHERE package_path = '\Package'ORDER BY StartTime DESC
    More info can be found
    here.

  • Using asynchronous timer for data flow control

    Hi all,
      I am using system sleep to control the data flow (some digital lines and analog output). The pseudo code is something like this
    Sleep(150);
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to another digitla line     
        #pragma omp section
          Sleep(2); // sleep 2ms
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to one channel
        #pragma omp section
          Sleep(1); // delay 1ms
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to another channel
        #pragma omp section
          Sleep(11); // delay 11ms
    // ... other stuffs
    I am running windows XP and I know it is not possible to get realtime control but  I want a as precise timing as possible. Above code is not perfect but it works 95% of times. I just read an article about using the asynchronous timer to control the time delay. I try that idea with the following code frame
    int CVICALLBACK ATCallback(int reserved, int timerId, int event, void *callbackData, int eventData1, int eventData2)
    if (event==EVENT_TIMER_TICK)
    int *nextdelay = (int *)callbackData;
    SuspendAsyncTimerCallbacks();
    if (timerId>=0)
    double time;
    if (*nextdelay==0) time=2.0;
    else if (*nextdelay==1) time=1.0;
    else time=12.0;
    SetAsyncTimerAttribute(timerId, ASYNC_ATTR_INTERVAL, time);
    if (*nextdelay==0)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to another digitla line
    *nextdelay++;
    else if (*nextdelay==2)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    *nextdelay++;
    else if (*nextdelay==3)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to another channel
    *nextdelay++;
    ResumeAsyncTimerCallbacks();
    return 0;
    void main(void)
    int n = 0;
    int timeid;
    timeid = NewAsyncTimer(120.0/1000.0, 3, 1, ATCallback, &n);
    But it doesn't work. There is no compilation and runtime error but the timing just not right. I wonder do I have to suspend the timer in the callback function when I reset the delay for next call? If I do so, I am worry if it will apply too much delay (since I suspend and resume the timer in the delay) so it will cause even worse timing. But if I don't suspend the timer before I reset the time, what happen if the code running in the callback function not finished before the next callback arrive. It is quite confusing how to use asynchronous timer in this case. Thanks.

    Yeah, unfortunately the 6711 doesn't have clocked digital I/O.  There are only two counters anyway so even if you could use them to generate your signals you wouldn't have enough (*maybe* something with the 4 AO channels and a counter depending on what your output signals need to look like?  The AO channels can output "digital" as well if you write 0V or 5V only).
    A PCI DAQ card which does support clocked digital I/O and has 2 analog outputs is the 6221 (or if you could use PCIe the 6321 is a more updated version with two extra counters and some additional functionality).
    If there isn't a way to implement clocked outputs afterall, one thing you could do to make your code a little more efficient is to consolidate the writes.  You can put your digital lines into a single task and write them at ocne, and you can put your analog channels into a single task and write them at once as well.
    I'm not sure about the callback issue, you might find some more help in the CVI forum.  I don't think it's going to solve your underlying problem though as ultimately the execution timing of your software calls is at the mercy of your OS.
    Best Regards,
    John Passiak

Maybe you are looking for

  • How to connect a MBP to a BENQ external monitor using a HDMI cable and a HDMI to mini display adapter?

    Hi, I have just bought a brand new HDMI cable and HDMI to minidisplay adapter  and tried to connect my Macbook Pro up. The external display knows it is there but it is not getting any signal. I have tried on another TV and it also says no signal and

  • Unable to connect to Page Server when viewing Crystal Report

    Have just moved from Crystal Enterprise 10 to Crystal Reports Server XI R2 and encounter the following error when attempting to view an instance of a report in Crystal Reports format: CrystalReportViewer The Page Server you are trying to connect to i

  • Non Valuated - Sales order costing

    Hello All, We are planning to use Non Valuated - Sales order costing for our client. My understanding is as follows :- 1. Production order is automatically created from Sales order created (for ex item 010 - Material X) : Production order 1 2. Sub- p

  • ALE / EDI configuration scenario

    Hi, this is my scenario. we are using a many edi partners with the same outbound and inbound partner profile. Example. Partnertype: KU Partner: Z1 Outbound-Idoc: MATMAS, ARTMAS, INFREC Partner: Z2 Outbound-Idoc: MATMAS, ARTMAS, INFREC Partner: Zxxxxx

  • LCDs and Sunlight

    Hi. I once heard that it is bad to have an LCD or CRT in direct sunlight (aka, it does permanent damage to it for some reason). Does anyone know if this is true? -Eric