Can I read a CWAI in one app, while reading it in another app

We have a system that has 2 applications running simultaneously. A background application uses a thermistor sensor and a heating controller to maintain a certain temperature.
The foreground application needs to read the temperature and graph it. Both applications are written in VB and use a CWAI active-x control to perform the reads. When I try to run them both at the same time, I get an error when I try to start the foreground app the CWAI.start command returns an error stating that the resource is already in use. Is there any way around this? They are running on the same machine.

You can not access the same hardware simultaneously from multiple applications. What you need to do is have one application acquire the data from the hardware and then share the data it acquired with the other application. DataSocket can be used for this and is easy to use. DataSocket is supported in VB with the CWDataSocket control and the "Bindings" property pages on the other controls. For applications running on the same computer, you can also used Windows named pipes (look up "named pipes" in MSDN for more info). Reading/writing named pipes is just like reading/writing files, except that you have to make different calls to open and connect to the pipe.
Hope that helps. Let me know if you still are having problems.
Tony
Measurement Studio

Similar Messages

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

  • Can you edit a person from one photo and add them to another photo?

    Can you edit a person out of one photo and add them to another photo?  Like if you need the head shot from one photo to replace closed eyes in the other photo?  Thanks.

    Thank you very much!  Does this require software to be purchased?  I'm new to Photoshop. 
    From: Bill Hunt <[email protected]>
    To: Kittie Gugenheim <[email protected]>
    Sent: Monday, April 25, 2011 11:46 AM
    Subject: Re: Can you edit a person from one photo and add them to another photo?
    Welcome to the forum.
    Yes, this is done often. You will need to create a Mask of that person, to separate them from the background of the original Image.
    I like to do this with a Layer Mask, as it offers control, and really does not alter the Image, so you can go back and make changes.
    Let's say that you have Image 01 w/ the head of your subject, and want to place it into Image 02. In Image 01, make a rough Selection. I would include a bit of extra background, as we will take care of that in a moment. With that Selection active, Copy the head shot. Go to Image 02, and Paste it. It will Paste in its own Layer. Ctrl+T (Free Transform) can be used to Scale and also position that Layer with the head. Once you have that Scaled and positioned about where you want it, create a Layer Mask. In QuickMask Mode, just paint in the additional Mask to remove all traces of the background that came in with the head shot. As you can paint OUT, and also paint IN the Mask, you can work on this, as many times as you wish - even next year.
    For getting that Layer Mask looking good, work slowly, also see this http://graphicssoft.about.com/od/photoshop/l/blrbps_5agirl.htm.
    I've got another tutorial, that addresses the hair area, and will post that, when I find my bookmark.
    Good luck,
    Hunt

  • How can i active my iphones with one app id and using find my iphone apps

    hi
    i want to register 2 iphones with one app id ,and using find my iphone apps in my iphones ,
    how can i do it ?
    please help me

    this will not work for "find my iPhone".  It is always a good idea to have two seperate Apple ID's anyway

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • Can I anchor the new mini-player to one screen while keeping iTunes in another on iTunes 11?

    I like having my main iTunes window on another screen while I'm browsing so that it doesn't distract me when I'm working. But I like the new mini-player & I ilke the fact that it notifies which song is playing each time it skips to the next one. So what I'd like is to keep the mini-player anchored to one screen (on Mountan Lion) while keeping the main iTunes window or the album artwork window in another one where I only need to go when I want to interact with iTunes in more detail. 
    This way I can keep the mini-player tucked away in one corner while I browse & I have quick access to the controls & the song info if I need it without having the full screen there. I know that I don't need to have the main iTunes window open all the time & I can simply Option-Command-M to toggle between the 2. But I'd like to have (if possible) the main window open as well on another screen. I have dragged only the mini-player to another screen but iTunes is anchored to the other one (via the dock options) so when I restart iTunes, both players (main & mini) open in the 2nd (non-browser) screen by default.

    Thanks for the replies. The only problem with this solution is that any time I restart iTunes, it'll revert back to normal settings and both will pop up on the same desktop. As opposed to when you anchor it to a particluar desktop so that it open there not matter where you are when you launch the software.
    I realise as I nitpick over this that may not be a very important issue at all But I just hoped there might be a solution to it. Thanks anyway.    

  • How can I copy a slide from one presentation and paste it into another?

    Hoe can I copy a slide from one presentation to another?

    In the first Keynote, Click the slide in the Navigator panel to select it
    Copy the slide;   command C or Edit > Copy
    Go to the 2nd Keynote, click in the navigator panel and paste; command V or Edit > Paste

  • Can I rip a CD on one computer and transfer it to another?

    I have a MacBook Air with no CD drive and a MacBook Pro that has one.  I have a pile of CDs that I want ot rip onto my Air.  Can I rip them onto my Pro and then transfer them onto my Air so that they go into iTunes properly?
    Thank you,
    Ian

    Thank you Niel.  Can you give me a little more detail?  I am assuming I can physically move the songs from one computer to the other through Airdrop.  Once that is done, I don't understand what you mean by "then into the library in the open iTunes application window".
    Thank you,
    Ian

  • If you use time machine to back up one mac, can you read it on another

    I have 2 mac laptops and want to save the data off the old and use on the newer.

    option-click and select:

  • HT2736 Can I take a voucher from one account and put it on another account

    I am really struggling to get a voucher from one account to another any suggestions ?

    What are you trying to do, and what happens when you do it e.g. are you getting an error message ? To send a gift from an account you need a credit card on the account, you can't gift from an account's balance.

  • HT4314 can i move a game from one apple id game center to another on a different device while not deleting the first apple id/game center?

    i have an account of clash of clans on my dads ipad but im getting an iphone 5s soon and want to transfer the game data to my own apple id own my own device... im very certain that he will want to keep his apple id and his gamecenter... he does not care about having the game on his ipad

    Apps are always tied to the Apple ID that was used to purchase/download them. They can't be transferred/shared with another Apple ID.
    Since you will be the user of the app, just purchase it.
     Cheers, Tom

  • How can I add a sequence in one project to a sequence in another project?

    I have finished editing a project called "HF Field Day 2011" but want to add another finished sequence from another project called "Quick pitch tent" at the end of the video in the former project. I then want to render the combination out to a final HD video. I don't want to have to re-create the latter video in the former project as it's already fully edited where it is. If that's not possible, does anyone know of an external program that can "stitch" to videos together without losing any resolution or adding any more compression artefacts?

    One way I found is to go to:
    Home, movies, iMovie projects, find the project you want and right click and click "show package contents".
    That will show a movie file and some other files. Drag the file to the desktop and rename it .mp4.
    then go to iMovie, import, navigate to the mp4 file on your desktop and it will let you import to the events section and then you can add it to your movie.
    Takes a lot longer to describe than to do. The quality seems to be preserved though I don't know if titles etc get transferred over, kind of doubt it.
    Hugh

  • How can you remove a figure from one photo and put it in another?

    I am trying to move a figure (dog) from one photo/pic to another.  Is this possible with elements?

    Yes, you should not have any trouble.
    In Editor, go to the expert tab.
    Open picture B, the one you wish to select something from (the dog) to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position object from picture B.
    In the layers palette you should see picture A as the background layer, and object B on a separate layer.

  • Can I take a selection from one clip and put it into another?

    I'm pretty new to this so thanks. I want to assemble a clip that has parts of three different takes. Splitting the screen works for a couple of the takes..but i'm wondering if I can use the four point matting to isolate a character and put him into another clip...the backgrounds are the same and the set up when shot is the same...but there is no blue or green screen involved so I'm wondering if this is possible in FCP. Hopefully the question makes sense...thanks!

    So you are trying to "cut out" your subject and paste him onto another take? Should be easy enough- just use the four or eight point matte to cut out a square around the subject, then layer that clip on top of the other take you want to superimpose him in. As long as the angle/lighting were the same, it should work. If you find you want a more complicated matte, try Tom's 50 Point Matter, which has a bezier curves option.

  • Can you take sofeware written on one computer and use it on another.

    We have a problem with the apllication maybe or the gpib. The apllication was working on one computer, but we change out that computer now we can get the program to work. A error message is generated (-107---) and fail to set up the test equipment.

    Hi Rickey,
    It is hard to determine the problem from this explanation, but have you installed all of the drivers necessary for your program? Is it possible that your program is making assumptions that are not true in your new setup. If you can provide more detail, I can do my best to help you out.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

Maybe you are looking for

  • My ipod touch 4th gen. is not appearing in itunes

    Both mine and my husbands ipod touch 4th genereation ipods are not being recognized by itunes. We have tried uninstalling and reinstalling itunes, restarting computer and ipods. Dont know what to do.. also my husbands ipod is disabled so he cant even

  • How do I print a mirror image on my HP D110?

    I am unable to print photos in a mirror image for producing iron on transfers.  The "Mirror" image is not available in the features or advanced tabs.  If I select "Iron On Transfer" as my paper it still prints normally, not in a mirror fashion.

  • 2 channel oscilloscope not working on one channel, Better scope?

    My experience with Labview is limited and I am just restarting after about a year. I have searched but do not see the answer to my question. We upgraded from LV 7.0 to LV 7.1 and the 2 channel oscilloscope that is included as an example under V7.0 br

  • XML ParserConfigurationException in Weblogic

    Hi, I am getting a SAXParseException in Weblogic 6.1 SP4. I have put xerces.jar in the classpath but still it seems like it is taking xerces implementation in weblogic.jar. Is that the reason for this parser error? Here is the piece of code. String i

  • Macro not working

    Hello friends,     I have written a program by using macro "rp_read_all_time_ity" . But when i execute this program no records were fetched from this macro.     I have also tested this macro in another program where it is already used and in that pro