How can I avoid hardware crashes in reentrant vi's

I have an extensive testing application that tests a pneumatic device and I read and write to a single multi-channel power supply (Sorensen/Xantrex), and read from two pressure transducers (std 0-10 vdc output)
The station has two test 'cradles' that I have configured to run completely independent by using several reentrant vi's.  While doing my best to make it break, (as the operator surely will) I have two conflicts that have shown up.  First is in reading the pressure transducer on one side only.
I started with the two transducers connected to AI0 and AI1 but since moved the second transducer to AI2 just to see if it would help (not sure what I was expecting but tried it anyway)  On the second transducer, I am subject to get an error that won't allow it to read and indicates the resource is reserved.   I use the same (reentrant) vi to read both transducers and never get the error on the first transducer, only the second one.
Any thoughts on this would be appreciated.
Second conflict is in addressing the power supply, again, same (reentrant) vi but sending commands for channel 1 or channel 2.  After the first conflict, I lost the resource and could not read or write anything. Stopping and re-starting the application fixed this as it re-established the resource but this won't be an option once the system goes live.
Any thoughts on this one would also be much appreciated.  I can post code as needed.
For ref, running on Win7 32 bit with a USB-6221 Daq
Thanks
Doug
Doug
"My only wish is that I am capable of learning each and every day until my last breath."

I understand the approach(es) suggested but am concerned I may lose the integrity of the timing within each test sequence by using queues as once a test is started, a specific sequence of routines if followed and timing is important.
That being said, It will be easy enough to try and see what the results are.
I am not clear on the limitation you indicate on the AI's for the 6221 though. I have always set up multiple tasks for the various AI's on a single device but am only now am running into trying to read in a true parallel mode.  If I were to combine the two channels into a single task, would that resolve the conflict possibly?
If I have 16 AI channels but can only touch one at a time, that is a huge limitation if I were to have many AI's running in parallel loops.
Will try the mentioned approaches and see what happens
Thanks....    Doug
Semi-related: I had considered using a vi template for the two different test sequences as opposed to two loops in the top level vi but am thinking this would not really do anything to address the issues I am seeing as this would still require the same sub-vi(s) to be called on independently.  Plus I would have to feed a buttload of variables in and out that are depend to one side or the other.
Doug
"My only wish is that I am capable of learning each and every day until my last breath."

Similar Messages

  • How can I avoid crash of my iphone 5.

    How can I avoid crash of my iphone 5.

    You swipe left to right on the song, press the red delete button.
    If that does not work, turn off iTunes Match and try again.

  • How Can I Avoid Crashing on Pressing Backbutton?

    Customized hardware backbutton crashed in C++, but OK in C#:
    //in the constructor
    Windows::Phone::UI::Input::HardwareButtons::BackPressed += ref new Windows::Foundation::EventHandler<Windows::Phone::UI::Input::BackPressedEventArgs ^>(this, &AppExit::MainPage::OnBackPressed);
    //Handler
    void AppExit::MainPage::OnBackPressed(Object^ sender, Windows::Phone::UI::Input::BackPressedEventArgs^ e)
    Windows::UI::Xaml::Controls::Frame^ frame = safe_cast<Windows::UI::Xaml::Controls::Frame^> (Window::Current->Content);
    if (frame == nullptr)
    return;
    if (frame->CanGoBack)
    frame->GoBack();
    e->Handled = true;
    Exception:
    First-chance exception at 0x77AD210B in AppExit.exe: Microsoft C++ exception: Platform::DisconnectedException ^ at memory location 0x0124ECCC. HRESULT:0x80010108 The object invoked has disconnected from its clients.
    WinRT information: The object invoked has disconnected from its clients.
    Stack trace:
    [External Code]
    CoreUIComponents.dll!767de357()
    CoreUIComponents.dll!767dd6b5()
    CoreUIComponents.dll!767da92d()
    CoreUIComponents.dll!7678c446()
    CoreUIComponents.dll!767626f4()
    CoreUIComponents.dll!767d2443()
    CoreUIComponents.dll!767b735b()
    CoreUIComponents.dll!767ae183()
    CoreUIComponents.dll!767acd00()
    CoreUIComponents.dll!767a752c()
    CoreUIComponents.dll!767ab703()
    CoreUIComponents.dll!7679dfc5()
    CoreUIComponents.dll!7676576f()
    [External Code]
    But it works well in C#:
    //constructor
    Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
    //handler
    private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
    Frame frame = Window.Current.Content as Frame;
    if (frame == null)
    return;
    if (frame.CanGoBack)
    frame.GoBack();
    e.Handled = true;
    Can I avoid this crash?

    Hi Sal,
    I've tested it and I can see the first-chance exception thrown, but the error message does not look same:
    First-chance exception at 0x77776FB2 in App44.exe: Microsoft C++ exception: Cn::XH at memory location 0x018AF218.
    First-chance exception at 0x77776FB2 in App44.exe: Microsoft C++ exception: Cn::XH at memory location 0x018AE350.
    First-chance exception at 0x77776FB2 in App44.exe: Microsoft C++ exception: Cn::XH at memory location 0x018AE350.
    First-chance exception at 0x77776FB2 in App44.exe: Microsoft C++ exception: Cn::XH at memory location 0x018AE350.
    Actually we don't need to care about first chance exception, here is a blog:
    http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx even its long time ago but still helpful:
    Does a first chance exception mean there is a problem in my code?
    First chance exception messages most often do not mean there is a problem in the code. For applications / components which handle exceptions gracefully, first chance exception messages let the developer know that an exceptional situation was encountered
    and was handled.
    --James
    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.

  • How can I avoid bit stuff?

    ---- card=pci-can/2---
    how can I avoid bit stuff?
    when i am using ncgetattr.vi,the return value of series2 error/arb captue is 10100010.
    Then how can i resolve the problem!
    thanks.
    Work hard and enjoy life.
    Love CVI and Labview!
    Certified Labview Developer

    Hi 侠客
    The Series2 error/arb capture register indicates where the last error happened. In this case, the bit stuffing rules (not more then five consecutive bits of the same state) where violated. Typical causes are:
    Baudrate mismatch (most likely no commmunication at all possible)
    Improper termination (please see chapter 4 of the NI-CAN Hardware and Software Manual for more information)
    Wirering schema not compliant with the CAN specification (ISO 11898), e.g. stub/drop length too long, star-type setup instead of a chained setup 
    -B2k

  • How can i avoid iPad?

    How can i avoid iPad 1 crashes?

    What are you doing when the iPad crashes?
    What version of iOS are you running on the iPad?
    If there is an error message, what is the exact wording?
    What troubleshooting have you done? What were the results?

  • How can I avoid the need to OFTEN refresh or recover HP 2000 notebook?

    How can I avoid the need to OFTEN refresh or recover HP 2000 notebook? Windows 8.0.

    I found your support page by searching E0M18UA#ABA (as opposed to EOM18UA#ABA) which I assume was a simple typo. To answer your original question, the answer is to identify and isolate the cause of the errors and issues you are experiencing. Once you identify each issue, you can find what it takes to get beyond them without having to refresh or recover so frequently.
    You can only troubleshoot and identify the issues that are currently happening. If you are getting freezing right now, first take a look at this document specific to the freezing to narrow down the cause: Computer Locks Up or Freezes (Windows 8)
    A link to this document is contained in the previous one, but it is worth pointing out that this might be valuable to test for hardware failures: Testing for Hardware Failures (Windows 8)
    Another valuable tool when trying to identify the source of the problems, is to perform a clean boot after having one of the issues and trying to recreate it. This shows how to  remove  startup items. A good strategy is to disable half of the available items first, then restart and try to recreate the issue. If you cannot recreate it then perhaps there is a problematic startup item. If you can recreate it then disable half more, and repeat a few times until you empty the startup items.: How to perform a clean boot in Windows
    I hope this helps, and by no means is this a recipe to fix your current issues, but a few strategies to help you better identify the issues.
    TwoPointOh
    I work on behalf of HP
    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 bottom to say “Thanks” for helping!

  • Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • How can i avoid restarting tomcat server when servlet is modified?

    please advice me that how can i avoid restarting the tomcat server, whenever a servlet file is modified in my application. is their any way ?

    No probs. Here's how I do things...
    1. Install tomcat as normal (e.g. I install to C:\Apps\jakarta-tomcat-5.5.4)
    2. Create a webapps directory in your eclipse project with the following directory structure
    MyEclipseProject
       - src
       - conf
       - webapps
          - MyApplication
             - META-INF
             - WEB-INF
                - classes
                - lib
                - pages3. Set the project's output folder (e.g. bin folder) to webapps/MyApplication/WEB-INF/classes
    4. Put all your jar files in the lib directory
    5. Put JSPs / HTML in the pages directory (you may also want to create additional directories for TLDs, config files etc)
    6. Ensure your web.xml is in the WEB-INF directory
    7. Although it isn't essential I create a context.xml file and store it in META-INF, e.g.
    <Context reloadable="true">
        <!-- Default set of monitored resources -->
         <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/struts-config.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/tiles-defs.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/validation.xml</WatchedResource>     
    </Context>I use this to set monitored resources that will trigger an automatic appliation reload and to configure JAAS (not shown). See the Tomcat documentation for additional information.
    8. In the 'conf' directory I create a server.xml file used to configure Tomcat (you can copy the one from your <TOMCAT_HOME>/conf/server.xml).
    After copying the file change appBase attribute in the host element to be the full path to the webapps directory. You can also change the HTTP and HTTPS ports if you wish
    9. Download and install the Tomcat Launcher plugin from Sysdeo.
    10. In Eclipse's Preferences menu you will see a new entry for Tomcat. Click this then
    a. Set your Tomcat Version
    b. Set your Tomcat Home
    c. Set "Context declaration mode" to server.xml
    d. Set the configuration file to the full path to your server.xml file created in step 8
    On the "Advanced " sub page select all relevant projects to add to the Tomcat classpath
    On the "JVM Settings" page add all the jars in your WEB-INF lib directory to the class path
    On the "Source Path" page select all relevant projects
    Now if you start Tomcat using the Tomcat icon, you will be able to remote debug your application. If you change web.xml (or any other file in your context.xml watched resources) it will automatically reload. Any changes to JSPs will automatically be picked up (providing your tell your browser not to use the page in cache - e.g. CTRL+F5 in IE)
    There are some limitations that I'm still working on however. Primarily that I haven't included the Tomcat Manager application in my webapps directory, so Sysdeo cannot perform a reload. This means that if I change a source file, and eclipse auotmatically rebuilds, Tomcat doesn't pick up the change unless I either change a watched resource file (e.g. web.xml) or stop and restart Tomcat.
    There's no reason why this can't be fixed, I just haven't got round to it yet.
    I'm sure there are lots of other (probably better) ways of achieving the same thing. This was the first method I tried and it worked, so I stuck with it. I'm not a Tomcat config guru and I'm sure other forum users could provide some improvements should they wish.
    Post if you get into trouble, however I won't be able to respond until next week.
    Cheers,
    Steve

  • I have made a book of my I Photo pictures. In certain layouts there is a textframe. How can I avoid the frame becoming visible in the print if I don't want to write anything? Should I just leave it or should I delete the text "Write your text here" ?

    I have made a book of my iPhoto pictures. In certain layouts there is a text frame. How can I avoid the frame becoming visible in the print if I don't want to write anything?  Should I just leave it untouched or should I delete the instructing text "Write your text here"?

    Most pages have layouts for pictures only or pictures with text boxes. Either select the same layout for that page but the one without the text box or put a space in the text box.
    Putting a space in the text box will avoid getting the warning when ordering that there's an unfilled text box in the book. The box will not be visible in the final product.  You can and should check the book before ordering by previewing it as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it
    Happy Holidays

  • How can I avoid (on a mac) getting called on Skype...

    How can I avoid (on a mac) getting called on Skype when I'm not signed in?
    It's really annoying.
    I'm not sure if it's supposed to be that way, but suddenly I get the skype-calling-sound, and I have to log into the skype app to abort the call. The persistent calling bastards kept on calling after I aborted the call and left the app, so I ended up muting my speakers for a while. It really shouldn't have to be this troublesome.

    That's like asking how many cows can I get into a field.  It depends on the size of the field, size of the cows, the terrain of the field, etc.  We could use a bit more information on what you're trying to accommplish:
    1 - where are the photos being downloaded from.
    2 - how big are the photos?
    3 - where are you going to put the photos, i.e. into folders, into an iPhoto library?
    4 - how big is the hard drive in the Mac Pro and how much free space do you have on it?
    etc., etc, etc......

  • How can i avoid displaying runtime error in intractive report

    hi gurus
    my question is, in interactive report when i reach 20th secondary list after that am getting runtime error when i click again. So i wanted to know how can i avoid that run time error.
    regars
    imran

    Hi Imran,
    Basically we can have one basic list and 20 interactive lists.
    Once when we reached to 20th list then it goes to shortdump.
    So, inorder to avoid that we can modify the system field
    SY-LSIND.
    Just see this example and try this. I hope this will be useful for you.
    REPORT  ZSAMPLE1111.
    data: begin of itab occurs 0,
            matnr like mara-matnr,
            mtart like mara-mtart,
            mbrsh like mara-mbrsh,
            end of itab.
    data: begin of jtab occurs 0,
          maktx like makt-maktx,
          spras like makt-spras,
          end of jtab.
    select matnr mtart mbrsh into table itab from mara up to 10 rows.
    loop at itab.
    write:/ itab-matnr, itab-mtart, itab-mbrsh.
    hide itab-matnr.
    endloop.
    at line-selection.
    select maktx spras into table jtab from makt where spras = 'EN' .
    case sy-lsind.
    when '1'.
    loop at jtab.
    write:/ jtab-maktx, jtab-spras.
    endloop.
    when '20'.             * changes see here.
    sy-lsind = 1.
    when others .
    write:/ 'name',sy-lsind.
    endcase.
    I hope this will be helpful for you.
    <REMOVED BY MODERATOR>
    Cheers,
    Swamy kunche
    Edited by: Alvaro Tejada Galindo on Apr 15, 2008 4:01 PM

  • How can I avoid a full scan when ...

    Hello
    How can I avoid a full scan with I apply the aggregate function "MIN"
    SQL> select min(c1) from hh;
       MIN(C1)
             1
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (FULL) OF 'HH'Regards
    James King

    The table 'hh' does not have statistics. Assuming that there is an index on the column c1, statistics are computed on the table and its indexes, you may see a
    INDEX (FULL SCAN (MIN/MAX)) of the index on column 'c1'.

  • When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    Try validating your installed fonts and fixing any errors that show up. To do this see this article: http://reviews.cnet.com/8301-13727_7-20085570-263/safari-in-os-x-lion-replacing- text-with-block-a-characters/

  • Travelling to the UK, want to use camera only on my iphone, how can i avoid charges?

    Travelling to the UK, want to use camera only on my iphone, how can i avoid charges, do I just have to turn my phone to airplane more or do more?

    Just put your phone in Airplane mode, then go back into settings & turn WiFi on.
    No nasty surprises...enjoy your trip.

  • Every time I sync my iCal computer with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications?

    Every time I sync my iCal on my computer through iTunes with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications? I have been doing this for several years and this problem is a more recent issue, like in the last 6 months. I have been deleting the duplicate entries, on both systems, but some duplicates reappear through "general" entries that are connected to the correct color for a Calendar, but not the name. I am going nuts and wasting tons of hours trying to get the 3 calendars to sync without generating duplicate entries.

    Choose one of the Calenders on ONE of the computers OR the MobileMe as the Master / correct account.
    The REINITAILISE the data of MobileMe within preferences on the computer defining the datatransfer correctly (in the advanced box of preferences). The synchronise iphone contacts and calender directly on-line to MobileMe.
    I posted a question on this today, and gave my own reply !
    Regards,
    Kevin

Maybe you are looking for