Any Resources for Learning Object Reference in TestStand?

Hi All,
I have been using Active X servers in TestStand for several years and now some of the newer stuff I am being supplied with is Dot Net objects. Does anyone know of somewhere to learn the correct way to use object references in TestStand. I don't understand when you should create a new object  vs just using an existing object reference. I also would like to understand how to use an object reference variable.
I looked at the TS examples, but there is not an explanation. 
Any ideas?
TIA,
Jim

Jim,
You may try reading through the NI TestStand Advanced Architecture Series, specifically Chapter 2: Using the NI TestStand Object Model. These may shed some light on the issue.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
http://www.ni.com

Similar Messages

  • Any suggestions for learning measurement studio with c#

    Hi,
    I am just about venture into learning measurements studio with the C# language with limited knowledge of object orientated programming. I have a very primitive understanding of object orientated language delphi and know some Labview. Can anyone suggest any resources for teaching me the basics so that I can get a grasp how to program in C#. Essentially I just wish to write to digital channels amd analogue channels of a DAQ card in a certain timing sequence.
    Thanks in advance
    Jonathan

    Hello Poopy Head,
    There are some resources that can get you started programing your DAQ device. You can access the Interactive tutorials.
    VIs from the interactive tutorial are zipped and attached below.
    good luck
    Attachments:
    DataAcquisitionInCSharp.zip ‏147 KB

  • What are the best resources for learning JSP?

    In your experience, what have been the best resources for learning JSP? I am new to this, and so far have been plugging away at a "Dummies" book. Hopefully there are other inexpensive ways (I checked the book out at the library), to learn it, and possibly even less boring (though I doubt it). I can deal with the boring, but I was wondering if I was going about learning it the best way.

    Hi ..
    GO to website www.Apache.org
    down load Apache tomcat server .
    install it ...
    Go to sun site
    c and download jsp tutorials ...
    Go to
    (www.coreservlets.com)download book core servlets
    u can find lots of nice books supported by sun on sunwebsite ...
    Now u r equipped ....
    start doing everything (R &D) on server ..
    Join This JSP forum and ask any thing u didnt got ..or learn or get confused..
    I thing once u go through this ..it will do all what u want
    Hope it helps
    Best of Luck :)
    regds & take care

  • Some good resources for learning Unity scripting in C#.

    Title said evrything.Recomend me some good resource for learning scripting in Unity3d for C#.
    But because i write on C# for year and half i really want to lessons be more about new features for scripting in C# in Unity,then introducing some basic features in C#.

    Unity webpage provides best tutorials for learning Unity, including C# scripting.
    http://unity3d.com/learn/tutorials/modules/beginner/scripting

  • Close reference needed for step object reference open? If so, how?

    Hello,
    We are using an activex method call to open an object reference to a step and programatically rename it.  This is done many many times during our test run, thousands.  We ran into an "out of memory" problem we had never seen before during a 72 hour test run, and in hunting down any possible memory leaks, I am wondering if a corresponding close is needed for the step reference open we are doing, and how.  I have hunted around the different methods/properties, and can't seem to find if there is a step reference close.  I have attached the specify module screen of the activex call which opens the step reference.
    Thanks for any replies
    David Jenkinson
    Message Edited by david_jenkinson on 06-11-2007 05:07 PM
    Attachments:
    step reference specify module.png ‏25 KB

    Hi David,
    Setting a reference to nothing in TestStand will close it. However, if you are assigning a new value to the local it also frees the memory associated with the original value, making it so you don't need to assign it to nothing. I don't believe the source of the leak is in this step.
    Test Engineer - CTA

  • Pass object reference from TestStand to C#

    Hi,
    I have created a GUI in .NET which i invoke in TestStand (through a custom step type). User can enter a object reference teststand variable in the UI input expression box. So i need to get the object value in that variable and use it to call some .net functions. To get the values from expression box of UI and put in TestStand step variable i use:
             PropertyObject.SetValInterface("Step.TestStationObj", 0, tsexprTestStationObj.DisplayText.Trim()); To check the value in the step variable if i do:
             MessageBox.Show("TestStation obj after setting:",PropertyObject.GetValInterface("Step.TestStationObj",0).ToString());
    But i do not get any value. Guess it is null. Is this a correct way? My intension is to get the value corresponding to a teststand object reference and pass it to C#. The C# UI control is of type NationalInstruments.TestStand.Interop.UI.Ax.AxExpressionEdit

    Thanks Andy.
    I still get the error when i am trying to pass the object created from C# to Teststand. I have explained what i am trying to do. Kindly requesting your assitance on this issue.
    I have 2 classes in C# (code given below), I am trying to pass the object of "Counter" (c1) class from the "Mainfrm" to teststand. In teststand(counter.seq), I am trying to access the function "GetCount() and SetCount()". I have attached the snapshot of the error that i get from teststand.
    Class Counter
        private int count;
        public int GetCount ()
           return (count);
        public void SetCount(int _count)
           count = _count;
    Class Mainfrm : Form
        public Counter c1;
            private void Mainfrm (object sender, EventArgs e)
                InitializeComponent();
                axApplicationMgr1.Start();
                mEngine = axApplicationMgr1.GetEngine();
                currentFile = axApplicationMgr1.OpenSequenceFile(@"Counter.seq");
                pobj = mEngine.NewPropertyObject(NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Container, false, "", 0);
                pobj.NewSubProperty("Parameters.ObjRef1", NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Reference, false, "", 0);
                pobj.SetValInterface("Parameters.ObjRef1", 0, (object)c1);
                mExecution = mEngine.NewExecution(currentFile, "MainSequence", null, false, 0, pobj, null, null);
    Attachments:
    ErrorFromTestStand.JPG ‏28 KB

  • Find memory leakage when passing Object Reference from Teststand to vi

    I am using Teststand to call labview vi, and pass ThisContext of sequence to vi as object reference, but if I just loop this step and I can find the memory using keep increasing, how can I avoid the memory leakage inside the vi.
    see my vi, it is to post message to UI.
    Solved!
    Go to Solution.

    You should be using a close reference node to close the references you get as a result of an invoke. In the code below you should be closing the references you get from the following:
    AsPropertyObject
    Thread
    Close those two references once you are done with them.
    Also make sure you turned off result collection in your sequence or you will be using up memory continually for the step results.
    Hope this helps,
    -Doug

  • 1009 error for null object reference-how to fix/workaround?

    Hi,
    A while ago, with help on the forum, worked out a script (AS3) for a tween animation to demonstrate breathing in and out for an eLearning lesson exercise. There are buttons to pause and unpause/resume the animation.
    These pause and unpause/resume functions throw a 1009 error if the pause button is clicked at the moment that the tween is changing from expanding to contracting. So, most of the time, no error. But every so often, if clicked at the turning point, the 1009 error displays in debugging.
    The error points to the line:  _paused == null ? pauseAnimation():unpauseAnimation(); which is part of one of the pause functions. And the error also points to a conditional in a second pause function which is probably the beginning attemp to execute the script in it: if (_tX.isPlaying) {
    I have tried different ways of changing the script but cannot prevent the error. Any help would be appreciated.
    I've included the full pause function script below:
    // pause/unpause
    function pauseButtonClick2(e:MouseEvent):void {
        _paused == null ? pauseAnimation():unpauseAnimation(); error 1009
    // pause
    function pauseAnimation():void {
        // if Tween _tX is running
        if (_inhale) { //error 1009
            // stop the Tween       
            _tX.stop();
            _soundChannel.stop(); //soundChannel playing inhale sound mp3
             _exitButton.visible = false
            indexBtn2.visible = false;
            // record what is paused
            _paused = "tween";
        } if (!_inhale) {       
            _tX.stop();
            _soundChannel.stop(); //soundChannel playing exhale sound mp3
            _exitButton.visible = false
            indexBtn2.visible = false;
            // record what is paused
            _paused = "tween2";       
            else{
            // timer is running
            // stop the timer
            _timer.stop();
            exitButton.visible = false
            indexBtn2.visible = false;
            // record what is stopped
            _paused = "timer";
        _pauseButton2.visible = false
        _exitButton.visible = true;
        _exitButton.alpha = .5;
        indexBtn2.visible = true;
        //indexBtn2.alpha = .5;
        _resumeButton2.visible = true;
        //_resumeButton2.alpha = .5;
    // unpause
    function unpauseAnimation():void {
        // unpause accordingly
        switch (_paused) {
            case "tween" :
                _tX.resume();
                _soundChannel = _inhaleSound.play()
                break;
            case "tween2" :
                _tX.resume();
                _soundChannel = _exhaleSound.play()
                break;
            case "timer" :
                _timer.start();
                break;
        // reset what was paused
        _paused = null;
        _pauseButton2.visible = true;
        //_pauseButton2.alpha = .5;
        _exitButton.visible = false;
        indexBtn2.visible = false;
        _resumeButton2.visible = false;
    Error 1009:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at FLNav9exp_fla::MainTimeline/pauseAnimation()[FLNav9exp_fla.MainTimeline::frame6:305]
        at FLNav9exp_fla::MainTimeline/pauseButtonClick2()[FLNav9exp_fla.MainTimeline::frame6:300]

    I've been trying to fix, still unsuccessfully, so hopefully I've restored script to above (simply cut and pasted it from above) before adding your script.
    Got the following, which differs from original error locations:
    Attempting to launch and connect to Player using URL C:/Users/Stephen/Desktop/bejeweled(1)/flashinglights/latestfiles/exp/FLNav9exp-app.xml
    [SWF] FLNav9exp.swf - 1687237 bytes after decompression
    10 10
    BPM input: 10
    Minute: 1, BPM: 10
    Inhale/exhale cycle: 1
    a
    false
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at FLNav9exp_fla::MainTimeline/pauseAnimation()[FLNav9exp_fla.MainTimeline::frame6:317]
        at FLNav9exp_fla::MainTimeline/pauseButtonClick2()[FLNav9exp_fla.MainTimeline::frame6:300]
    However, each time I run and get an error, there is a different error line. But, one error line remains consistent:
    function pauseButtonClick2(e:MouseEvent):void {
        _paused == null ? pauseAnimation():unpauseAnimation(); error 1009: this line

  • Good Resources for learning Bash Scripting

    I know, I should probably be lectured for the fact that I'm a heavy Linux user who programs in a variety of languages, but is very limited when it comes to bash scripting itself.
    So, I've decided now is the time to learn. It seriously beats writing configuration scripts in C, I think (that's not really what C is used for these days...).
    So, anyone know of some good (preferably free) resources on learning Bash?
    Edit:
    OR if someone has any suggested alternatives (e.g., Python as a replacement?), do tell.
    Last edited by holland01 (2012-09-07 23:09:11)

    sisco311 wrote:Greg's Wiki
    +1
    See also: https://bbs.archlinux.org/viewtopic.php?id=103851 & https://bbs.archlinux.org/viewtopic.php?id=114288

  • Websites, books, and other resources for learning to use Premiere Pro

    What websites, books, tutorials, and other resources have you found useful for learning to use Premiere Pro?
    I want to make sure that we have a comprehensive list of good resources for Premiere Pro. See this page for a list of high-quality After Effects resources that I put together; I want something like this for Premiere Pro.
    I'll start. In no particular order, here are some resources that I've found valuable:
    this forum (of course)
    Premiere Pro Help documents and Help & Support pages in several languages
    Community Help search for Premiere Pro
    Getting started with Premiere Pro by video2brain
    Premiere Pro CS5: Learn By Video by video2brain
    video tutorials on Adobe TV and Video Workshop
    Premiere Pro CS5 Classroom in a Book
    Premiere Pro team blog
    Premiere Pro team Facebook page and Twitter feed
    PPBM5 (Premiere Pro CS5 benchmark) for performance information
    Best of Premiere Pro by Eran Stern

    > I see mention above of Lynda.com, but either missed Total Training, or perhaps they have merged?
    I didn't mention Lynda.com.
    And, no, Total Training and Lynda.com certainly haven't merged.
    Total Training has some good Premiere Pro stuff, but it's not the first place that I'd point someone for Premiere Pro.

  • Recommended resources for learning how to use Motion?

    Specifically for learning the ropes of how to do kinetic typography, are there any recommended books or video tutorials?

    launch iTunes, goto the Podcast section and search for
    MacBreak Studio
    and
    CreativeCow
    for me excellent sources. It's no 'from zero' content, more focussing on one issue/aspect, but teaching 'drive by' many, many basics and specialities. as a non native English speaker, I do appreciate the perfect audio/speaking ...

  • A list of Resources for Learning Lightroom

    I made this page in my own 'photoblog' to tell about many of the fine resources I have rounded up for learning Lightroom:
    http://www.eleanorstravels.com/photoblog-issue16.htm I can't remember when we've had so much when program first comes out. Martin Evening's book is truly excellent. Let me know if there are others I should add.

    Thanks, Eleanor, but you seemed to have left out blogs by some of the regular posters here. I won't list them, becuase I will leave someone out. Also, the consensus seemed to be that the Jack Davis presets cluttered up more than they helped.
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);">John "McPhotoman"</span>
    <font br="" /></font> color="#800000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8;
    <br />Canon DSLRs

  • Insufficient resources for learning Portlets

    There is very less study material on the sun website or otherwise for learning portlets. I have just started working on Portlets, and am facing difficulty due to this. If anyone can suggest me a good book to get statrt with, I would be grateful
    Most of the resources are vendor specific. primarily Weblogic, and Websphere, I am using uPortal which complies with JSR 168.

    I have actually been following Unity for a few months. It looks pretty **** nice to say the least but the $600.00 for the basic is a little steep so I haven't committed just yet. I am currently using Cocos2d (http://code.google.com/p/cocos2d-iphone/) to play around with making 2d games and have been going though the excellent tutorials for SIO2 3D engine (http://www.sio2interactive.com/HOME/HOME.html). SIO2 is shaping up to be a really nice engine with superb integration with Blender (which I am also slowly learning at the same time).

  • Online resources for learning PHP/MySQL?

    I would really appreciate knowing which online resources people really have used and found valuable for learning PHP/MySQL.
    And I'm well aware that Google is my friend - I'm looking for personal recommendations.  :-)
    Thanks very much in advance,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate Worksheet

    Well, I got some good websites
    www.w3schools.com
    www.phpeasystep.com
    www.phpfreaks.com
    And a lots! Google baby, google.. But as what David says, not all websites is up to date, you have to assure that. Other option, you may refer to PHP books. There's a lot too.

  • Noob Question 19: Resources For Learning Videography

    ...or whatever you wanna call it. I need some suggestions for books/web sites that can teach me more about video production... not just editing in Premiere, but stuff like lighting and so on. For example, a friend of mine suggested a light box and it clearly helps him a -lot-. I'd like to know where to get them, what's a good deal, how to use it, and so on.
    Ideas for learning how to film properly?
    Thanks!
    ---JC

    Hi Jim,
    Looks great. I may look at the local community college for a similar course. In the mean time, I was hoping for something like
    'Using shop lights, cardboard and duct tape for key lighting just like the pros.'
    Seriously. That's about my budget. So I'll shut up now.
    Thanks,
    ---JC

Maybe you are looking for

  • SAP HR certification

    Hi Experts, I am in SAP HR module for the past 2 years.I am preparing for the certification for the same.If anyone has the idea regarding the same please send me the thorough details.I have the hardcopy of THR10 and THR12.Apart from these materials h

  • Sharepoint Revision History in Explorer View - Is it possible?

      Hello, thank you in advance for any help.  We are beginning our deployment of SharePoint and many of our "hard converts" have love the ability to use "explorer view" to manage documents.  On question has arose though.  When in explorer view they ar

  • JDBC to JDBC in PI 7.1

    Hi I  need to work on JDBC to JDBC adapter scenario, Can anyone send me the Blog which explains with screen to develop, Thanks PR

  • Dump Core on Service Timeout

    Hello, is there a way to configure Tuxedo such that it dumps a core on a service timeout? Once in a blue moon we experienc a service timeout on a large production system. Unfortunately we would need to turn on a massive amount of logging to determine

  • Is there an alternative web design program to Adobe Muse that accepts .psd files?

    I already frequently use Dreamweaver and Fireworks for web design.  I do graphic design in Photoshop and export it to Adobe Muse to make websites.  I've also used Word Press and Joomla.  I love Muse; however, it forces me to flatten the psd layers fi