User interaction on VI and subVI running simultaneously

By using labview6.1 how can i create an application which hav some buttons on the vi (say parent VI) & on clicking on any of these buttons will pop another VI(say child VI) to execute.
NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction.
PROBLEM :: Initially if i clicks on any button present on parent VI then
the corresponding childVI pops up and start executing,thats fine...., but
now if i clicks another button present on parent VI then the click event doesnt works i.e. one more child VI doen't comes up.
The conclusion is that the Graphical user Interaction can be only on called
SubVI(while in execution) but not on the main VI si
multaneously.
I hav searched examples for the similar kind of problem but didnt found any. Kindly help me for rectifying the above problem.

You have partially answered the question yourself;
"NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction."
The fact that the parent is halted until the sub-vi returns is in other words as it is supposed to be; it's data flow controlled execution...However you can put the sub-vi in another loop (that way only that loop will halt), or you can call it dynamically using an invoke node with the wait until finished set to false.
MTO

Similar Messages

  • SubVI running simultaneously

    I'm a beginner in labview and I'm trying to translate a program I put down
    months ago in VB.
    I've got a block that executes a task and that loops continuously...
    If I need 8 tasks running togheter independently, I copy the block 8 times
    in a main while loop and it works correctly; if I try to convert the single
    block into a subVI in order to call it 8 times from a main VI, the first
    subVI called never release the program control, even using global variables
    or property nodes, so the other subVI will never be called.
    In VB this wasn't a problem because of the events programming, any ideas for
    labview?
    Thank You
    Franco

    Sounds like you need to make the VI reentrant as Doug said. This should fix
    the problem.
    -Tom
    "News di Libero" wrote in message
    news:W9MO7.7$[email protected]..
    > I'm a beginner in labview and I'm trying to translate a program I put down
    > months ago in VB.
    > I've got a block that executes a task and that loops continuously...
    > If I need 8 tasks running togheter independently, I copy the block 8 times
    > in a main while loop and it works correctly; if I try to convert the
    single
    > block into a subVI in order to call it 8 times from a main VI, the first
    > subVI called never release the program control, even using global
    variables
    > or property nodes, so the other subVI will never be called.
    > In VB this wasn't a problem because of t
    he events programming, any ideas
    for
    > labview?
    >
    > Thank You
    >
    > Franco
    >
    >
    >

  • Second s5 update has made wifi and data run simutaniously, being charged for data only way to turn off Data is to go to settings. I had same issue with my other phone. Recieved two replacement phones the SIM card did not work on replacements took phone ba

    Wifi and Data running simultaneously. Data was being charged to my account even though I was on WIFI. No one can fix the issue. I have wasted 8 hours of my life and went and returned my phone and got a new one yet after the last update I now have WIFI and Data showing that they are running simultaneously.  I have looked at numerous message boards and turned off Caller ID don't have Volte on my phone but do get an error with Visual Voice Mail. I don't want any of these services, you are not helping your customers Verizon or Samsung with forcing us to update. I tried not to update my NEW phone that I had to get from Costco because of this exact same stupid issue happen on my last one. But every time I said NO to update the next time I did anything on the phone the UPDATE would pop up again. I would say NO it would come back. I was doing a text and it came up and I hit update not wanting to and then my phone began updating on a low battery. I had to rush to put on charge and then my WIFI and Data came back on together with arrows on all going up and down. I HATE the lack of support I get from SAMSUNG and VERIZON... Verizon washes their hands and say these are not Updates even though these are the features we have on all our phones like Visual Voice Mail and Volte...

    I did look at the Settings/Cellular to check the applications.  This is one of the steps I did with the person from Verizon who was an "iPhone Specialist".  And he didn't see anything unusual.  And I can honestly tell you they have very minimal number of apps on their phones.
    When I went to the Apple Store the first time with this problem, they had me update the phones iOS systems to see if this would correct the problem.  They were each running older versions but different versions.  One son had one update to do and the other had a couple of updates needed.  So, the problem started before they were updated and they weren't even on the same update.  And nothing changed after we did the updates.
    I didn't reboot the router and modem, because I'm not having any other issues with my phone, my husband's phone, our iPad, xbox, PS3, or laptops.  Would the wifi only affect their phones?

  • How can I have a program prompt a user to input a selected number of simultaneous (different devices run off com/rs232 ports) and be able to compile all the data and/or graph it simultaneously?

    I have a project that I'm working on that I could use some help on.
    Some background on it is I'm taking data from a balance via RS-232 (can be a selectable list of balances), and then communicating with them on their own separate COM port. I need these to then run in parallel to then take masses in regular increments and then output them to a graph and/or TDMS file. 
    What I'm trying to have is that a subVI prompts the user to how many simultaneous runs will be going.
    Then I will want multiple pop prompts (one for each simultaneous run) which will have initial data input (data cluster) and then associate these with the COM port and the specified balance. 
    I initially thought of utilizing a For Loop this way but I can't get these windows to pop up multiple times while storing their own values in say a cluster array. Can anyone give me any ideas to get me a little further?

    Cameron,
    I've created a prompt for the user to select the number or runs to be run simultaneously. 
    This then should trigger the amount of prompts the user needs to input - ie VISA resource, and headers to label the "samples".
    I want this to be done in multiples (somewhere around 1-10 simultaneous runs - bounded by the program) so that data points from multiple sources can be taken and graphed/saved to file. I just am having issues with the loop situation to be able to keep prompting the user X times and also output the data to the front panel. Originally i thought I could somehow manipulate a tab control container but I'm getting roadblocked. 
    Does that help you understand what I'm trying to do?
    I've attached an image of what I want the user to input for each sampling.
    Attachments:
    Capture11.JPG ‏24 KB

  • I would like to know whether its possible to start running a vi automatically without user interaction after a system has booted up and launched labview?

    I would like to know whether its possible to start running a particular vi automatically without user interaction after a system has booted up and launched labview?

    > I would like to know whether its possible to start running a vi
    > automatically without user interaction after a system has booted up
    > and launched labview?
    >
    > I would like to know whether its possible to start running a
    > particular vi automatically without user interaction after a system
    > has booted up and launched labview?
    >
    LV doesn't have any sort of Startup folder as we are a little concerned
    about the security issues this brings about. You can specify VIs on the
    command line for LV to open. And VIs can be set to run when opened.
    Combining these features, you wind up using the system's Startup folder,
    placing either a batch file or a shortcut to LV with the command line
    options added to list out the VIs, and finally, set the VI properties
    so
    that the VIs run when opened.
    Greg McKaskle

  • How to run eCATT in dialog mode(foreground) without user interaction(Enter)

    Hi,
        As part of performance testing using eCATT we want to execute a test script in dialog mode(foreground) without user interaction like pressing enter at end of each screen. The reason behind this is we want to run a test script 1000 times in dialog mode to analyze the performance of that particular transaction code. Hence its not practical to keep pressing enter at end of each screen. We do not want to execute this in background as that does not simulate the real time transaction processing and give the exact performance analysis.
    We have a test script with VA01 recording and are able to execute it perfectly in background as well as foreground (by pressing enter at end of each screen).
    I would like to know if there are any settings to be made to execute the test script in dialog mode without pressing enter. I have referred the below link which has not solved my purpose.
    ECATT - Running in Foreground (Enter Key)
    Thank You.

    Gopi,
    I never used this transaction before, but my approach would be as below. You may want to try and let me know how it works.
    Before running this script from ST30, first try to run from SECATT for one iteration to make sure the script and target system RFCs are working. Then try again in ST30. Still if you have the issue, ask your basis to take a look when you kick off from ST30 in the target system whether ST30 were able to successfully make the RFC call to that system.
    thanks
    Venkat

  • Future of Interactive PDF's and their ability to run on Slate/iPad type devices?

    I am sure I am not the only one wondering about this question and am hopeful an Adobe Evangelist can answer these questions.  I love what Adobe has done with indesign CS5 and the ability to combine video, animation and high quality layout content all in one document.  What is currently missing is for the pdf reader to be "touch" aware so that people can scroll through pages like an ebook, which I would think would be fairly easy to do and would give me the complete picture I am looking for.  So...a couple of questions.  I am assuming that if you use the embedded flash features within a pdf document it would require the flash player? Is it possible Adobe could figure out a way to run the flash runtime inside of pdf to get around it?  Unfortunately Apple has decided to be jerks about the whole thing, but the reality is that the iPad is not going away.  Also, if you use Adobe's encoded video format and reference it via html from inside the .pdf, is that also not going to work on the iPad?(not sure if the video player is also driven through flash).  I think it would be a good idea for Adobe to support video formats other than their own anyway for playing in a .pdf (i.e. H.264).  I guess the other alternative would be to be for Adobe toembed HTML5 content into the .pdf instead of flash for the animations and that takes the work off of the designer that way.  Regardless, just wanting to know what the overall direction is as I am anxious to develop rich content using Indesign + interactive .pdf's, and I don't think you can achieve the same level of formatting or multi-media with the epub/ebook format as you can with an interactive .pdf, so any insights as to what Adobe's plans are would be appreciated.  I also don't want to start creating content that is going to be dead soon...
    PS: I totally don't have a problem with going with a PC based slate device that runs flash, but the problem is several of my friends already have an iPad and that limits my distribution audience.  As stated earlier, it is very disappointing Apple has decided to be so restrictive and proprietary about this, but I can't believe there is not some smart Adobe person in there that can't find a technical way around Apple's walls.   Any insights would be appreciated.

    I have also been trying to implement audio into a PDF file.  I am working on a presentation that will be presented to a client on an IPAD and then they will have the opportunity to keep the IPAD and some additional reference materials that are uploaded to GoodReader (awesome app).  I developed the presentation in Power Point and converted to a PDF.  I was happy to see that GoodReader recognizes the hyperlinks between the slides (pages) however I would like to give the end user the option to hear narration or an audio blurp about what is going on on each page.
    Thought about Keynote for the presentation but it doesn't support narration.  Thought about trying to link directly to a web based audio file, that doesn't work.  Thought about trying to link to an ITunes file, that doesn't work.  This type of functionality is GREATLY needed.  I wish that Acrobat had the option to embed an Audio file that didn't turn into flash (maybe javascript?), that would be an ideal solution.
    If anybody finds a way to do this, I would really appreciate it!

  • Is it possible for a module to remember last viewed slide and user interactions without an LMS?

    I am developing a captivate module (using Captivate 6) that can be run either off a local hard drive or web server (not an LMS).
    I am hoping that the user will be able to close down the module and then return to it at a later time. Considering the module will not be run via an LMS Is it possible for the module to remember not only the last slide that the user viewed but also any interactions that the user has conducted. For example: saved information in variables, image states (whether or not they have been clicked etc), widgets (I am hoping to use the drag and drop widget so I want the course to be able to remember what items they have dragged where).
    Is this possible? I know there is a bookmark widget that uses cookies to remember the last slide the user viewed. I am also aware of another widget that allows you to save variables for use between projects, but in this case I will only have one project file. Is there something out there that does everything I need?
    Does the 'self paced learning' checkbox in the TOC save user interactions?
    Thanks! 

    Thanks Lilybiri. So it sounds like there is no easy way to save  interactions when run locally. Would using javascript (thats run when a user clicks a save button for example) be possible? Get the script to save a cookie with all the variables and 'states'? I know that saving the variables is possible because there is already a widget that does that, so wondering if there is a way to save the slide states as well (for example whether or not images have been clicked etc).
    Alternatively, if I create the project in captivate, is it possible to import into flash with all the functionality and actionscript intact and editable? From there I could then modify it to remember the saved states? (i am not proficient with actionscript  so just thinking of potential solutions).

  • Automated cropping and resizing with user interaction

    Dear all,
    after hours of tests with batch processing and search in the internet maybe somebody of you can help me:
    I have roughly 3000 jpgs. in one folder (all different sizes and proportions), and I need all of them cropped to a specific proportion (width:height = 4:3) and then resized to a specific size (e.g. 800 x 600px). Batch processing can do a lot, but one critical step is not possible: As soon as one picture has been loaded into PS, I need a user interaction to determine the crop area freely (size and position) before the rest of the process (cropping, resizing and saving) can run automatically again.
    For example a picture of 2000 x 1000 px: The"crop window" lets me to choose an arbitrary area concering size and position (i.e.at 20px from the left, and 10 px from the top, size 1000 x 750 px = fixed aspect ratio  - and different for each picture), then the cropped area is resized to 800 x 600px, then it is saved.(Similar to the marquee tool with fixed aspect ratio)
    The crucial act is the interaction with the "proportional cropping". If the resizing is not possible in the first step, I coudl also do this with a second batch run myself.
    If somebody can help me, I would be very glad....
    Thanks a lot,
    Elmar Hartje

    This should give you the user resize then resize to 800x600.
    var doc=activeDocument;
    if(doc.width>doc.height){
    cropFourThreeRatio(true);
    doc.resizeImage(new UnitValue(800,'px'), undefined, undefined, ResampleMethod.BICUBIC);
    }else{
    cropFourThreeRatio(false);
    doc.resizeImage(undefined, new UnitValue(800,'px'), undefined, ResampleMethod.BICUBIC);
    function cropFourThreeRatio(landscape) {
    var startRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.INCHES;
        var desc1 = new ActionDescriptor();
            var desc2 = new ActionDescriptor();
            desc2.putUnitDouble( charIDToTypeID('Top '), charIDToTypeID('#Rlt'), 0.000000 );
            desc2.putUnitDouble( charIDToTypeID('Left'), charIDToTypeID('#Rlt'), 0.000000 );
      if(landscape){
            desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 147.000000 );
            desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 195.750000 );
      }else{
       desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 127.500000 );
       desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 96.000000 );
        desc1.putObject( charIDToTypeID('T   '), charIDToTypeID('Rctn'), desc2 );
        desc1.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), 0.000000 );
    if(landscape){
        desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 216.000000 );
    }else{
      desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 216.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Rslt'), charIDToTypeID('#Rsl'), 0.000000 );
    try{
        executeAction( charIDToTypeID('Crop'), desc1, DialogModes.ALL );
    }catch(e){app.preferences.rulerUnits = startRulerUnits;}
    app.preferences.rulerUnits = startRulerUnits;

  • User interaction while running a logout hook

    Hi:
    I've completed my very first scripting project - copying files from a user's bootcamp partition to an external drive to act as a daily backup.
    It's a simple copy command that's set to copy the user's windows directory and to ignore any errors (those nasty windows .dat files). Works perfectly when I logout, no trouble at all.
    Because this will be implemented for users with basic techno skills, I'd like to introduce a little user interaction into the script. I wrote a whole script to that includes applescripting to pop up dialog boxes, let the user choose if he/she wants the back to proceed, tell them how long it will take, etc.
    On it's own as an application, this works fine, however I can't get it to work as part of the logout script. I'm assuming since the finder has quit, dialog boxes from the Applescript won't display?
    Is there a way to get around this so I can run the script as part of the logouthook and have display dialogs/user interaction? My goal is for this to all happen automatically at logout/shutdown/restart with the user only having to select one of these options and not have to run a separate application.
    Thanks

    Hello
    What I usually do when I know a procedure will take long, I change the cursor style before I call the procedure with:
    set_application_property(cursor_style, 'BUSY');
    and after the call to the procedure, you set it back to default.
    set_application_property(cursor_style, 'DEFAULT');
    I don't really have an answer for your problem, but this is another way to do it.
    So I Hope this help.
    Karine

  • Using Google GWT to create (Dashcode) widgets for iBook Author  I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pa

    I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pages (for example, http://softoption.us/content/node/437 scroll to the bottom). In theory, iBookAuthor can bring in most html5, and much javascript. The technique is to wrap the html in a folder, with 2 extra files, a plist and a default png and then change the extension of the folder to ‘.wdgt’. This is the technique for making Dashboard widgets for the Mac, and Apple even have the Dashcode software to do it. So what you really do is to make a Dashboard widget, then iBookAuthor can import it.  So far, so good. And some  folk have been doing this, for example http://www.prweb.com/releases/2012/2/prweb9242432.htm http://www.panophoto.org/forums/viewtopic.php?f=64&t=10417&p=158330#p158423 However, if you start with GWT and create a single page with one button and a Hello World, compile it, and get the WAR file (I use Eclipse here)… the Safari browser and others will run it properly (even on an iPad). Then if you wrap it, a proper Dashboard widget is created, which runs properly on a Mac. Then if you go to iBookAuthor and put a custom widget in the Text, then drag it in. It is accepted by the text and shown as being there. However, if you use Preview to look at it on an iPad, it is gone (or was never there in the first place). Anyone any ideas on this? [And iBook Author seems to give no warnings.] The widget is at https://dl.dropbox.com/u/46713473/Test6.wdgt.zip I have bells and whistles that I’d like to get into an iBook!
    Thanks for any insights.
    Martin

    I do have a little to add, which might help someone. Indeed, opening a blank page and dragging the widget straight in seems good in difficult cases. But, actually, I was also able to insert successfully from the Toolbar especially to blank pages. So, it may have been something to do with the columns and stuff like that. Anyway back then the insertion would show in iBooks Author but not in the Preview on the iPad. I moved on to actual Google Web Toolkit output javascript. Basically I had three at hand to try: a Hello World with a button which went straight it, one of moderate complexity, (for example with a built in Lisp interpreter), which also went straight in, and finally a more complex one that initially was rejected by iBook Author. Author complained that there was an unsupported media file (of course, Author does not tell you which one it is, that would be too easy). [Remember, this was a proper working Dashboard widget which could be installed on a Mac]. Among other things I had read remarks about .gif files. When looking through the GWT war directory at the actual javascript etc files, I noticed there were two gifs there one called ‘clear.cache.gif ‘  and a second one called  ‘0F89659FF3F324AE4116F700257E32BD.cache.gif’. (Now, there is obfuscation so the numbers here may be different from case to case.) The clear.cache.gif did not seem to be anything special. But the other one is an animation. It is three little boxes that twinkle (rather like a waiting spinning cursor).  So, I opened that file and saved it to itself (that picks the top frame of the animation and saves only that, leaving you with an unanimated gif). The resulting widget drags and drops into iBooks Author (and seems to work properly at a quick glance). So, if you are having trouble with ‘unsupported media files’ converting animated gifs into unanimated gifs might help in some cases.

  • Tables for Payment Proposal and Payment Run by user

    HI,
    I am looking for some help on a task that I have been given to complete
    I am looking for tables on a payment proposal and a payment run
    I would like to be able to see who run the proposal and who run the payment run for a year to date 
    Thanks and Kind Regards
    Angela Prinsloo

    Hi,
    Payment proposal and payment run
    Table REGUV
    XVORE = 'X'
    XECHT = ' '
    Payment run user details
    REGUA
    You can explore REGU* tables for more automatic payment run related details.
    Best Regards,
    Madhu

  • What is the interaction between calling VIs and subVIs using VI Server?

    I'm studying for the CLAD and one of the lines in NI's preparation document here is this:
    What is the interaction between calling VIs and subVIs using VI Server?
    I know how to use the "Call By Reference" function to call a VI, but not necessarily a subVI. I thought a subVI is always loaded with the calling VI and has nothing to do with VI Server. What am I missing?
    Solved!
    Go to Solution.

    Hi Bmihura,
    I think this article will clear up how the VI Server works with subVIs called dynamically or statically.
    Calling a VI by Reference
    Best Regards,

  • Accepting user input and then running grant statements

    Hi I have a script which creates a database, at the end of this script I need to change user, and then run a number of grants. I need to accept the name of the schema to make the grants to from the user. The code I have been trying to use is below
    --Prompt for portal password and connect as portal
    connect portal
    --Issue grants for portal apis
    PROMPT 'Enter the schema name'
    ACCEPT schema
    @provsyns.sql &schema
    PROMPT 'Enter the schema name'
    ACCEPT schema
    grant select on WWSEC_PERSON to &&schema;
    PAUSE
    grant select on WWSEC_GROUP$ to &&schema;
    PAUSE
    grant execute on wwctx_api_private to &&schema;
    grant execute on pkg_oid to &&schema;
    grant execute on pkg_error_handling to &&schema;
    UNDEFINE schema
    When I run the code I get and ORA-00987: missing or invalid username(s)
    Can anyone help me please?
    Many thanks,
    Danny

    Hi,
    You can write a genric procedure to achive the desired output. Pass 'Y' or 'N' in the procedure.
    Call that procedure in simple pl/sql block during runtime using substituton operator.
    For ex
    create or replace procedure p1(category_in in varchar2)
    IS
    BEGIN
    if (category_in='Y')
    then
    prcdr1()
    /** Write your logic here ***/
    elsif(category_in='N') then
    prcdr2()
    /** write your logic here***/
    end if;
    exception
    /***write the exception logic ***/
    end p1;
    Begin
    p1('&cat');
    end;Regards,
    Achyut K
    Edited by: Achyut K on Aug 6, 2010 5:20 AM

  • HT2542 Hi, I created a new user on mac, Admin but i can't use adobe CS6 while the original user is admin too and all programs are running normal. How can i solve this problem?

    Hi, I created a new user on mac, Admin but I can't use adobe CS6 while the original user is admin too and all programs are running normal. How can I solve this problem?

    Hi Amanda,
    Software applications are usually installed in the Applications folder on the Macintosh HD and are accessible to all users.
    I would advise you to check the Applications folder and see if your software is in there.
    Next step would be to Control Click or Right Click on the application and choose "Get Info" and make sure the permissions are set to "Read & Write" for all users. The article below provides more details:
    Troubleshooting permissions issues in Mac OS X
    http://support.apple.com/kb/ht2963
    You may need to contact Adobe Support if this does not resolve your issue:
    http://helpx.adobe.com/photoshop.html
    Hope this information helps!
    - Judy

Maybe you are looking for