How can I force TestStand to create multiple instance of an activex server instead of share the same reference?

Hi, All:
     I am trying to migrate a application coded by VC++ to TestStand+CVI. This application opens multiple serial com ports and send commands to test targets, and get responses from these targets. The VC++ application creates multiple thread, and every thread create an activeX server instance which is responsible for opening serial port,sending test commands ,and getting response. It works fine as every thread has itsown activeX instance, so data and commands can be handled in the right serial port successfully.
     Yet when I works on TestStand, I got problems. I choose parallel model as the process model. I create a activeX object reference with AxtiveX/COM Adapter, and store the reference in a sequence local varialbe. If there is only 1 testsocket, It is OK. But if there are multiple test sockets, and communication between the application and test targets will be directly to the last test target. I try to popup a message within a execution to indicate the value of the activeX object reference, and all of them are identical. But this is not the behavior I want.
    So, is it possible to force TestStand to create independent instances of an activeX server? How can I make it work?
Thanks

Thanks for your comment, Dan.
      Yet I do get problems as none of us know how to program an activeX server so that it can be forced to be a single-instance or multiple-instance.
As I mentioned earlier, there is existing application which is written by VC++ can create multiple instances of this activeX server, all I have to do is to create multiple threads, and initiate an instance of this server to contrl multiple test targets.
     My colleague said he creates the server with VC++ ATL, and cofigure it to be dual-interface and STA. And in the VC++ application side(client side), I use smart-pointer in threads to create an instance of the server:
 IMySerialServer pIMySerialServer;
  HRESULT hr = pIMySerialServer.CreateInstance("UUTCmd.MySerialServer");
  if(FAILED(hr))
   AfxMessageBox("Fail to create instance.");
And then I got multple instances of the activeX server. Every thread can have itsown com port, can send/receive commands indepently. I have no idea how can I make it work on TestStand. Would you show me some reference documents or sample codes?
Thank you
Cipher

Similar Messages

  • How can i move music purchased on my iphone to my laptop? it's all the same iTunes account.

    How can I move music purchased on my iPhone to my computer? It's all the same iTunes account.

    For purchased content, through iTunes, your phone connected, iTunes running: File>Transfer Purchases.

  • How can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    Read this Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
    And also refer to this link where You have repeated this question.
    PS: Please stick to one thread. That way, its easier to keep track of your query and answers

  • How can my iPad and desktop Mac connect with FaceTime if they are both associated with the same email account?

    I hace an IPad2 and a desktop Mac --I am on Lion and in the cloud.  Both devices share the same email account.  How can I use the iPad to connect with the Mac through facetime if I am travelling?

    You need to associate another email address to one of the devices. Read about it here.
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Use-FaceTime-On-The-iPad_2.htm

  • How can I force focus from flash to another plugin app in FireFox such as with the e.focus() Java Script command in Internet Explorer

    Can you force focus from a Flash app to another plugin such as Unity3d using a JS command similar to e.focus() which works in Internet explorer. The following code works in IE, but not FireFox? Any solution would be helpful. Is it even possible?
    function hideSWF(){
    e=document.getElementById("flash_content");
    e.style.width = 1 + 'px';
    e.style.height = 1 + 'px';
    e=document.getElementById("u3dobjmsiediv_unity");
    e.focus() ;
    function showSWF() {
    e=document.getElementById("flash_content");
    e.style.width = gameWidth + 'px';
    e.style.height = gameHeight + 'px';
    e.focus() ;
    == This happened ==
    Every time Firefox opened
    == Always existed when switching from Flash app to a different app. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    No, I am saying that this isn't the forum for help with that. This forum is for Firefox user support, and the helpers in this forum aren't versed in development issues like that - we're volunteers, not Mozilla developers and don't work for Mozilla. You are better off asking about that in a forum where other web site developers do support.

  • How can I get a drop-down list selection also be selected in another field with the same list but a different name?

    I have a street address and a billing address. A question is posed with a checkbox — "Is the billing address the same as the street address?" If Yes is checked, the street address automatically fills the billing fields. If No is checked, the user must fill in new information. In both the street address and billing addres, the State field is a drop-down list. How can I get the drop-down list selection in the street address State also be selected in drop-down list for the billing address State?

    Has anyone done this?

  • How can I have a button that will show/hide a text box and images on the same page?

    I have a page like below:
    I want to make so that those 3 buttons show different text under them when they are each pressed. How can I achieve this?
    Thanks.

    Hello,
    Please try using Tooltip Composition Widget to achieve that..
    You need to customize  the trigger as the button  and you can use the target to insert desired text box or images.
    you can find this in Widgets library panel > composition
    Please let me know in case you need any other clarification on that.
    Regards
    Vivek

  • How can i connect a windwos vista laptop with time capsule. Both are still in the same network

    Hi,
    i have a running wlan network. In this network are a macbook pro, a Vista notebook and the time capsule. The Macbook runs perfectly with the time capsule, but how can I connect the vista machine with the time capsule?
    Thanks for help

    The TC is SMB (windows networking protocol) compatible.
    Is the issue wireless? Can you get internet via the TC?
    Are you trying to access the hard disk?
    Did you load the airport utility for windows..? If not please do so.. that at least is the first step. It loads bonjour for windows, and a connection agent.
    Sometimes that is all that is required.
    Open a windows explorer and type in the address bar
    \\TCname or \\TCIPaddress .. obviously replacing the generic name with actual name or IP.
    You might need to change all the names to SMB standard via the utility. Short no spaces pure alphanumeric.
    You might need to fix the permissions.. ie turn on the guest account if security isn't an issue.
    You might need to fix networking in the vista .. shudder.. notebook.. to ensure it is not blocking the TC.

  • How can i transfer one song off one iphone and put it on another iphone using the same itunes

    hi, me and my mum use the same itunes, my iphone and her iphone. they are both authorised. i bought a song on my phone, and my mum wants it too but itunes wont let me transfer it off my phone onto hers. what can i do

    Open itunes, connect iphone, click File>Transfer Purchases
    Then sycn the song to your moms iphone from the computer

  • How can I easily manage different libraries of music between my iPad and my iPhone from the same computer?

    My 32 GB iPad stores much more data than my 16 GB iPhone... clearly. But I want to be able to easily sync these two seperate devices with two different sets of music from my iTunes. As it stands now, my iPad will always have the same amount of music as my iPhone because my iPhone is maxed out and the two devices are synced on the same computer from the same library. Do you understand where I'm coming from? Let me know if you need clarification.
    I want to be able to have my iPhone filled with individual songs, whereas my iPad would have the full albums. There doesn't seem to be an efficient way to do this with one computer. Any suggestions would be great. Thanks.

    It can be done very easily actually. I do it with three different iDevices.
    Connect the iDevice to your PC and launch iTunes. Select the iDevice from the left sidebar of the iTunes window. Then click on the Music Tab. Select only the music that you want on that particular iDevice and then sync the device with those selections.
    Do the same thing with the other iDevice. When you sync with iTunes the next time, iTunes will remember the music that was synced to that device.
    Make sure that you uncheck Sync Entire Music Library and check Sync Selected playlists, albums, etc and then select all of the music for each device.
    When you make changes to the current configuartion on the iPad - you will have to click on Apply in the lower right corner of the iTunes window.

  • How can I force an ISP to refresh a file in proxy server cache?

    Hi all,
    In my applet I am getting a remote file. But with some ISP's I have the problem that when I try to get that file again I get the older version which they had in their proxy servers cache.
    Is it possible for me to enforce refresh on this ISP's proxy server with some code in the applet or in the web page or in any other way?
    If yes, how?
    I would appreciate your answers very much, because I am in an urgent and desperate situation.
    Thanks and bye.

    If you are using URLConnection
    myURLConnection.setRequestProperty("pragma:","no-cache"Actually, the 'pragma' header is an HTP 1.0 (old) concept. The one for HTTP 1.1 is 'Cache-Control'. That said, you should always use both to support old/new browsers.
    You could also use the following headers :
    Expires, must-revalidate, proxy-revalidate etc...
    You could also implement a getLastModified() method in your servlet, which returns the time (as a long) at which the content was last changed. The server could then intercept 'If-Modified-Since' requests.
    Keep in mind that, because of several notorious browser bugs ( http://www.web-caching.com/browserbugs.html ), it can be difficult to effectively turn off caching across the board.

  • How can I force Firefox to remember a password etc having told it "no thanks" at the beginning

    The site in question does not, as far as I know, stop passwords etc from being remembered. When I first started with the site I believe I declined the option to have my password remembered. I would like to reverse that decision. Is there a way of doing this. I have been through all the other options mentioned in Firefox help.

    If you've clicked "Never" the Firefox has created a block exception that you need to remove.
    * Tools > Options > Security: Passwords: Exceptions
    Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"

  • How can i have a different Apple ID for my 2 iphones, currently both are having the same Apple IDs and all data is getting sync which i don't want to happen?

    Hi Currently having single Apple ID for my iPad, iPhone 4S and iPhone 5. Can i have a separate Apple ID for my iPhone 4S and iPhone 5. At the moment since the apple id are same the contact are getting sync between the 2 phones which i don't want to be in Sync.Will having two separate apple ID solve the issue or is there any setting that i need to make.. Pls suggest
    Thanks
    Ravi

    Yes, you can certainly create a new Apple ID at appleid.apple.com (which will have to be associated with a different email address from your current ID) and then change the various settings and applications on one of your iPhones to use this new ID.

  • How can I separate playlists from different libraries when two or more users do login in the same computer?

    We've got two computers. I access my iTunes on both of them. I've got an iPod nano. But another user access his own iTunes account in one of these computers. He's got an iPhone. When I login in this one, I share all my playlists with him, and vice-versa. How do I do to separate these libraries without deleting one of them?

    check out method one in this support article: How to use multiple iPods, iPads, or iPhones with one computer

  • HT4262 How can I send sound to a speakers system and video to an Apple TV at the same time?

    I am trying to send video to an Apple TV and I want to send the video sound to a speaker system simultaneusly. I am using an Airport Express to connect my audio system. Is this posiible?

    Welcome to the Apple Community.
    It does not give me the ability for multiple speakers like it does on my computer.
    Sorry, but it isn't supposed to do.

Maybe you are looking for

  • Issue with making multiple web service calls without ccBPM

    I have an issue - Sync call from ECC -> check global param if EMPTY                                 -> if NOT EMPTY call Web service 1                                      -> parse the return value                                      -> call Web Ser

  • How do i put everything from my iPhone on to a new macbook

    Have an existing iphone, and want to put all contents on new macbook pro.  did a backup and sync and when i unplug the ipnone there is nothing in itunes any help thanks

  • Nikon Lense compatibility

    My D40X pooped out and I want to buy a D5100 (body Only).  Will my lenses and speedlight work with the 5100?  I have a Nikon ED AF-S Nikkor 70-300 1:4.5-5.6G and a Nikon DX AF-S Nikkor 18-55 1:3.5-5.6 G II ED lense.  Also:  Nikon SB800 speedlight. So

  • Error in Dashboard Tab

    Hi, I  am having an issue in Dashboard tab.I can able to create a dashboard. After creating the dashboard,i have saved it.When i select the created dashboard from view dashboard dropdown, getting the error as below Error message The URI to be decoded

  • Run a Exe File in Struts

    Hi Friends, I tried to Execute a EXE File in struts,but the Program get Hanged up,But the code works well when i compiled the java Program individually. I have attached the code below ,Please tell your suggestion please. Runtime rt = Runtime.getRunti