SeqContextCVI - do I need it for every test?

Assum there are 5 tests in the TS sequence.
Assume that each of the test requires access to the TS.
Question: Does every test has a different handle? and if so, I guess I must "handle" it to the CVI via a parameter like:
void __declspec(dllexport) __stdcall testNumLimit(CAObjHandle seqContextCVI, double *measurement,
char reportText[1024], short *errorOccurred, long *errorCode, char errorMsg[1024])
Will it work if I only do it in the first test, store the seqContextCVI as a global veriable and use it in the other 4 tests?
Thanks
Rafi

Rafi -
ActiveX/COM objects are reference counted, i.e. when the last reference to the object is released, the object is destoyed (memory deallocated).
In CVI, an CAObjHandle represents a reference to an object. When TestStand creates a CAObjHandle parameter to pass to a code module, CVI adds a COM reference to the object. When TestStand releases the CAObjHandle using CA_DiscardObjHandle, CVI releases the reference.
In a code module, if you want to maintain a handle that is passed to you and the caller releases what they pass, you must get your own CAObjHandle using the CVI function CA_DuplicateObjHandle. You are also expected to properly and timely call CA_DiscardObjHandle on the new CAObjHandle when it is no longer needed so the
object can be destroyed correctly, otherwise you have the potential for a memory leak because objects are no being released.
The problem with placing the object in a global is that you need to make sure that the release is done. If you are expecting a step later in the sequence to do it, what happens if the step is not called because of a error or a termination in the sequence?
Scott Richardson (NI)
Scott Richardson
National Instruments

Similar Messages

  • Need query for refresh test database.

    Hi,
    I want refresh production database to test database refresh using expdp dumpfile. Please provide steps this is the requirement
    This request is to refresh the Tecnomatix test database MFEM which is
    on the NATEST server wnmcdwtk.natest.gm.com. This database needs to
    be refreshed using an Oracle full backup dump file from the Tecnomatix
    production database MFEP which runs on the production NAENG server
    wnmcdds8.naeng.gm.com. The MFEM and MFEP databases are both at Oracle
    v10.2.0.4.

    Hi,
    You have posted to the wrong section of the forum. This forum us for Berkeley DB.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • Apple TV needs reboot for every use

    My second-gen ATV is connected to a Sony TV via HDMI. Every time I try to use the ATV it requires a hard restart by unplugging/replugging its power cord. How can I avoid this?

    I am having the exact same issue, my Apple TV (2) is plugged into my receiver, it won't even turn on without a "hard" reboot.

  • Home Sharing Needs Recreation for every use

    When I attempt to open a connection to my MBP the ATV2 won't "see" the computer until I close Home Sharing and then recreate a Home Share. This has happened repeatedly.
    Annoying waste of time.

    same here. all my shared content is kept on an external drive which goes to sleep after not being used. I'm thinking the ATV isn't able to see the connection when the drive is asleep.

  • Query for getting data for every quarter for financial year

    Hi,
    My problem is I need to get the data for every quarter for financial year and also I need data for every week for financial year.
    For example for financial year 2012-13, Apr2012 to Jun2012 would be Q1, Jul2012 to Sep2012 would be Q2 and so on. Total 8quarters should come upto Apr2013.
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.

    lakmesri wrote:
    Hi,
    My problem is I need to get the data for every quarter for financial year and also I need data for every week for financial year.
    For example for financial year 2012-13, Apr2012 to Jun2012 would be Q1, Jul2012 to Sep2012 would be Q2 and so on. Total 8quarters should come upto Apr2013.
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.
    How can you get 8 quarters within a year ? I'b be concerned here.
    lakmesri wrote:
    Hi,
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.
    First, that question is really not clearly asked. Second how could it be urgent ? You even did not tell us your Oracle version, did not show any tables descr, output sample nor any effort on your side to work on.
    Nicolas.

  • Need to display a field for every page

    Hi All.
    I am trying to display a field <?job_no?> for every page of that job.
    I mean if I select job no from 1 to 10. for Job number 1 the data can be printed in one page or several pages.
    But i need to show this Job number( which we show with BARCODE font) in every page of that job.
    This job is under G_JOB group. In general I used like below
    <?for-each:G_JOB?>
    <?job_no?>
    <?...?>
    <?...?>
    <?...?>
    <?...?>
    <?...?>
    <?end for-each?>
    This is getting printed in first page only. If I put it in header, of RTF file, it is ok if I selected only one job number. But if I select for n number of jobs it is not geting displayed.
    Please help.
    Thanks Vasa.

    Vasa,
    Try this:
    <?for-each@section:g_job?>
    <?job_no?>
    <?start:body?>
    <?data?>
    <?end for-each?>The "start:body" makes everything before that a page header.
    Kurz
    Edited by: Kurzweil4 on Feb 7, 2011 1:15 PM
    Added @section. This will reset the header region for each job.

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • Do I need a copy of DSC run-time for every machine?

    Do I need to purchase a dsc run-time engine for every machine that will be running stand alone executables.

    Yes if you wish to use the DSC features like the Engine, logging, alarming, etc.
    Regards,
    Khalid

  • Need to display days for every "X" weeks

    I have start and end dates, along with specific days of the week that I'm outputting.
    However, I need to display them every "X" week but I'm not sure how to do that.
    For example: show Monday, Wednesday, and Friday for every 2 weeks (or every 3, 4,5 weeks).
    Can someone shed some light?
    TIA

    Another option, depending on what you are really trying to do.
    Loop from day A to day B.
    If current itteration of the day is a designated day of the week [dayOfWeek(currentDay)] do one thing, else do another.
    If current itteration of the day is the end of the week [I.E. dayOfWeek(currentDay) is 7] then break the display to a new week.
    There are probably other ways to do this as well.  The date time functions could probably give you some ideas.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_05.html#1098968

  • Can i install Adobe Premiere Pro 7 -AND- Premiere CS4 TOGETHER on XP?? NEED THIS FOR TESTS!!

    Hello volks, i have a question.
    I want to install Adobe Premiere 7 AND Adobe Premiere CS 4 TOGETHER on Windows XP.
    I need this for testing somethings.
    Is this possible, or make this more problems i need??
    Thank you a lot for help!
    Best regards
    Wanderer

    Install 7 first and then CS4, otherwise you will run in all kinds of mysterious problems. If you already have CS4 installed, first deactivate, uninstall, run Clean script several times, rebooting in between, install 7, install CS4, activate and run the updates.

  • Do I need to buy the OS x Mountain Lion for every computer i own?

    Do I need to buy the OS x Mountain Lion for every computer I own? 
    Or is there a certain limit of computers I can upgrade.

    As long as you control the computer (wife, children) you can share.  But only the AppleID that bought ML can update it.

  • TS1702 Whenever i click the link for a great app i found, to go to the app-store, the app store reply is " could not complete your request" this happen for every app link that i persue! Need help

    Whenever i click the link for a great app i found, to go to the app-store, the app store reply is " could not complete your request" this happen for every app link that i persue! Need help

    Try signing out of your account and then sign back in and see if that helps.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try again.

  • Continuation: need data grouped for every week

    SELECT * FROM aetnah_file_emp_cust_hist
    WHERE pctl_employee_seqnum= 133774This query returns too many rows.
    Now my requirement is that I need to get the most recent contrib_amt from this table for every week based on date column CTL_INS_DTTM.
    This column CTL_INS_DTTM stores data about when a row wass inserted into this table.
    pctl_employee_seqnum CTL_INS_DTTM(MM/DD/YYYY) contrib_amt
    133774 01/01/2009 100
    133774 01/02/2009 200
    133774 01/03/2009 300
    133774 01/04/2009 400
    133774 01/05/2009 500
    133774 01/06/2009
    133774 01/07/2009 700
    133774 01/08/2009 800
    133774 01/10/2009 900
    133774 01/12/2009 1000
    133774 01/13/2009 1100
    133774 01/14/2009 1200
    I will need 52 columns (1 year = 52 weeks) totally and the most recent data for each week.
    Ex:
    Desired output:
    01/07/2009 01/14/2009 01/21/2009 01/28/2009
    700 1200 NULL 200
    SELECT pctl_employee_seqnum, CTL_INS_DTTM, contrib_amt
      FROM (
              SELECT pctl_employee_seqnum, CTL_INS_DTTM, contrib_amt, ROW_NUMBER() OVER(PARTITION BY TO_CHAR(CTL_INS_DTTM, 'WMONYYYY')ORDER BY CTL_INS_DTTM DESC) RNO
                FROM aetnah_file_emp_cust_hist
               WHERE pctl_employee_seqnum= 133774
    WHERE rno = 1This code above is doing that but I need to transpose this row wise data into column wise as mentioned on Desired output.
    Total # of columns:52
    Apologize for opening a new thread.....please help on this transpose issue
    Thank You All

    Hi,
    TO_CHAR (ctl_ins_dttm, 'WMONYYYY') will result in 59 or 60 groups per year, since all months (except February in common years) have (incomplete) 5th weeks.
    If you want 52 equal-sized groups, then TO_CHAR (ctl_ins_dttm, 'WWYYYY') will get you closer. (You'll still have an incomplete week 53.)
    To pivot those rows into one column, you can do something like:
    SELECT  MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '01' THEN contrib_amt END)   AS week_01
    ,       MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '02' THEN contrib_amt END)   AS week_02
    ,       MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '03' THEN contrib_amt END)   AS week_03
    ,       ...If you want data (like "01/07/2009") as the columns headers, then you'll have to use dynamic SQL.

  • Need to referesh my jspx page for every 2 sec

    Hi!
    I am using jdeveloper 11.1.1.5
    I need to referesh my jspx page automatically for every 2 sec. Is it possible to do? If so pls help me to fix it?

    Thank you santhosh!!
    As you said i had dragged and dropped my location vo as a af:table.,
    I had dragged and dropped my poll component and tried to referesh my VO.,
    In my PollListner i had written this querry
        public void refreshEmployeestable(PollEvent pollEvent)    {
                // Add event code here…
                BindingContainer bindings =   BindingContext.getCurrent().getCurrentBindingsEntry();
                OperationBinding operationBinding = bindings.getOperationBinding("Execute");
                Object result = operationBinding.execute();
            }I had made some updates to my LocationVO in my DB., But the changes doesnt affect my VO., I had set the default interval time to 5000 for my poll.,

Maybe you are looking for

  • Burned DVD video looks like jerky-  This did not happen before!

    Hi all, I have used I DVD before with great results! I have done several DVD's and each of them have looked great and smooth. I am using an HD camera and sharing to Itunes in the high resolution setting. The movie when played on my apple tv looks smo

  • Why do I receive error -1073807339 VISA Write

    I have a LV app built using LV2010 SP1 on a WinXP 32-bit machine.  The app uses VISA to communicate serially through a RS232 to USB adpater to a pump.  I can run the compiled app (exe) on another Win XP 32-bit machine without error.  But the app gene

  • IE8 and Spry vertical menu bar

    The spry menu bar has disappeared in IE8, still works fine in Firefox, and did in IE7: http://jimgreenrealty.com/Test.html What needs to be done to get it working again?  Thanks,

  • APIs Flags on UCCX9 for time of day

    Hi, I was discussing UCCX and our upgrades to V9 for a few of our customers with a Voice CCIE at an event a few days ago, and was explaining that  our customers found the configured time of day and holidays  in scripts was very restricting. They want

  • RE: How to monitor who has what service objectconnection?

    We ran into this problem, specifically because we are using a dbsession connection pattern and the dba's did not like loosing control over connections. We have 8 subsystem, each with a dedicated connection that is shared across multiple users. We als