Multiple Execution of VIs in TestStand

Hi everybody,
I'm trying to run multiple VIs with TestStand. Right now I'm using the
ActiveX command : Engine.NewExecution to start multiple Sequences which
contain 1 VI. To communicate between these Sequences, I have to use
StationGlobals. Is there a possibility to use one Sequence File with
all my Subsequences and LabVIEW steps, that could be called once and
then executes the steps at the same time, so that I don't have to use
StationGlobals and different Files.
Thanx Jens
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Jens,
If you are calling VIs of the same name and if those VIs display their
front panel, those VIs cannot be set to reentrant. However, we made a
step type that works around this issue. You can download an example
named, "Step Type that Executes LabVIEW Code Modules in Parallel" from
the NI examples database at:
http://digital.natinst.com/explprog.nsf/web%2Fswgrp?
OpenView&Start=1&Count=500&Expand=7.1#7.1
This example also requires TS 1.0.1. If your VIs don't display their
front panels, then you should make your VIs reentrant as I mentioned in
a previous message.
You can always get to the examples DB from www.natinst.com/support
Paul
In article <7sg52h$77c$[email protected]>,
[email protected] wrote:
> Thank you very much,
> you are rig
ht, I want to execute the same vi twice with TestStand (I'm
> already using StationGlobals for the communication). I will upgrade
> then the next days.
>
> Best Regards
> Jens
>
> In article <7sd87g$3bj$[email protected]>,
> [email protected] wrote:
> > Hi Jens,
> >
> > You will need to use station globals or a file to communicate. Each
> > execution makes its own runtime copy of FileGlobals and these
runtime
> > copies are not shared between the different executions.
> >
> > I'm not sure if you are attemption to run VIs of the same name at
the
> > same time. If so, you can set those VIs to be Reentrant. But you
> > will need to upgrade to TestStand 1.0.1. You can upgrade at
> > www.natinst.com/advisor. It is a free upgrade.
> >
> > Thanks,
> > Paul Mueller
> > National Instruments
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.

Similar Messages

  • Multiple Executions Plans for the same SQL statement

    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.
    Below is the awrsqrpt's output for your reference.
    WORKLOAD REPOSITORY SQL Report
    Snapshot Period Summary
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
                    Elapsed
       SQL Id      Time (ms)
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
    TEST_BATCH_DT = (:B1 )
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
    Plan 1(PHV: 2960830398)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    Plan 2(PHV: 3834848140)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    Full SQL Text
    SQL ID       SQL Text
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )Your input is highly appreciated.
    Thanks for taking your time in answering my question.
    Regards

    Oracle Lover3 wrote:
    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.If you're using bind variables and you've histograms on your columns which can be created by default in 10g due to the "SIZE AUTO" default "method_opt" parameter of DBMS_STATS.GATHER__STATS it is quite normal that you get different execution plans for the same SQL statement. Depending on the values passed when the statement is hard parsed (this feature is called "bind variable peeking" and enabled by default since 9i) an execution plan is determined and re-used for all further executions of the same "shared" SQL statement.
    If now your statement ages out of the shared pool or is invalidated due to some DDL or statistics gathering activity it will be re-parsed and again the values passed in that particular moment will determine the execution plan. If you have skewed data distribution and a histogram in place that reflects that skewness you might get different execution plans depending on the actual values used.
    Since this "flip-flop" behaviour can sometimes be counter-productive if you're unlucky and the values used to hard parse the statement leading to a plan that is unsuitable for the majority of values used afterwards, 11g introduced the "adaptive" cursor sharing that attempts to detect such a situation and can automatically re-evaluate the execution plan of the statement.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Problem with deploying FPGA host VIs using TestStand deployment utility

    I am using a PCI-7831R FPGA to control an automated test fixture.  I have several host VI's that I am calling from TestStand (4.2.1) in order to control the 7831R.  The host VI's that TestStand calls are setup as sub-VI's and are used for various things such as opening an FPGA reference (which is bound to a strict type def), downloading and executing the files on the 7831R, reading writing to controls, and finally closing the reference.  In the sequence file, I am passing the reference values as a file global so that the host sub-VI's can communicate correctly.  I have all functionality working correctly in TestStand on my development PC.  When I go to deploy this to a production PC, I get errors when the sequence file trys to load the first host VI.  The error basically states that the VI is broken - try to open and run it (which I can't because I have no development license on the production PC).  I am currently trying to deploy this to another development PC to see if I can track down where the VI might be breaking. 
    I have included the lvbitx and strict type def control that the host subVI's reference in my deployment files.  I can't think of anything that I might be missing.  Is there any good documentation on exactly which files I need to include in the deployment when using FPGA Host VIs (the TestStand reference manual is pretty vague at best)?  It seems that any documentation that I read says the TestStand deployment utility will analyze all VI dependencies (other than shared variables).  On a side question, is the strict type def considered a shared variable?
    Has anyone successfully deployed a sequence that calls host VI's?  Any help would be greatly appreciated.  If any of the above needs further clarification please ask away and I will be happy to give more details. 
    Thanks,
    Mike

    Hi hawkstringer
    Do you encounter this problem using a deployed version of your code? Note that the subject of this topic is about deploying an FPGA application.
    I forgot I posted here, in the mean time I've managed to deploy my application. I think my problem was solved when I included all necessary drivers and components (but I'm not absolutely sure). I included the following:
    NI IVI Compliance Package
    NI FlexRIO
    NI PXI Platform Services Configuration Support
    NI R Series Multifunction RIO
    NI DAQmx Core Runtime
    NI DAQmx MAX Configuration Support
    NI RIO
    Good luck!

  • SM21 log Lock triggered against multiple execution

    Hi All,
    Please refer to the log in SM21 XI.  I have checked SM12 , no locks displayed. Please advise on how to analyze this log further.
    04:10:26 sapxi_XP1_*  DIA PIAFUSER Lock triggered against multiple execution: ID: C*************************
    Regards
    Shiva

    Dear Shiva, dear Daniel,
    the technical background for introducing  this system log entry was to deal with parallel execution of one message. For details please refer to SAP Note 1147287.
    Best regards,
    Harald Keimer

  • How do you create multiple execution windows for a custom opterator interface

    I am starting to create a custom operator interface for TestStand 3.5 using Labview 8.0.  This is my first exposure to custom operator interfaces (and ActiveX).  The example operator interfaces have only one execution window that changes based on the executions combo box.  My sequence is going to be run with the parallel sequence model (2 test sockets).  So I want my custom operator interface to have 2 execution windows, one for each test socket.  How can I do this?  I created a second execution window but it just mirrors the first execution window. 

    Hi, All:
     With the similar approach, I create a multiple window user interface with CVI. Although it can run, the Execution view doesn't display
    anything while execution. In my user interface, there is an applicaiton manager resident in Parent form, and every child forms has
    itsown Exection view and Manager.
     Referred to the C# sample, in the function rivate void DisplayExecution(Execution execution)
       if (executionForm == null) // execution is not in a form, make a new form
        executionForm = new ExecutionForm(this, this.axApplicationMgr, execution);
        this.mChildFormsKeyedByViewMgr.Add(executionForm.GetViewMgr().GetOcx(), executionForm);
        SetNewChildFormLocation(executionForm);
     I guess the execution form "hook" the exectuion view manager via Add(), so the exectuion view can be updated properly.
    And according to reference manual of teststand, it mentions that "The application sets the ExecutionViewMgr.UserData property to
    attach a handle, reference, or pointer that represents the window." But when I try to utilize this method, I got 2 problems:
    1. How to get a window handle of a CVI panel? As execution view are resident in child panels, so I may need the window handle of
     individual child panels.
    2. Even the window hanlde is gotten, how can I convert it to a VARIANT Type? According to the function panle of
    TSUI_ExecutionViewMgrSetUserData (, NULL, ), the last parameter is a "VARIANT".
    Any comments or instructions for my assumption?
    Thank you for your help.

  • How to restrict multiple executions of a report by same user

    During month end closing user execute multiple sessions of the same report. In order to improve system performance want to put restriction on such executions espcially for system exhaustive reports. So user can execute report second time once first job is over.
    In background this can be done but how to achive this for foreground jobs. Kindly resolve.
    thanks
    anya

    Hi Eileen,
    Please go through these threads
    Reporting authorization
    Authorisation Variable
    Creation of variable in BEx from user authorization
    Authorization variable
    Variable filled Authorizations
    Khaja

  • Alternate execution of VIs

    Hello.
    Please,can you tell can I make some VI to execute one by one in main VI.
    For example,we chose option "Start test" and then DAC Voltage begins to execute,after that it writes some data to database,then next VI goes and so on.
    After all VIs executed we have report based on database with the results this VI's  work.
    Thank you!

    You have a lot of options. The simplest is just to have error in/error out connections on each of your subVIs. LabVIEW is a dataflow language and by wiring error out to error in of some other subVI, the dataflow connection enforces execution order. A sequence structure does the same thing but doesn't need dataflow. I'm not a big fan of sequence structures though. A more sophisticated aprroach would be a state machine. There are shipping examples of this and templates of these are part of the design patterns you can choose from when you select File>New.

  • Will execution of VISA tasks with one DAQ (Dev1) in one VI block VISA tasks with the second DAQ (Dev2) in a second VI?

    Hi all,
    I have two functional VIs.  One loops a set of read and write tasks with Device 1 (NI USB-6008).  The second loops a set of write tasks with Device 2 (another NI USB-6008).  VI 2 has a massively slower timescale than VI 1, meaning that it must run in a separate loop.  Otherwise, VI 2 was created by copying and modifying VI 1, and shares variable names with it (though not, for example, global variables).  Both VIs are intended to run at the same time on the same PC.
    However, if VI 1 is running at the same time as VI 2, none of the read or write operations to Device 1 in VI 1 are executed---but the VISA read and write operations to a serial device do work.  Upon stopping VI 2, all the functions in VI 1 work fine.
    Though I configured the channels for the tasks using the DAQmx GUI, I execute the tasks using the DAQmx read and write commands, and have properly set the "create task" and "stop task" VIs outside the beginning and end of my loop, respectively.
    Does anyone have suggestions for what might be causing this?  My thoughts so far:
    a. Perhaps there is some conflict in variable names in memory between the two VIs?
    b. Can LabVIEW for some reason not read and write two devices from two separate VIs? 
    c. Do I need to avoid using DAQmx to configure these tasks (some sort of memory conflict)?
    I know I can make it all work if I combine everything into one massive VI, but for my application it is far easier and better to have them in two separate VIs.
    Thanks in advance for your help!
    Solved!
    Go to Solution.

    In case anyone was wondering, I found the solution:
    When I copied the original code to a new VI, it turns out that the timed loop structures in the new VI had the same object name in LabVIEW's execution structure as the timed loop structures in the original VI.  This was effectively preventing whichever VI was executed second from executing its timed loop.  (The serial read/write contined to work because it was in a different timed loop.) 
    I found this error when I ran the VI in highlight execution mode, and noticed that the "error" output on the timed loop flashed.  When I wired it into my error stream, I found error -808, which explained the problem above.
    I fixed it by right clicking on the timed loop, changing it to a while loop, and then changing it back to a timed loop and reconnecting any broken wires.  LabVIEW gave the new timed loop object a new name, and all was well in the universe.

  • Managing shared hardware along multiple executions

    Hi,
    I would like to know if there is a clean and efficient way to manage executions so they can access some shared test hardware in a FIFO method.  The test setup includes four units connected to an RF switch that selects which unit has access to a spectrum generator.  I would also like the executions to run independantly. I looked at the different process models shipped with Teststand 2013, but none seem to do exactly what I want.  The Batch Process model needs the UUTs to be tested as a group.  Does the Parallel Process model allow the sharing of test equipment between executions?
    Can this be done with the Sequential Process model by using specific synchronization steps like Lock or Notification?
    Thanks in advance for your help,
    Christian

    It uses the batch model but you can do the same thing with the parallel model or the sequential model.
    Also, if you name a lock with an * as the first character then it can be shared across engines.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Viewing a specific sequence execution belonging to a TestStand Workspace in LabVIEW Simple UI

    Hello,
    I have a TestStand Workspace which contains 3 sequence files : one master sequence which contains PreUUt, PostUUT..And two other slave sequences that are called from the main sequence depending of a given parameter (It means that during a whole execution only one slave sequence will be called).
    Using the TestStand Simple User Interface in LabVIEW, I want to show the completed execution screen of the slave sequence file called.
    The problem that LabVIEW shows the master sequence at the end of executions which didn't give details about the slave sequence steps' status.

    Thanks for the reply,
    I found that the record result is already activated as mentionned.
    To make it simpler, supposing that we have a sequence file which contains many sequence call modules, like the example in the attachement.
    At the end of the execution, I want to be able to view the status of all steps of "Sequence_2" for example.
    Attachments:
    Capture.JPG ‏26 KB

  • Do I need LabView to load VIs in TestStand ?

    Hello,
    I have TestStand 2012 installed on my machine and recently also installed LabView Runtime engine but do not have LabView Development license.
    When I try to call a labView Project and its VIs, I get an error message unable to load Project. On another machine where I have labView installed, for the same paroject and VI, I do not get any error message.
    Does it mean that I need to have LabView development license in order to call VIs. I always thought that run-time engine would be sufficient for such tasks where we are just calling VIs and not developing those on TestMachines.
    Regards
    Ricky

    Hi,
    thanks for suggestiong the possible solution.
    actually, I could not get it working, unitll I installed LabView (test verion), then I changed adapter settings and then I opened the project in LabView. After opening, it  loaded project in "MyComputer" and now I am able to see different VIs available in the project. I had to change paths everywhere in the project.
    I am unable to understand, what "MyComputer" in LV means? I am able to browse VIs but not in my actual hard drive but a virtual my computer created by LabView. I wish to work without LabView but the prerequisite to open project in  LV is hindering me to do it.
    The Error I get is Unable to load project when I try opening a VI (without Project being loaded in LV "My Computer".
    I do not know if something has to be changed by VI programmer or is it standard that virtual LV my computer must run on every maching?
    Regards
    Ricky

  • Problem en Multiple Numerci limit test sur teststand

    bonjour a tous,
    j ai développé sur Labview un simple programm avec un array ( cet array prend 3 chiffres qui sont 0, 8 et 24 )et j ai voulu appeler la fonction développée sur labview en Teststand et c est pour quoi j ai ecris un programm sur teststand et utilise " Multiple Numerci limit test "  sur steps MainSequence  ( en fait j ai utilise multiple numeric limit test parceque ma fonction Labview un array est et  comporte 3 chiffres ), et a Variables j ai declare un container sur  Locals.
    Problème: lors de l exécution  j ai reçu un error.
    cijoint j ai mis quelque foto du programm teststand
    ci dessous est mon programm Labview
    Je ne m y connais pas trop en teststand
    merci pour l aide
    Pièces jointes :
    Sequence.PNG ‏118 KB
    Sequence2.PNG ‏44 KB
    Sequence1.PNG ‏99 KB

    Bonjour,
    il ne s'agit à priori pas d'une erreur TestStand, mais LabVIEW. 
    En effet, le ring est coché avec sequential values, ce qui veut dire que tu ne sort pas 0,8,24 mais 0,1,2 Donc le test dans TestStand n'est pas bon. 
    pourquoi utiliser un container et pas un array dans TestStand?
    Rodéric L
    Certified LabVIEW Architect

  • Multiple executions of a query found in the ADDM Report

    Hi,
    I generated an ADDM Report on my DB for the time when the DB performance was very slow. Below are some lines from it:
    RECOMMENDATION 1: SQL Tuning, 15% benefit (28820 seconds)
    ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
    "725bgkkhqs73v".
    RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
    PLAN_HASH 2688602638
    select column1,column2 from table1;
    ACTION: Investigate the SQL statement with SQL_ID "725bgkkhqs73v" for
    possible performance improvements.
    RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
    PLAN_HASH 2688602638
    select column1, column2 from table1;
    RATIONALE: SQL statement with SQL_ID "725bgkkhqs73v" was executed 32 times and had an average elapsed time of 900 seconds.
    Can anyone help me out with the reason behind these repeated executions of the SQL query thus resulting in a avg elapsed time of 15 mins. Also, I could see that some queries ran on the DB even for 145,445,335 times, however the total time elapsed for executing these queries was only 0.000048 seconds.
    COuld it be because there was exclusive locks on those tables during the times there queries were getting executed or do I need to look at query tuning here? Kindly help.

    yeah. posting it here:
    select column1,column2 from table1;
    Plan hash value: 2688602638
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 4 (100)| |
    | 1 | HASH GROUP BY | | 1 | 77 | 4 (25)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID| column1 | 1 | 18 | 1 (0)| 00:00:01 |
    | 3 | NESTED LOOPS | | 1 | 77 | 3 (0)| 00:00:01 |
    | 4 | TABLE ACCESS FULL | column2 | 1 | 59 | 2 (0)| 00:00:01 |
    | 5 | INDEX RANGE SCAN | x_abc | 1605 | | 1 (0)| 00:00:01 |
    SQL_ID 725bgkkhqs73v
    select column1, column2 from table1;
    Plan hash value: 2947532035
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 4 (100)| |
    | 1 | HASH GROUP BY | | 41 | 1476 | 4 (50)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID | column1 | 14 | 252 | 1 (0)| 00:00:01 |
    | 3 | NESTED LOOPS | | 50 | 1800 | 2 (0)| 00:00:01 |
    | 4 | TABLE ACCESS BY INDEX ROWID| column1 | 3 | 54 | 1 (0)| 00:00:01 |
    | 5 | INDEX RANGE SCAN | X_abc| 1602 | | 1 (0)| 00:00:01 |
    | 6 | INDEX RANGE SCAN | XAK_def| 14 | | 1 (0)| 00:00:01 |
    Does this shed any light?
    Thanks in advance for all your help!

  • Multiple Executions of SDO_WITHIN_DISTANCE operator

    I use the SDO_WITHIN_DISTANCE operator in a loop, sometimes several thousand times in one execution of the code.
    I've discovered that if you use it in this manner oracle hits you with the error below after a couple of thousand iterations...
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [INSERT ANY SPATIAL OPERATOR HERE e.g. SDO_WITHIN_DISTANCE] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 73
    ORA-06512: at line 1
    ORA-06512: at line
    Just to prove it wasn't my code I set up a loop that executed a simple bit of spatial sql, increasing x,y co-ordinates by 1 on each iteration, after a couple of thousand of loops I get the above error.
    Has anyone seen this before.
    Incidentally, It also happens on few other operators too!!
    null

    Hi Philip,
    What version of Oracle Spatial are you using?
    Thanks,
    dan

  • Abort execution of VI from TestSTand

    I am trying to find an easy way to abort or terminate a called VI from TestStand. I am working on a system that controls machines and if something goes wrong I want a stop button that stops the VI immediately and runs a VI thats sends a stop signal to the machine.
    Event seems like it could work and I tried using GetTerminationStatus but I cant get it to trigger an event. I have only tried using ValueChange on both GetTerminationStatus and Sequence Context In.
    Is there a way to get a message popup to pop up and having VI:s running in the background? When the VI:s are done the message closes. If I push the button I want it to set a variable that triggers an event.

    Hi Peter,
    Here's a quick example of how to use the GetTerminationStatus VI.
    Unfortunatlly you can't generate an event in LabVIEW directly you will have to poll the TerminationStatus.
    This will detect someone pressing the Terminate button in the SequenceEditor or TestStand User Interface.
    I've also setup the Terminate Button in the VI to trigger a Termination in TestStand.
    Somethings to keep in mind.
    The difference between Abort and Terminate, is that Terminate will still run the Cleanup Group of any sequences.
    This is very useful to ensure everything shuts down correctly when something goes wrong.
    Hope this helps
    Simon Holman
    Software Engineer
    Certified LabVIEW Developer
    Certified TestStand Developer
    measX GmbH & Co. KG.
    http://www.measx.com
    Attachments:
    Example Abort VI.zip ‏19 KB

Maybe you are looking for

  • I need to do a clean install with Lion. How do I do this. I can't find any doc. to tell me the procedure.

    I need to do a clean install with Lion. How do I do this. I can't find any doc. to tell me the procedure.

  • Updating Extension:

    The first issue is that it takes forever for Extension Manager CC to check for the availability of updates for our extension. A minute or more. The second more important issue is that once Extension Manager recognizes that an update is available, and

  • IX2 not spinning down

    My ix2 has been running quite nicely for a long while now with 2 2tb drives in Raid 1. Recently I noticed it has stopped spinning down. It has gone through this before. I have not changed any settings other than keeping up with all firmware updates.

  • JSP file cannot locate beans

    I created a JSP file that calls a bean, I placed the bean in Web-inf/classes folder (I manually created classes folder because the application server didn't create it, bug). The problem is that my JSP page cannot access the bean, even when I modify s

  • Unable to import file from Backend in SAP Virsa AE 5.2

    hi, currently we are having AE 5.2 with SP11. when we go to Configuration tab -> Role -> Import role and give the role name which is in the backend and click on Import role, we are getting an error as " Action Failed". the role is existing in the bac