How do I use the same SubVIs in the different VIs? Those VIs have to run at the same time.

Hello,
If I have two VIs.And both of them has the same SubVIs.
For example
VI1 contains:
SubVI1: Initialize Instrument
Data acquisition
SubVI2: Close Instrument
VI2 contains:
SubVI1
Monitoring the Board and VI1
SubVI2
When I run those two VIs at the same time, why can't I use SubVI2(which is in the VI1) to close the Instrument?
The function has been run correctly, but it didn't work. The VI1 did closed, but the instrument didn't closed, neither did data acquisition.
In order to close instrument, I have to run SubVI2(which is in the VI2).
What I want to do is that when I run SubVI2(which is in the VI1), then, the instrument closed and data acquisition stopped.
Is there any problem between the thread? Or anything wrong with SubVI's VI property?
Thanks a lot!

Hi, everyone
Thanks!
It seems that I didn't solve this problem, but now I maybe understand why it happened.
GerdW  said:
Why do you want to initialize an instrument in 2 different places?
Why do you want to close an instrument in 2 different places?
Graziano  said:
i guess the problem is that, running two times SubVI1 you initialize instrument two times (it is not desirable...), and, worst, running SubVi2 you close instrument twice!
That makes me think about the number of doing init & close. My project calls on that there must be a strict requirements about the number of calling those function in one process.
That is to say,when running them, if VI1 and VI2 are in different process but not in the same one, the program is going to run successfully. But now, VI1 and VI2 are threads which in the same process, so my project's strict requirements makes them run failue.I used SPY++ to analysis, and found those two threads are actually in one process.
Graziano  said:
I suggest to put SubVI1 and SubVI2 outside VI1 and VI2, and you run them once, at the start and stop of your measurement.
I believe that is a good idea, I can deal the problem in this way. Thank you!
But if anybody has the idea which can deal with the problem between the threads, I will be so glad......
What does that called, Synchronized between threads.....maybe......
To altenbach
I am afraid showing the code doesn't work, because all the VI SubVIs and code is base on the japanese system.and all of them must call the functions form DLL which is protected by my company. I am sorry about that......
Thanks a lot!! Everyone.

Similar Messages

  • HT204074 How do I use 2 apple id's on one mac?  I have my apple id on my mac and would like to use the same mac for my wife's phone and ipad?

    How do I use 2 apple id's on one mac?  I have my apple id on my mac and would like to use the same mac for my wife's phone and ipad?

    Correction, thats two itune id's

  • How do I use the same bluetooth device with different iOS devices without having to "Forget" then "Pair" every time?

    Hi,
    I have bought a pair of Sennheiser MM100 wireless headphones and they are great, however, I'm having trouble switching between devices.
    I have an iPad2 and an iPhone 4s and the headphones connect to both with no problems. My issue comes when I want to switch from using the headphones with my iPhone (listening to music on the walk to the train station) to using them with my iPad (to watch a movie on the train). The iPad still shows that it is paired with the headphones but will not connect saying that they must be turned off or out of range. Even if I turn the headphones off then on again, they immediately reconnect with the iphone.
    I've tried deselecting the headphones as the source for audio from the airplay icon before I make the switch and have also done this before turning them off and then back on again.
    The only way I can make the switch is to turn the headphones off, tell the iPad to forget the device, turn the headphones on (by holding the on button for 5 seconds it automatically goes to Pair mode). I pair up the iPad and it connects fine. But I have to go through the same process when the train pulls into my stop to be able to use the headphones to listen to music to walk to work!
    Is there an easier way? I thought I would just be able to use the airplay icon to deselect it on one device and select it for the other.
    Any help would be much appreciated. I'm going to miss my stop on the train some day!!!

    Here's the trick.
    turn on the headphones.
    It will connect to the device it last connected to ...assuming that its' on.
    go to the bluetooth menu of your phone or ipad (if it's a computer you want to connect to I'll tell you that trick in a second.
    and so now, hold down the S button on the headphones for about 4 or 5 seconds (the same button you use to turn on the headphones) ...the light goes from blue to blinking red....now you're in the pairing mode...which is good...now in the bluetooth menu simply select the mm100 and it will connect...
    you won't have to type in the 0000 or tell it to forget the device..
    but by holding down the button and putting it in pairing mode it frees it from being connected to the device it automatically connected to and lets it connect to the device you choose. this is true of any bluetooth headset.
    if you want to connect to your computer, again...hold down that button on the headphones for 4 or 5 seconds till it enters pairing mode, then on your computer if you have a speaker icon in the menu bar, hold down the option key while selecting the speaker icon...you'll see a list of devices ...select the mm100 and your good to go.
    if you don't have the speaker icon there..go to system prefences and choose the mm100's there.

  • Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Here's the short-cut solution:
    Green Apple tracks are MIDI files (so to speak). If you drag one from the loop browser (Capitol C Orchestral hit, as you mentioned in this exable) directly into the arrange page it creates the MIDI file and the instrument to play it back on.
    HOWEVER.If you create and audio track first, THEN drag the green Apple loop onto that track, the loop will get "bounced" with the reverb in tact and you'll have the exact sound that you heard in the preview.
    Make sense?

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contacts. I want it to just autofill for the contacts that I have in my address book. Is this possible? Thank you. I have an Imac Intel version and an Iphone 5 phone.

    Mail > Window > Previous Recipients

  • TS1629 How do I use home sharing with direct TV / Verizon internet. I have turned on Home sharing on apple tv and in iTunes but can't see the library in apple tv. I can see the photo stream but thats it. Any Ideas????

    How do I use home sharing with direct TV / Verizon internet. I have turned on Home sharing on apple tv and in iTunes but can't see the library in apple tv. I can see the photo stream but thats it. Any Ideas????

    go to home-sharing on Apple TV and type in your info as ask.
    hope this help

  • How can I use Greek symbols in a text in Pages? Greek symbols are not in the special character list.

    How can I use Greek symbols in a Pages text? Greek symbols are not included in the special character collection.
    I need to import for example a sigma from Word or Adobe illustrator and then Pages can recognise it. I can not find it from within Pages.

    Special character palette from the edit menu does have sigmas under European ... > Greek ...
    You can do a search at the bottom of the Special Character palette. Double click on the greek capital letter sigma. You will get a lot of sigmas.

  • I have purchased Adobe Acrobat and my order number is 281998924. My previous Sony computer which used to Windows 7 crashed. I purchased a new Toshiba computer with Windows 8. How can I download the Adobe acrobat? I assume I don't have to pay for the progr

    I have purchased Adobe Acrobat and my order number is 281998924. My previous Sony computer which used to Windows 7 crashed. I purchased a new Toshiba computer with Windows 8. How can I download the Adobe acrobat? I assume I don't have to pay for the program again? Thank you for all your help! Angelo.

    If you had purchased Acrobat Standard subscription.
    You need to download the application from below website :
    www.cloud.acrobat.com
    Sign in with Adobe ID and Password and once signed in click on Acrobat tab and download the application.
    Sign in - Adobe ID

  • I updated my LG G3 this week and now it SUCKS!  When I'm connected to WIFI, nothing on Facebook works.  The photos and videos won't populate.  I have to turn off the WIFI and only use the mobile data. Not to mention, I really hate the way it looks now.

    I updated my LG G3 this week and now it SUCKS!  When I'm connected to WIFI, nothing on Facebook works.  The photos and videos won't populate.  I have to turn off the WIFI and only use the mobile data. Not to mention, I really hate the way it looks now.   Before I updated my phone, I really liked it, now I don't like my phone at all!  When will this be fixed? I hope it's soon.  I'm thinking of changing providers now.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • How can I use one gmail address on two different macbooks in 'mail'?

    I'm using one business gmail address. Me and my girlfriend both have a macbook. Now the gmail address is linked to my macbook. But she wants to use it as well. Unfortunately the 'mail' system won't allow her to sync with the gmail address. And I get messages from gmail saying that someone tried to log in to my account. Which is something I certainly want, but can't change. Does anyone now how I can use 1 gmail address on two different mac's? Thanks

    You may be able to change the suspicious account activity message alerts
    in your Gmail settings, and check that side of it, since I can use several
    means of accessing my Gmail and Google Accounts; and in the past had
    shared an account (not google) with another party half a world away when
    her email server went down for a month.
    The Mail software should not know the difference, unless the setup in there
    is not correct; if this is so, then more than what she says would be wrong.
    The Google mail Support help site pages should cover this adequately.
    Gmail Help - Google Help
    https://support.google.com/mail/?hl=en

  • I paid for exportpdf and everytime i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable.  how can i export only form fields that were filled in?

    i paid for exportpdf and every time i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable. Some forms can't be saved so having to log in and only use webtool to upload a saved pdf won't work.
    as well, how can i export only form fields that were filled in if I can get pdf to save to computer?

    Hi kstine,
    I can see why that would be frustrating! Have you tried selecting Stayed Signed In underneath the Adobe ID and Password boxes when you try to log in?
    What did you use to create the PDF form? If you used FormsCentral, form data is saved to your online FormsCentral account. If you have Acrobat, you can export form data as described  here: Adobe Acrobat X Pro * Manage form data files
    Best,
    Sara

  • Every time I close my Macbook Air and then go to use it again. My wifi is not connected, I have to go to the network diagnostics and basically find my network and reconnect every time. Is there anything I can do to fix this?

    Every time I close my Macbook Air and then go to use it again. My wifi is not connected, I have to go to the network diagnostics and basically find my network and reconnect every time. Is there anything I can do to fix this?

    worksafe's link with the KeyChain fix is good.
    This usually happens when KeyChain has two entries for the same WiFi network.
    If repair did not work you can follow the manual steps:
    Disconnect WiFi
    Open KeyChain from Applications / Utilities and find your WiFi network entry(ies) and delete all of them.
    Connect to your WiFi again.

  • How do i switch my itunes account from old laptop to pc. already have home sharing with the pc. any easy way to do this?

    how do I switch my itunes account from old laptop to pc. already have home sharing between the laptop and pc, laptop is the primary account for my iphone and is about to die. I don't want to lose contacts, photos,etc. any easy way to do this?

    Copy everything from your old computer, or your backup copy of your old computer to your new one.
    You can use and external drive/flash drive/dvd/cd/etc.

  • Can anyone help me display the calendar list using an iphone4 wit iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    Can anyone help me display the calendar list using an iphone4 with iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    That icon allows for the calendar month to display with the appts for that month below.  I want to see only the list of appointments without the month displaying.  I use to be able to get that display but since the last update tapping the magnifiying glass doesn't work.

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    Last point...who archives? On my regular email page I now have the Archive icon to the left of my Delete icon which I would prefer was to the left, first in the line as this is the icon I use mostly. With Folders, my Sent and Trash lists, who needs to archive?
    I can help you only with the placement of the icon placement -- if you right-mouse click on the toolbar, then select Customize Toolbar, you can move an icon to where you want it to be.

Maybe you are looking for

  • Weak Audio Signal in Capture

    Anyone see this? I am recording sound from an external mixer connected to the line in port on the Mac. I get a good strong signal when I go to system preferences, sound dialog box, and set input level. But in FCP I see a much weaker signal in the Log

  • Windows 8 "Mail" settings

    Hello, and Happy New Year to everyone! I recently purchased an "all-in-one" PC featuring the new Windows 8 operating system. The "Mail" pane on the home screen needs to be configured so that I can send & receive e-mail without need for a separate e-m

  • Import EDL into FC6

    When I import a Premiere-generated EDL into FCP using the reconnect option, the list comes in without the in and out edit points. Only the clip name, source, overall length, and in-out codes for the entire clip are listed, but not the edit point code

  • DDIC_ACTIVATION Error while applying SAPKH60301 & SAPKH60302

    Hi, While applying the above mentioned patches, SPAM gets stuck at DDIC_ACTIVATION state. I have upgrade my Kernel to the latest Patch 159 and Upgrade the oracle Patch as well. SPAM Log Error during executing the tp command 'tp ACT ALL DVM ...' tp re

  • IPhone 5 AppStore got German?

    My AppStore just got German. (Im Norwegian and im in Norway) Just after my syncing my iPhone 5 yesterday (Around 15 hours when you see this) The only thing i did in the syncing was adding some music. (German music) Thanks for answers :-)