How sharing a COM object with severeal test dlls in teststand

I have several tests (dlls) accessing a DAQ board (not VI compliant) thanks to a COM object. I would like to keep one instance of this object, passing its reference to each test dll, instead of creating one in each test. How can I do that with TestStand?

You can do one of two things to store a reference to the COM object in the context of TestStand so that you can pass it to successive steps in order for them to all use the same object instance.
First, if you create the object in TestStand with an ActiveX Automation Adapter step, the method call to instantiate the object should return a reference to the object. If you designate an activex reference type local variable as the property to receive the reference during the creation operation, you should be able to pass this into methods that use IDispatch* parameters, or you can use the TestStand API to access the TestStand variable instead.
The second scenario is very similar, in that if you don't create the object in TestStand but inside of a dll instea
d, you can simply pass the parameter back from a function into a TestStand activex reference property variable or use the TestStand API inside of the dll to set the value of an activex reference property to the IDispatch of the object.
To better understand how to use the ActiveX Automation Adapter and ActiveX Reference Variable Types, look at Chapter 13 of the TestStand User Manual under the section entitled "ActiveX Automation Adapter". I have also attached an example to this post that uses the ActiveX Automation Adapter and ActiveX reference datatype in a sequence that writes data to a Microsoft Excel spreadsheet and generates a chart from the data.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
Attachments:
Write_Table_to_XL_and_Create_Chart.seq ‏53 KB

Similar Messages

  • JVM crash when calling no-arg methods of a COM object with JACOB

    When I try to call no-arg functions of a COM object with JACOM JVM crashes with the following error
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x770e47c5, pid=5424, tid=3392
    # JRE version: 6.0_17-b04
    # Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode, sharing windows-x86 )
    # Problematic frame:
    # C [ntdll.dll+0x347c5]
    The log is at [http://paste.linux-sevenler.org/index.php?id=32319|http://paste.linux-sevenler.org/index.php?id=32319]
    Thanks in advance
    Serkan

    This only happens with sun JDK IBM jdk works fine

  • How to separate an object with a 3d effect

    How to separate an object with a 3d effect
    Hi, I have outlined some text and applied a 3d effect but now I want to separate each letter so I can adjust the colour on the face of the letter with the colour on the extruded part.
    I am sure it is probably straight forward but could do with a little help!
    Thanks

    I think what the OP wants to do is to keep the extruded part the same color and change the face of the letters to different colors. And he/she did mention that the text is outlined.
    If that's the case, I can think of two things to do if you want to keep the 3D effect live (i.e., unexpanded).
    1. You could apply a stroke to the outlined text, in the color you want for the extruded part. Then just change the fills individually (Tip: view in Outline mode and use the Group Selection tool to select each letter).
    2. If you don't like how the stroke looks on the letters, make all the letters the same color — the color you want for the extruded part. Then make a copy of this group of letters. Select the copy, then click in the Appearance panel to to edit the 3D effect. Put the Extruded Depth at Zero. Now chnage the colors to your liking, then align them with the original. Interestingly, you can't just use the Align functions, you have to eyeball it.

  • HT1222 How do I download itunes with a MSVCR80.dll error message?

    How do I download itunes with a MSVCR80.dll error message?

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.
    iTunes 11.1.4 for Windows- Tips for Unable to install or open - MSVCR80

  • How to use jacob to access a com object with coldfusion7

    i want to use jacob to access a com objcet with coldfsuion7(i
    just want to do a test)
    how to do?
    Thank a lot!

    Flashcqxg wrote:
    > i want to use jacob to access a com objcet with
    coldfsuion7(i just want to do a test)
    > how to do?
    you don't. use createObject():
    mailer=createObject("COM","CDONTS.NewMail");
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfobject_08.html

  • Sharing same entity object with multiple viewobject problem.

    Dear All,
    I have a common entity entity object, that i am using in 4 different vo(only the where clause is different),
    I have created 4 af:table from corrosponding vos, when i am inserting some records in any of the vo then all the vo is showing the same records.. even through each vo is having separate where clause,
    But when i do this with separate eo for each vo then it works fine..
    Here i just want to do with the single eo being shared by different vo of same kind.. except where clause, Also i want to know why this issue is comming on insert? is it normal expected behaviour ? If yes then how to overcome this problem..? Pls provide any good suggestions if you have..
    Thanks & Regards.
    Santosh.

    Hi Sacha,
    Thanks.. i read it and found following
    You can globally disable this feature by setting the jbo.viewlink.consistent to the value false in your configuration. Conversely, you could globally enable this >feature by setting jbo.viewlink.consistent to the value true, but Oracle does not recommend doing this. Doing so would force view link consistency to be set >on for view objects with secondary entity usages that are not marked as a reference which presently do not support the view link consistency feature well.Now i am thinking to set it false.. but as doc says but Oracle does not recommend doing this. Doing so would force view link consistency to be set on for view objects with secondary entity usages that are not marked as a reference which presently do not support the view link consistency feature well,
    With what option should i go...?
    go with separate eo and vo..?
    Regards,
    Santosh.

  • How to use neutralzone object with alarm object?

    I need to monitor a tank level for alarm conditions.  I have created an alarm object so the user can specify values for the lolo, lo, hi, and hihi.  This works fine, except if the tank level hovers around an alarm level setting, too many alarm records are generated.  The Lookout Help page for the alarm object says to use a neutralzone object to filter out the minor fluctuations, but I can't find any details on how.  So how do I do this?  Can I use one alarm object with one neutralzone object for the four alarm settings, or one alarm object with four neutralzone objects, or four alarm and neutralzone object pairs?  How do I connect them?
    Many thanks,
    Ken

    Another method would be to add a delay before alarming using a DelayOn timer.  
    Ryan's suggestion would work, but if the process requires decimal precision you cannot use that method.
    Mike 
    Forshock - Consult.Develop.Solve.

  • How to implement Com-Objects?

    Hello,
    I use an ActiveX software which should be implemented in LabView. Now I want to know, if it is possible to implement Com-Objects from this ActiveX software in my LabView Application. When it is possible, where can I find this Com-Objects? Of course the ActiveX components are already implemented in LabView.

    hello mobmon,
    create an "Automation refnum" - control on your frontpanel (can be found under the "Refnum" palette), then select your object or browse for it (right klick "Select ActiveX class"). after that you have to wire the control with the "Automation open" and "Close Reference" functions from the "ActiveX" palette. After that you have access to methods an properties.
    hope it works
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to access COM+ Objects From JSP

    Friends,
    We have a requirement to access COM+ objects from JSP. Please guide me on this.
    Thanks in advance.
    Tarani

    Sanyam wrote:
    if there is any .dll extension file, how can we read that file in labview?
    You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details.

  • How to creat COM object from dll file?

    Hi,
    I tried to read about this topyc, but I didn't found eny example that creat
    COM object. I downloaded jacob.jar
    then I writed:
    ActiveXComponent ax = new ActiveXComponent("C:/MyJava/deploy/SMSCom.dll");
    Object SMSObj = ax.getObject();
    I get error (I put jacob.jar with all athers jars, I don't know way this erre)
    Exception occurred during event dispatching:
    java.lang.UnsatisfiedLinkError: no jacob in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java)file name: SMSCom.dll
    object name: SMSSender
    In VB this is the code:
    Object SMSObj = CreateObject("SMSCom.SMSSender");
    SMSObj.password = pass;
    SMSObj.Username = name;
    SMSObj.Source = phone;Thanks

    In Eclipse:
    1- To include jacob.jar for compile / run:
    Choose the Java perspective, then in the Package Explorer right-click on the project and choose Properties.
    Select Java Build Path from the left pane then the Librairies pane from the right.
    Click on Add External Jars button and select the jacob.jar file then click Open then Ok.
    2- To make jacob.dll and SMSCom.dll "visible" for run:
    Open your Debug (or Run) Java application configuration (the one for your project's main class).
    Select the Environment pane then click on Select button.
    Select Path and click on Ok button.
    Then re-select Path and click on Edit button.
    Add the two appropriate folders for jacob.dll and SMSCom.dll in the Path and click on Ok then Apply.
    Regards

  • Creating a COM object with CF9 32-bit on Windows Server 2008 R2 64-bit machine

    I'm using a 32-bit version of CF9 and it's installed on a Windows Server 2008 R2 machine (64-bit).  The problem I'm running into is that it won't allow me to create a COM object - it gives me the error, "no ntvinv in java.library.path null" when I try to run,
    <cftry>
    <cfobject type="COM" action="CONNECT" name="Engine" class="JRO.JetEngine">
    <cfcatch type="Any">
        <cfobject type="COM" action="CREATE" name="Engine" class="JRO.JetEngine">
    </cfcatch>
    </cftry>
    Then when I run it a 2nd time, I get "An exception occurred when instantiating a COM object. The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed."
    Can you help me?

    Replying for your patchset installation pre-req error:
    Use below command:
    ./runInstaller -ignoreSysPrereqs
    Review MOS note 763143.1 for more info.

  • How to map development object with quality object

    Hi
       I have problem regarding to mapping development object with quality  object  i.e the  development object will be order_dev  and quality object will be order_ qa ..i have to map this two wat is the process..
    thanku

    You have an object in QA and not in Dev....you want to map this QA object with an object in Dev.....create a same object in DEV and then do the mapping....then transport.....you should have both the objects in both the environments.
    When you say map...i assume it to be the mapping program (message/ XSLT/ JAVA)
    Regards,
    Abhishek.

  • How to create a subform with several initialized rows?

    I have a repeating subform in my form that should start with several initialized rows.
    I can create several empty rows by setting the binding to "repeat subform for each data item" and setting the "min count", but I'd like to have values in one of the columns so this doesn't get me there.
    I can create multiple instances of my named subform and initialize the value for the column in question, but then if I have the "repeat subform for each data item" checked I get additional dups of all but the first row and the delete button (with click action "this.parent.instanceManager.removeInstance(this.parent.index);") and add button (click action "_rates.addInstance(1)") behave erratically.  By this I mean the add button sometimes adds rows with values that have been deleted previously, and the delete button sometimes pops up an alert saying something like "topmostSubform[0]:Page1[0]:rates[10]:delete_button[0].click Index value is out of bounds".
    There is no binding to a data source where I could pull the values for the column I wish to initialize.  I feel I'm close, if only I could find the correct settings for the binding palette.
    Thanks for any suggestions!

    Thank you for the suggesting Srini.  I'm trying to implement but struggling with the scripting for the buttons and the binding settings.
    I've tried the following for the click action for the delete buttons in each row:
         this.parent.instanceManager.removeInstance(this.parent.index);
    and this for the click action for the add button under the table:
         rate_table._Row1.addInstance(true);
    When I click on delete the javascript debugger pops up and tells me:
         GeneralError: Operation failed.
         XFAObject.removeInstance:1:XFA:topmostSubform[0]:Page1[0]:rate_table[0]:Row2[0]:delete_bu tton[0]:click
         The element [min] has violated its allowable number of occurrences.
    and when I click the add button the debugger tells me:
         General Error: Operation failed.
         XFAObject:addInstance:1:XFA:topmostSubform[0]:Page1[0]:#subform[16]:add_rates_button[0]:c lick
         The element [max] has violated its allowable number of occurences.
    Sounds like my binding settings are wrong, but I haven't been able to determine a correct combination.  Can you assist?
    Thanks in advance!

  • How to spin an object with both x and z-rotation in M3G?

    I want to spin an object with both x and z-rotation in M3G. I get a good result when I implement this in OpenGL, but the combined rotation doesn't get right when I try to do this in M3G. The x rotation and the z rotation looks like they should when I only use one of them. This is achieved by adding only spinAnimationTrack or rotationAnimationTrack. The problem is that the rotation gets messed up when I add both spinAnimationTrack and rotationAnimationTrack. What am I doing wrong? This is my code:
    KeyframeSequence spinKeyframes =
    new KeyframeSequence(3, 4, KeyframeSequence.SLERP);
    spinKeyframes.setRepeatMode(KeyframeSequence.LOOP);
    spinKeyframes.setDuration(4000);
    spinKeyframes.setKeyframe(0, 0,
    getRotationQuaternion(-50.0f, new float[]{1.0f, 0.0f, 0.0f}));
    spinKeyframes.setKeyframe(1, 2000,
    getRotationQuaternion(50.0f, new float[]{1.0f, 0.0f, 0.0f}));
    spinKeyframes.setKeyframe(2, 4000,
    getRotationQuaternion(-50.0f, new float[]{1.0f, 0.0f, 0.0f}));
    AnimationTrack spinAnimationTrack =
    new AnimationTrack(spinKeyframes,
    AnimationTrack.ORIENTATION);
    AnimationController animatorS = new AnimationController();
    spinAnimationTrack.setController(animatorS);
    animatorS.setSpeed(0.4f * speed, 0);
    KeyframeSequence rotationKeyframes =
    new KeyframeSequence(2, 4, KeyframeSequence.SLERP);
    rotationKeyframes.setRepeatMode(KeyframeSequence.LOOP);
    rotationKeyframes.setDuration(4000);
    rotationKeyframes.setKeyframe(0, 0,
    getRotationQuaternion(359.0f, new float[]{0.0f, 0.0f, 1.0f}));
    rotationKeyframes.setKeyframe(1, 4000,
    getRotationQuaternion(0.0f, new float[]{0.0f, 0.0f, 1.0f}));
    AnimationTrack rotationAnimationTrack1 =
    new AnimationTrack(rotationKeyframes,
    AnimationTrack.ORIENTATION);
    rotationAnimationTrack1.setController(animatorR1);
    animatorR1.setSpeed(0.4f * speed, 0);
    mesh1.addAnimationTrack(spinAnimationTrack);
    mesh1.addAnimationTrack(rotationAnimationTrack1);

    People often make this harder than it is. It's usually not necessary to using clipping paths or to make cuts confined to the areas of overlap to make objects appear to intertwine. Usually, you can simply cut where objects do not overlap. There are no masks, clipping paths, pathfinders, etc., involved in this knot:
    Your specific situation may be somewhat complicated by the use of drop shadows, depending on the specific parameters.
    JET

  • How to setup Send Object With Note

    Hi all,
    I was trying to send a message to external email.
    So, for eg, in ME23N, I click on this "Send object with note" to a address which is type U.
    And in SCOT, business object is send as htm file type.
    However, when I receive this mail that i send, there is no url being generated.
    Below is the content of the email:
    If you are not forwarded automatically, use the following link:
    If the link is not to a valid server, log on to the SAP system and check the following object:
    System:     DEV
    Client:     123
    BOR Object Type:     BUS2012
    BOR Object Key:     4000000001
    Which setting am I missing?
    FYI, I'm using ECC 6. Extended notification has been setup.
    Thanks
    Edited by: Jack Wong on Jan 24, 2008 5:07 AM

    Hi Martin,
    Thanks for your reply.
    However, I don't think it's because of the mail server deleted the attachment.
    The htm file is attached to my external mail.
    And the htm file said that it will forward me to the link.
    I'm wondering which setting am I missing.
    Thanks.

Maybe you are looking for

  • How do I sync multiple email accounts on ipad

    So I'm now, dubiously, the lucky owner of iPad mini with up to date software and iMac with latest software. It now seems apple have decided they don't want me to use more than one email account and so have stopped me being able to sync them ? Even fo

  • Why open items with dunning level 0 sometimes appear?

    Hi All, when I run the dun transaction (F150) sometimes in table MHND and MHNK open items with dunning level 0 appear. These are open items overdue, but not enough to level 1. Note that this problem appear only sometimes. Do you know how to avoid thi

  • Abot function module

    hi friends, i used a FM in program then i copy that FM in other Group but when i try to activate it . It display a error message i.e ( REPORT/PROGRAM statement missing, or program type is I (INCLUDE).          ) how i solve this problem. kindly help

  • How to Differntiate between two instances of the same class ????

    I don't even know if my question makes sense or not ?? I don't have any code written for it yet.. but its the most critical task for me.. Q ?? say i have multiple objects running of the same class on the same box. sth like a CPU can have multiple por

  • KDE apps not working in Openbox, Fluxbox, or XFCE [solved]

    Whenever I try to run any KDE apps in Openbox, fluxbox, XFCE etc. it gives me "no such file or directory" or "command not found" or what have you. Everything works fine in KDEmod but the only KDE app I've made work in anything else was ktorrent just