Controlling Matlab via TestStand COM Objects

I am attempting to control MATLAB via teststand activex com objects.  I set up my module to use the matlab 7 automation server, and when I try to run the sequence, I get this error:
"Create New Object" in automation call failed.
No such interface supported
One reason this can occur is if the interface of your COM server cannot be marshaled. This can happen if your server is not using the default OLE marshaling implementation and does not implement its own proxy and stub code. If you write your server using Visual C++ you can add the oleautomation attribute to your interface in order to use the default OLE marshaling implementation. Alternatively, COM does not require marshaling if the server's threading model is the same as the client thread's apartment. You can try changing your server's threading model or the client thread's apartment to avoid the need to marshal the interface."
Anyone know how to fix this?
-Joey

It turns out this issue was a bug within Matlab itself.  The correct registry keys were not being added for the Matlab ActiveX server with version 7.2.  The bug report is located here.  Once the correct registry keys were added there was no problem calling the Matlab ActiveX interface.
Pat P.
Software Engineer
National Instruments

Similar Messages

  • Call MS com object via SOAP from WLS 6.1

    I generated a WSDL file for a Microsoft com object and can easily write a WL
    web service that calls it using Workshop 7.0. But I need to deploy it on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the source
    code required for accessing the com object via soap, which I could then cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

    Hi Mel,
    You said that you want to "deploy it on WLS 6.1", but I think what you really
    meant is that you want a J2EE component (i.e. JSP, Servlet, EJB, etc.) running
    in WLS 6.1 to consume the WSDL you created from the COM object, right?
    If so, the web services package in WLS 6.1 can be used to do this :-) If you tell
    me what type of J2EE component (i.e. JSP, Servlet, EJB, etc.) you want to be the
    client, I'll provide you with some sample code. Also, be sure you attach the WSDL
    that was generated, because WLS 6.1's WSDL processor isn't as complete as the
    one in WLS 7.0 and Workshop :-)
    Regards,
    Mike Wooten
    "Mel Werbow" <[email protected]> wrote:
    I generated a WSDL file for a Microsoft com object and can easily write
    a WL
    web service that calls it using Workshop 7.0. But I need to deploy it
    on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the
    source
    code required for accessing the com object via soap, which I could then
    cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

  • Data Mining shared mail box using powershell via com object Performance is really bad.

    I was trying to pull a report from multiple shared mail boxes by configuring them in outlook. Everything works fine for me here but the problem is that the below script would need a minimum of 10-14 hours on weekly basis. Can you please comment me on how
    can I get more performance? My average mailbox details and my observations are as below:
    It would have about 35 sub folders recursively up to 3 levels in Inbox.
    It would have ~ 300,000 to 400,000 emails.
    I donot know if this can be easily accomplished via EMC Shell but I dont have it either.
    And these are configured in Outlook 2013.
    The biggest folder has about 60000 emails.
    Even plain export without any filter or calculated values in the output is taking the similar time.
    I have even tried to use pick folder and manually executed multiple instances (~10) for each folder but the performance was really worst.
    -------------------------Script Starts here--------------------------------------
    Filter WeeklyReport {If((($_.SentOn -ge ("12/14/2014" -as [datetime])) -and ($_.SentOn -le ("12/20/2014" -as [datetime])))){$_}}
    $ReportFileName="~\Desktop\EMail_Export_$(get-date -f yyyy-MM-dd-HH-mm).csv"
    function GetSubfolders($Parent) { 
        $folders = $Parent.Folders 
        foreach ($folder in $folders) { 
            $Subfolder = $Parent.Folders.Item($folder.Name) 
            Write-Host ("Started processing"+$folder.Name +" at "+$(Get-Date)+" which has "+$folder.items.Count + " items ") -NoNewLine
            $folder.Items | WeeklyReport | Select-Object -Property SenderEmailType,ConversationTopic,CreationTime,ReceivedTime,Importance,LastModificationTime,Size,Subject,CC,ReceivedByName,ReceivedOnBehalfOfName,SenderName,SentOn,SentOnBehalfOfName,To,SenderEmailAddress,Categories,@{N='FolderName';E={$($folder.Name)}}
    | epcsv -Path $ReportFileName -NoTypeInformation -Append
            Write-Host ($(Get-Date))
            GetSubfolders($Subfolder) 
    Add-Type -AssemblyName "Microsoft.Office.Interop.Outlook"
    $olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
    $outlook = New-Object -ComObject outlook.application
    $namespace = $outlook.GetNamespace("MAPI")
    $MailBox=$namespace.Folders | ?{$_.Name -eq "[email protected]"}
    $MailBoxInbox=$MailBox.Folders | ?{$_.Name -eq "Inbox"}
    Write-Host ("Started processing Inbox at "+$(Get-Date)+" which has "+$MailBoxInbox.items.Count + " items") -NoNewLine
    $MailBoxInbox.Items | WeeklyReport | Select-Object -Property SenderEmailType,ConversationTopic,CreationTime,ReceivedTime,Importance,LastModificationTime,Size,Subject,CC,ReceivedByName,ReceivedOnBehalfOfName,SenderName,SentOn,SentOnBehalfOfName,To,SenderEmailAddress,Categories,@{N='FolderName';E={'Inbox'}}
    | epcsv -Path $ReportFileName -NoTypeInformation -Force
    Write-Host ($(Get-Date))
    GetSubfolders($MailBoxInbox)
    $outlook.quit()
    -------------------------Script Ends here--------------------------------------
    --VenuGopal

    Aah, Sorry COM object....
    I have observed that for the execution of the below line hardly it is taking 1-2 seconds for processing 50,000 items and it is similar even if we dont apply the filter.
    $items=$Folder.Items.Restrict($sFilter)
    Just got a doubt and found that the performance issue is not while processing the data but export is taking so much of time. For Example: Execution of the below line starts giving out put on the fly.
    $items|Select-Property$props|ft-a
    Even Out-File is taking so much of time. So, I think I need to start looking out for string builder or Stream Writer rather using epcsv?
    --VenuGopal

  • 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

  • Photoshop COM Object Scripting via PhP

    Has anyone had any joy creating a photoshop COM Object using PhP?
    Normally you would do something like this :
    $ps = new COM("Photoshop.Application.8") or die ("Failed to initialize.");
    var_dump($ps);
    I can see photoshop launched in the task manager, but when run in my browser appears to be stuck in a loading cycle, no output of the Object.
    Doing this :
    $ps = new COM("Microsoft.XMLDOM") or die ("Failed to initialize.");
    var_dump($ps);
    Correctly outputs 'object(com)#1 (0) { }'
    ie. an initialized XMLDOM COM object.
    If i can initialize Photoshop as a COM object i should be able to script it directly in PhP, rather than using the command line to execute a droplet that calls an action to execute a VB/JSX Script.

    I would like some information on this as well...

  • Calling test sequence from CVI DLL that use ATL COM object does not work

    I am trying to call some DLL function writen in CVI from teststand. The CVI DLL is using ATL COM object(Written by me).
    The ATL COM object making instance of several ATL COM object inside it (including two controls that contains dialog). If I use a client writen in VC++ 6 and use the ATL COM (writen by me) works perfectly. But if I try to use it from CVI DLL it does not work any more.
    What is wrong? The client is passing an IUnknow interface to my component. Can anybody explain me what is wrong?

    It is not clear from your question as to what is specifically failing. If possible, one option would be to remove TestStand from the picture and see if the problem still occurs using a CVI EXE that invokes the CVI DLL.
    Scott Richardson - NI
    Scott Richardson
    National Instruments

  • Using as a COM-object

    Hello gurus,
    Is it possible to use Adobe Indesign as a COM-object? Can I do it remotely?
    Will it be okay or should i buy Adobe Indesign Server for these purposes?
    Thank you.
    p.s. I'm developing a small webapp and i want to use Indesign.

    (I've moved this thread to the InDesign Scripting forum).
    Technically, yes, you can access InDesign as COM object.
    The documentation Adobe provides is for VBscript, though you can use other COM languages.
    I don't know about remotely.
    Is it OK? Well, probably not. Read the EULA carefully, but controlling InDesign via a web application would appear to violate the terms of use. Check with your counsel.

  • How can I call a COM object from a PL/SQL CODE

    Hi everyone,
    Does anyone know how to call a COM object from a stored procedure in oracle.
    a sample of code
    please help,
    Hilaire

    Are you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • COM object that has been seperated from its uderlying RCW cannot be used

    What exactly does this error mean?
    I receive this error when I perform "Unload All Modules" from the sequence editor using TestStand 4.2.1.83 development system, which is part of NI Developer Suite 2010 DS1.
    It causes TestStand to crash citing that error, and then a secondary error cites corrupted memory.

    ATE_Dude_22 wrote:
    Here is a capture of my sequence editor, where I have a alert from TestStand telling me the parameter specified doesn't match the sequence parameters (specified in the vi prototype as a string not a number), but this version of TestStand allows it to execute without needing to clear the error.
    Do you think this may have anything to do with the error I am seeing?
    Probably not. Sequence calls support mismatched parameters, what happens is that the callee gets whatever is passed to it, if that's not what it's expecting, then you might get a type mismatch error if type checking is enabled, if not then it's up to the sequence what it tries to do with the parameter for what happens next.
    Most likely the bug is in one of the code modules you are calling, probably a vi or dll is not properly maintaining a reference count somewhere or is corrupting memory and only indirectly causing the error. If most of your code is in labview, one thing to look out for is incorrectly specified calls to dlls from LabVIEW. If a call to a dll is incorrectly specified, either from LabVIEW or TestStand that can very easily lead to memory corruption and random errors later on in the code.
    I'd recommend trying to either debug and see where it's failing, if it's always failing in the same place. Or try to eliminate possibilities and reduce the called code to the minimum code required to reproduce the problem and then look for bugs in that code (paying special attention to the possibility of incorrectly specified dll calls and/or perhaps incorrectly maintained reference counts on COM objects).
    Another idea, to see if the problem is memory corruption caused by a vi, is to run all of your labview vis using the development environment (labview adapter setting), if so, any memory corruption would be in the labview process and not the main teststand process and should not bring down teststand.
    -Doug

  • Calling COM objects

    I have client HTML forms sending info to the middle tier. On the middle tier are Microsoft COM objects that have the business logic. The middle tier is Windows NT.
    Previously, Microsoft IIS was the applications server and ASP was used to access the COM objects.
    How can I use Oracle9i Application Server to call the COM objects? I suppose that I could receive the client input in a java servlet and make CORBA calls via a CORBA-COM bridge to the COM objects. Is there a better solution? If I have to do the CORBA-COM, anything I should look out for? I suppose the performance can't be very good over that many layers.
    null

    Hi John,
    Thanks for the reply.
    I have already looked into those topics which talks about Jintegra( com2java tool) and EZ Jcom .Basically these generate the java proxy classes, which is tedious to manage.
    In asp we have something like Server.createObject(...). Is there anything similar to this in jspx?
    Regards,
    Asha

  • 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!"

  • Java and COM Object out parameters

    I have a COM object written in C++ that can't be modified. It has several methods with output parameters.
    Can java create an instance of the COM object and pass a reference to a Variant in this case or any objects to be filled by the COM object? My output parameter keeps coming back null, but I know that the COM object is working.
    Bill

    You didn't say anything about how you are bridging java <-> COM.
    If it's via JNI, one way you could deal with this is to write a "wrapper" dll that can speak COM, but which can turn the output data into something more palatable to java - say an object that the wrapper can return.

  • Using the COM Object

    Hi ,
    Is it possible to use the COM object in Labwindows/CVI? If yes, please share the procedure?
    Thanks,
    Sumathi

    [Jongware],
    Thank you for the prompt reply!  Your information has been helpful.
    I'm not quite sure why what I'm wanting to do is against the EULA, unless it's because I'm doing it at a server level.
    Yes, COM is a Microsoft concept.  I do understand that InDesign uses the DOM, but I have seen code snippets where people have utilized the .tlb file from within .NET (C#, too).
    1. That sucks, but it is something I suppose I could live with.
    2. No comment.
    3. If my only objective is to create a thumbnail (whether it be INDD --> PDF --> JPG or INDD --> JPG), and if placing will achieve this, then that's ok.
    4. If InDesign server allows me to run a script that will do what I want, that'll work.
    5. No comment.
    6. I assume there's no way to try-before-you-buy InDesign Server?  I sure wish I could tinker with it before determining if it's the right solution.
    I know what I want is WAY overkill, but since we're a shop that uses Adobe products to print large graphics, our customers use Adobe, too.  I'm absolutely FLABBERGASTED that Adobe doesn't offer a way to easily convert their products.  And since what I want to do requires the use of Adobe in some way or fashion, I don't see any other alternative than to use a cannon to kill a fly.
    I spoke with "Travis" via chat after reading your post.  He states that Adobe does not offer a product that does what I want, nor does it offer a custom made graphic conversion program.
    What an absolute bummer.  I never thought converting an Adobe file to a thumbnail would be so difficult, especially after I noticed how Adobe Bridge flawlessly creates a visible thumbnail for all Adobe types, right in it's own window.
    Again, thanks for the information.  If you think of anything else, please let me know.
    Kyle

  • Accessing COM Objects provided by an EXE server

    Hello,
    I need to control an application through COM. I did this before with Excel and other software and used LabView's ActiveX functions.
    But this time I can't find the object I need when I browse the type library.
    The COM server actually is registered. But it's an "EXE Server" (I used "COM Explorer" to browse all registered COM objects - and the one I need is listed under EXE Servers).
    Is there any possibility to gain access to this interface?
    Thanks!
    Regards,
    Robert

    Hi Robert,
    there is not really a difference between ActiveX object and COM object.
    All COM objects (ActiveX objects) should be accessible.
    If you can't see the object, but you know that you had register it, there are only two possibilities:
    1) Something is wrong with the object -> it is not really standard
    2) You can try to browse manually to the object.
    Use the "Browse" Button (see Browse.jpg) and select the object manually.
    If that doesn't work, there must be something wrong with the object.
    Best regrads
    Dippi
    Attachments:
    Browse.jpg ‏29 KB
    Select Object.jpg ‏163 KB

  • Microsoft return Windows Runtime Object vs COM Object

    Hi,
    We create a custom project like C#, c++ project in visual studio.
    We want to support different source control provider. Currently we have supported TFS.
    Now when we want to support AnkhSVN, we found the issue below:
    When adding a new model file, the plus icon cannot display before the model file.
    Since AnkhSVN is open source, after debugging, we found that:
    When it gets glyph status, SVN cannot get the correct value. The status is None instead of ShouldBeAdded (expected)
    The root cause is that
    OnAfterOpenProject(IVsHierarchy pHierarchy,
    int fAdded)
    pHierarchy is a Windows runtime object and is added to
    _projectMap(Here it's the ProjectNode)
    While in TrackProjectChanges called by
    OnAfterAddFilesEx
    internal
    bool TrackProjectChanges(IVsSccProject2
    project, out
    bool trackCopies)
                // We can be called with a null
    project
    SccProjectData data;
    if (project !=
    null && _projectMap.TryGetValue(project,
    out data))
    The project is COM object. That's why _projectMap cannot get the value since it includes the Windows Runtime Object as the key.
    However, in C# project, Visual Studio return both the COM Object.
    Question:
    Is there any way that can make the pHierarchy as a COM Object OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)?
    Regards,
    Lyle

    Hi Lyle,
    Since it's not a product from Microsoft, I would recommend that you as the ankhsvn for dedicated support here:
    https://ankhsvn.open.collab.net/
    or post your question here:
    https://visualstudiogallery.msdn.microsoft.com/E721D830-7664-4E02-8D03-933C3F1477F2
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Thanks Caillen for your response.
    The Problem here is that both of the two functions are the API Visual Studio gives. It's Visual Studio gives the different object type for the same ProjectNode. 
    So I'm wondering why Visual Studio gives us different object type on the Runtime.
    Regards,
    Lyle

Maybe you are looking for

  • Adobe Reader for iOS Security

    I'm trying to deploy Adobe Reader in my organization, but am wondering if the Reader for iOS app takes advantage of Apple's FIPS 140-2 compliant encryption module? I am aware that PDF doucments themselves can be encrypted upon completion, but am more

  • Only some iMessages sync between Macbook Air and iPhone?

    Not sure what the deal is.  I've been iMessaging a friend of mine on my phone for a couple days and the phone messages are all still there, but only a few of the messages synced with my Macbook once I started using it to message her.  I have a couple

  • Output to line printer (132 x 66)

    I need to print statement to a Line Printer (such as Epson LQ-1600K) on preprinted form. Should I use character mode? I've tried to setup a character mode report as described in Daily BI Views (except output chr(14) to printer) The layout of printout

  • CTI Integration with IPCC X

    Hello All, We are using IPCC X 4.0.4 with HA. We have a database where we have Employee information which needs to be popped up at the agent screen when the call comes to the agent. We are confused to find the way to do this. Please give us any kind

  • Update the Milestone description

    Hi, I would like update the Milestone description with a input file. I used the function READ_TEXT and SAVE_TEXT but I see that only long text is updated and not short (field MLTX-KTEXT). I used the funtions : CJBP_MILLESTONE_UPDATE, BAPI_PROJECT_MAI