Need to execute a sub-VI continuously, while others are executed on demand.

I'm running into a problem while trying to develop a set of controls for a scanning probe microscope. I have a PID control which governs the height of the probe above the sample (feedback input is through a PCI DAQ card), and which needs to run at all times. I also have a scan control which raster-scans the area of interest as defined in the input. Both of these programs work fine on their own. the problem I am encountering is: due to the nature of the position control equipment, these controls must be consolidated into a single VI (the "device handle" can only be called in one program at a time). The PID needs to execute constantly and in real time, while the scan needs to execute only on command. is there a relatively simple way to call a sub-VI such that it will run continuously at a high priority, while allowing another to be called on demand? Specifically, I need to avoid either sub-VI becoming caught in a "while" or "case" structure and refusing to allow the other to execute.

I suppose I should have included a bit more information in my original post.
I am running under windows XP, the PID updates once per millisecond via analog voltage reading, the instrument can queue commands but there's no current need to do so as the speed with which I need to issue commands is significantly below the USB polling rate.
also, the problem with execution in parallel is that while the VI's are effectively independent, they both need to receive the same device ID from the controlling DLL. Unfortunately, the device ID command can't be called separately in each VI due to hardware restrictions, which is the reason I was looking for some sort of background execution option.
I'm attaching the VI's themselves to make the situation a bit more clear as well.
thanks for your input.
Attachments:
PID switchable1.vi ‏92 KB
Raster Scan1.vi ‏174 KB

Similar Messages

  • Why are some of my movies not syncing while others are? All of my movies are in m4v form, and some of them sync but some of them don't.

    Why are some of my movies not syncing while others are? All of my movies are in m4v form, and some of them sync but some of them don't. Also, when i try to play my movies on my mac AND ipod, some of my movies just randomly freeze and wont let me continue watching. I dont understand why its doing this.

    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod - http://support.apple.com/kb/TS1497

  • I am new to Mac and am having trouble with uploading images from my pictures folder to Facebook and other share sites- some of my images are accessible while others are seemingly locked....

    I am new to Mac and am having trouble up loafing images from my pictures folder to photography sites and Facebook. Some of the saved images are accessible, while others are not, ( they are light colored and cannot be uploaded) I am not saving them any differently.

    Hi Robodisko,
    Thanks for your prompt reply...... 
    I often proof my work in preview then edit images in photoshop and rename from there.  The dsc images are renamed to correlate the name of the class etc.  i.e. dcs_001 is saved as the file name required 7A.jpeg etc.
    The file names are required to correlate what is what and so on..........

  • Why are some of the messages i send in a blue background while others are in a green background?

    why are some of the messages i send in a blue background while others are in a green background?

    Blue = iMessage...
    Green = Text message... SMS

  • Few mails are not reaching to a recipient while other are receiving the same email

    Hi
    I am facing very strange issue for few days. 
    The email sent by a user to multiple internal recipient, is not reaching to one recipient, while others are receiving that email.
    Few users are facing this issue. mail neither reaching in their inbox nor Junk folder.
    I am using Exchange Server 2013 CU2 and TrendMicro MailScan anti-spam.
    I have searched the logs in TrendMicro Mail Scan but nothing found.
    Please help.
    Thanks,
    Manoj 
    Thanks, Manoj

    Hi,
    To narrow down the cause, I’d like to ask the following questions:
    1. Does the issue happen on random or regular recipients?
    2. Does the issue happen on all emails or only emails including many recipients?
    We can check the Maximum number of recipients per message through a Receive connector:
    http://technet.microsoft.com/en-us/library/bb124345(v=exchg.150).aspx
    3. Is there any DNR or error message?
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Extremely low-res pics when copied to photostream while others are fine?

    I have some downloaded iPad (New iPad, iPad 3) wallpaper images that I copied to Photo Stream so I could use them on my new iPhone 5. Some of the images copied just fine, while other pictures are low resolution & very pixelated. I thought maybe I was trying to copy too many at once. So I deleted the bad ones and tried again, copying each pic one at a time. They still show on Photo Stream at very low resolution. Does anybody know why, and what I can do to fix this?

    OK, I guess I figured it out...
    Below is a sample of one of the images I was trying to put on Photostream.
    The problem must be something with iOS, because the garbled image on the left only looks that way on the iPad 3 & iPhone 5. When accessed from my PC, the same image is at full resolution (2048x2048). And then when I upload the same image back to Photostream, it still gets resized to 1536x1563, but at much better quality as can be seen in the image on the right.
    I'm glad I found a workaround, but it's very annoying that it doesn't work the way it is supposed to.

  • NUMA node zero at 100% CPU utilization while others are around 50% - why?

    Questions:
    How can I tell which processes are maxing out one of my eight NUMA nodes' CPU?  i.e. what tool would give me that insight?  I've poked around procmon.exe and don't think it has this, but am not sure yet.
    Any thoughts on what's going wrong overall, given the description below?
    Symptoms:
    Task Manager shows one NUMA node at 100% CPU (and in processors view, shows all 8 CPUs in that node at 100%), while other nodes range from 0-90% depending on load
    SQL Server, which is the only significant CPU user on this box, is running regular jobs 2x slower than it did last week.  Last week it was running Windows and SQL 2008 R2 SP1, and this week it has been rebuilt (from scratch - not upgraded) with Windows
    and SQL 2012.
    Environment:
    HP DL980 G7, 64 cores, 1TB RAM, 50TB fast disk for SQL use, 120TB slow disk for file storage
    Hyperthreading enabled - last week, it was not (since it's not supported well in Windows 2008 R2 with the Hyper-V role and 64 cores)
    Windows Server 2012 Standard, installer we got via Software Assurance (and yes, I have an MS support case, ID 112110854959943, but I often lose days before my case escalates to the right person, so I'm hoping someone knowledgeable sees this first,
    as I have some very unhappy users!).  Last week was Windows 2008 R2 SP1 Enterprise.
    SQL Server 2012 RTM Enterprise Core.  Will update to latest CU as soon as I get a maintenance window.  Last week was SQL 2008 R2 SP1 Enterprise.
    Max d.o.p. on six SQL instances is set to 8, on the seventh it is set to 16.  No CPU affinity set by us for SQL or anything else.
    Hyper-V role installed.  Had this role last week too.
    Domain controller.  Had this role last week too.
    Also running DFS (with replication turned off this week, though it was on last week), not much going on there right now so I don't think it's related to the problem.
    Task Manager and Resource Monitor show Memory is fine (100GB free), Disk is fine (<500 MB/s I/O, compared to regularly running at 1-2 GB/s in the past).  perfmon won't open for me, possibly due to an unrelated problem (port exhausting with DNS Client,
    another MS support case we have ongoing)
    Planned next steps:
    I have removed the Hyper-V role and am awaiting user permission to reboot for that to complete.  Will see if that fixes it.
    If it doesn't, I'll reboot again and remove hyperthreading.
    And in the meantime, via MS support and this post, I'm trying to understand what is going on, what is wrong.  I would love your help!

    To follow-up on Ethan's post (he works with me) - this is what it looks like in Task Manager.
    Normally, all 64 CPUs would be at/near 100%. But SQL jobs look they are being bottlenecked on NUMA node 0 (despite no affinity being set - everything is default/automatic). Another symptom (other than very slow SQL jobs) is that various management tools
    in the host partition are very unresponsive.
    The significant changes are:
    * WS2012 vs WS2008R2 SP1
    * SQL2012 vs. SQL2008R2
    * Hyperthreading enabled in BIOS to give 128 logical processors to the hypervisor. 64 logical processors are made available to the host partition (the limit in WS2012)
    All SQL instances are  running in the host partition. There is no significant network or other activity on this box. No VMs are running. CPU-Z shows 8 sockets, 8 cores/socket, 8 thread/socket in the host partition. So despite hyperthreading/SMT being
    turned on, it looks like all 64 real cores are being exposed to the host partition.
    See also here, where Microsoft recommends leaving SMT/hyperthreading on in all cases with WS2012:
    http://blogs.technet.com/b/matthts/archive/2012/10/14/windows-server-sockets-logical-processors-symmetric-multi-threading.aspx

  • Maintain Temperature While Other Processes Execute

    I would like to reach a temperature setpoint, and once that setpoint is reached index a stepper motor several times and record some voltages while maintaining the temperature at the setpoint (at 25 degrees, index the motor 5 times, then do the same for 35 and 45 degrees...)
    I'm running a temperature control loop in parallel with the other tasks so the program would continue to maintain the temperature as the motor ran through it's routine. My question is how do I execute the top structure (the nested for loops) once I've reached the desired temperature. A case structure didn't work because if the temperature was not at the setpoint, the for loop just went on to the next temperature. Putting the for loops in an event structure is not working either. I tried triggering the event struture with a boolean value change (if the temp is in range - index the motor).
    Position and Temp.vi is the highest level VI.
    Andrew
    Andrew
    Attachments:
    Position and Temperature Control.zip ‏120 KB

    arcranda wrote:
    Okay - state machine: I'm on it.
    Just out of curiosity, how should the At Temp Value(Signalling) property node be wired so that a change from a false to true will fire an event structure - that's what I was going for.
    You could use a feedback node to compare the last boolean value with the current one.  So output from feedback NOT   AND output of current value (which gets fed to feedback for next iteration) would drive a case structure where the Value (signalling) is in the true case.  You could also let the event structure always fire and do a comparison of the OldVal and NewVal out of the terminals inside the event case then decide what to do.
    The while loop with the state machine in it - should this run in parallel with my temp acquisition/control loop or is acquisition /control going to be one of the states?  I would make the acquistion control loop separate and parallel to the state machine.  And use queues, notifiers, local variables, or functional global variables (which is best and which I would avoid would depend on the situation) as a mechanism to communicate between the loops.

  • Why some settings are located in windows settings node while other are located in administrative template node?

    hi friends
    when we look at any GPO in Group policy management snap-in, each GPO has these four main sections
    1-software settings     2- windows settings       3- administrative templates         4- preferences
    my question is, what logic or criteria exist about dividing OS settings into these four parts?
    what shared characteristics exist in windows settings node & what shared characteristics exist in administrative templates node?
    its confusing. because some settings about windows exist in windows settings node but some other settings which are again related to windows, are located in administrative templates node.
    any help please.
    thanks in advanced

    > but i need some more info about that
    For which purpose? It is the way it is, that's it :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Some movies are not syncing into iTunes , while others are . I checked and they are all .mp4 , and is there any other way to sync movies to my ipad ?

    I have tried to sync movies installed on my windows (Breaking Bad) to my iPad so i can watch the series on it , but when I try to insert the episode to iTunes nothing happens 

    Hey there ckhoury13,
    It sounds like your video files may be incompatible with iTunes. Here is an article that will help you determine if your video files need to be converted before they can be moved into iTunes:
    iTunes: Frequently asked questions about viewing and syncing videos
    http://support.apple.com/kb/HT2729
    What video content works with iTunes and mobile devices?
    iTunes:
    Video content purchased from the iTunes Store.
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Video podcasts.
    iTunes Digital Copies.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).
    Mobile Devices:
    Video content purchased from the iTunes Store.
    Videos that have been shared to iTunes using QuickTime Player (Mac OS X v10.6 Snow Leopard).
    Videos that have been re-encoded for iPod with QuickTime 7 Pro.
    Videos that have been re-encoded for iPod with iMovie, Final Cut Pro, and others. Refer to Exporting a movie from iMovie HD to iPod for an iMovie HD tutorial.
    Video Podcasts that have been created for mobile devices.
    Video files after using the iTunes File > Create New Version > Create iPod or iPhone version option.
    Video files after using the iTunes File > Create New Version > Create iPad or AppleTV version option (iPad and AppleTV only).
    See below for detailed movie specifications.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • I have photos in iphoto but when i try to attach them to an email or facebook post i can not find them. also, when i do face recognition, only some of the photos are visible in the particular face section while others are not.

    not all of my photos seem to make it over from where i edit them to the main iphoto page

    Please explain how you are doing things
    finding photos is simple - <a href="http://web.me.com/larryhn/iPhoto_08_(version_7.x.x)_FAQ/Accessing_iPhoto_Photos. html"> click here for a discussion on the many correct and safe ways to access your iPhoto library photos.</a>
    How are you doingthis and what is happening and what is not happening?
    As to face reconition - it is certainily not perfect and you often have to add faces to photos
    as to yoou thrid question with inadaquate information for anyone to help you
    not all of my photos seem to make it over from where i edit them to the main iphoto page
    again we have no idea what you are doing unless you bother to tell us where are you editing them? How are you trying to get them to the main iPhoto page. Exactly what are you doing and what is happening and what is not happening?
    LN

  • Is it possible to commit one table, while other are rolleded backed

    Hi to all,
    I am working on a report that calls a package which populates some tables dynmically, after the report is done it does a rollback.
    I want to capture the data it populates in one of the tables, I have created a temp table, a procedure which populates the data before it does a rollback.
    My question is, when the rollback happens will mydata from the table will be rollbacked, if I do a commit in the procedure which inserts into my temp table will the data populated in others be committed too, in which case it will create a lot of problems. I cannot see the code of the package as how many tables are getting populated.
    Can I possible do a commit just for my temp table?
    Thanks to all

    Thanks,
    Actually I created a procedure like this.
    PROCEDURE insert_temp_tables IS
    v_temp_fin_r3licrpt_count number;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    SELECT COUNT(*)
    INTO v_temp_fin_r3licrpt_count
    FROM temp_fin_r3licrpt;
    IF v_temp_fin_r3licrpt_count > 0 THEN
    DELETE FROM temp_fin_r3licrpt;
    END IF;
    INSERT INTO temp_fin_r3licrpt
    SELECT *
    FROM fin_r3licrpt;
    COMMIT;
    END;
    I tested this in SQLPlus and it works fine it commits only the SQL in the transaction and all other statements remain uneffected. But the problem is that when I created the procedure in reports I got this error.
    Procedure Body: INSERT_TEMP_TABLES, 1 Error
    Error 127 at lines 5, column 8
    PRAGMA AUTONOMOUS_TRANSACTION is not a supported pragma
    we are using Oracle 6i reports, could this be problem.
    What was your suggestion by
    anonemous transaction procedure;
    Can you brief about this...
    Thanks again..
    Habeeb

  • HT201272 Some songs are greyed out while others are black. What does this mean and how can I change it? I'm tired of only 2 or 3 songs from an album repeating while the others disappear off the "Up next".

    Please help....I hate iTunes to begin with. Especially the latest they have come up with. Layout drives me crazy. And now....I find maybe a couple of songs in an album as "black" and the other titles are greyed out. What does this mean? I find it very frustrating as the black titles will repeat but the others seem to just disappear off the "play next" list. How can I fix this? And no...downloading from iCloud hasn't helped any.

    This sounds like you have some unchecked tracks. These are skipped during track to track playback. The track names are slightly greyed out in the album view. You can normally see the check boxes from the Songs view or you can change the status via the rght-click context menu.
    tt2

  • Some of my webpages are pulling to the right - ignoring Css while others are fine. Anyone have a similar problem?

    www.Hottelrealestate.com
    See that the landing, buyers, sellers, contact us are ok but "News and the town sites are a mess

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Scan to Email, not working while other are. HP 200 Color M251nw

    I work IT for a large company, with thousands of hp printers.  We  have very strict policies for printers.  Our network is configured to accept internal emails on port 25 to our SMTP address using no encryption or usernames, only IP.
    Last week I installed a new printer configured it and set the stmp to the correct ip on port 25 and only edited the sender for No_reply@. And i trippled checked the IP
    HP 200 Color M251nw
     I can ping the SMTP server from the cable.
    The printer can recieve network job.
    other printers are working with these setting.
    it can't scan to email.
    Other printers (different and simular models with the same settings) can scan to email.
    Any ideas why this isnt working?
    This question was solved.
    View Solution.

    Hello @MoonEater ,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

Maybe you are looking for

  • Web does not work after downloading Opera Mobile

    For two months now, my phone has been working perfectly, but three days ago, after I'd downloaded Opera Mobile, I'm not able to use the Web app on my phone. In fact, I can't open the Nokia Store or the Ovi Music Store using my home Wi-Fi connection.

  • I am looking for a route master app

    I recently downloaded Route4me app and found this very useful as I am a courier and it helps me to route my deliveries I was wondering if anybody knows of any apps preferably free if not for the right app it wouldn't be a problem I basically need som

  • Carriage returns in web galleries?

    Has anyone succeeded in putting carriage returns in web galleries? The most important place is in the caption option where you can string together a bunch of metadata fields. Surely people want a carriage return between their caption field and, for e

  • AppleID has been disabled. Resetting pwd doesn't fix

    I just got a new iPhone (1st one ever).  Now I can't use iTunes.  Every time I try to purchase something or use a pre-paid iTunes card I get the message that my Apple ID has been disabled.  I tried following the thread for a similar error message, bu

  • Need info about nvidia graphics card supported with premiere pro cs5

    Hi I need information about nvidia graphics card supported with premiere pro cs5 If I have a computer(portable) with this video card or graphics card : nVIDIA® GeForce™ GTX  285M with 1GB DDR3 Video Memory available in Single or Dual (SLi) Configurat