Execute a non Stop Action during others actions

Hello,
I have a problem with my program. I have developping a communication with the serial port with the example of Labwindows. But it read when the users rest on the button. I would like read the serial port all the time and can do other action in the same time. Can you help me please ?
Thank you,
Regards

Hi romess, here you are with the need of performing several tasks inside the single program. This can be obtained in several ways; here a non-exhaustive list of possible solution, in order of increasing complexity:
Standard UI timer: inside the callback perform the serial port activity. Given the time of the serial port process, you must define a timer interval so that some time is left for user interface activity
Asyncronous timer: the same as above, with some multithreading added due to the way async timers are structured. CVI offers a specific instrument (<cvidir>\toolslib\toolbox\asynctmr.fp) to handle such timers; they have the same callback definition of standard UI timers so that what you have developed for the above solution can be portes almost 'as is' to async timers
Multithreading
When developing programs that have two or more independent tasks, some precautions are to be taken in order to prevent contemporaneous access to shared resources or to internal variables/objects: a good starting point is to read <cvidir>\bin\MultithreadingOverview.pdf document, which even if aimed to pure multithreading structures, nevertheless gives you a conceptual framework on the possible problems you can find and how to prevent them.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Any reason why my code isn't executing the "stop" action?

    Any reason why my code isn't executing the "stop" action?
    sym.getComposition().getStage().getSymbol("_001").$("_002").$("_003").bind('mouseenter',fu nction(e){
    e.preventDefault();
    $(this).unbind('mouseenter');
    sym.getComposition().getStage().getSymbol("_001").$("_002").$("_003").stop("over");
    See my file here http://twistedpancreas.com/edge/misc/dropDownNotWorking.zip
    The dropdown should change to orange when rolled over, but it's not
    Any help is appreciated.

    Thanks rhemanthkumar,
    so .$ should only be referenced in the last mention of a symbol, all others should be .getSymbol ?

  • Interactive script editor: read values of answers into non-branching action

    Dear all,
    When we develop a new interactive script, I would like to read the value of the answers into a non-branching action.
    For examle:
    Are you ill? yes/no
    If no --> are you staying on another addres then [customer_adres]? yes/no
    if no --> please maintain the adress
       a) ZSTREET
       b) ZHOUSENUM
    Now at the end, I want to trigger a non-branching action which reads the values of ZSTREET and ZHOUSENUM. Could someone give me a hint?
    Regards

    Hi,
    I think u can ref to CL_CRM_IC_SCRIPT_ACT_BPSTAT2 to create your own class inside execute method.U can read out data of bp address..
    pls reward when it is helpful.

  • Adobe Encore CS4: End action will not execute because of end action on the final chapter point

    Error screen:
    Error I’m getting for section titled Notes (PP 45 second video): “End action will not execute because of end action on the final chapter point.”
    The icon that shows error is in top line second from end.  I’m trying to 'end action' that portion of the video by going back to 'menu default'; also tried end action w/ ‘Stop’ and neither work.
    I saw a post about checking timeline.  Not sure what I’m looking for there.  I have nothing in Orphanage area.  I also tried building despite Check Project error and it will not build project.  Any suggestions on how to fix: “End action will not execute because of end action on the final chapter point.”?

    Select chapter one on that timelne. Look in the properties panel. Does it have an end action? You do not want an end action on the chapter; just on the timeline itself.
    That will not generally prevent a build, however. So you may have other issues.

  • Stop Action

    I know there must be a string about this, but couldn't find
    one.
    I started this file in AS 2 and had to switch to 3 while I
    was adding a scroll bar MC - following tutorial and saw I had to
    use AS 3. But, now none of my stop actions work. ??? I've looked
    all over and some sites even say that it's the same - stop(); I
    have a preloader like this:
    stop();
    this.onEnterFrame = function() {
    var amount:Number = this.getBytesLoaded() /
    this.getBytesTotal() *100;
    loader._xscale = amount;
    if(amount == 100) {
    this.gotoAndPlay(3);
    delete this.onEnterFrame;
    on frame one and then on frame 3 a stop(); with a MC on it
    that contains everything.
    Any help:

    Your problem isn't caused by stop, but by a different approch
    to events and handling of bytes loaded. You might use this piece of
    code:

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • JSF Page is not  rendering correctly on NON JSF Action

    Hi All,
    When I go from JSF actions (clicking HtmlCommandButton HtmlActionLink), I am getting the correct page. But when I come from non jsf actions say if I come through by clicking normal anchor tag or javascript action or normal html submit button, I am getting same old rendered page. How can I overcome this problem??
    Thanks
    Sudhakar

    I am getting same old rendered pageIn otherwords, page is not getting refreshed and contains old data

  • Stop action doesn't work

    I have a simple website with five pages set up. There is no
    code other than the code on the first frame, plus a stop action on
    each section. The first thing in the code is the stop action, but
    it still keeps running through all the frames when I test it, and a
    movie clip set up in a similar way does the same thing. What could
    be causing this? I tried taking all the code out of frame 1 except
    the stop action but it didn't make any difference. I am starting to
    work with actionscript 3.
    thanks

    yes i think you problem is the publish setting ... you are
    still set to publish as2... change it as3 .....
    and this code is even cleaner that the prev it work well too
    stop();
    var btnArray:Array = [HOME,GROUP,REVIEWS,CLIENTLIST,LISTEN];
    function moveTo(e:MouseEvent) {
    var page:String = e.target.name;
    gotoAndStop(page);
    for (var i:Number = 0; i< btnArray.length; i++) {
    btnArray
    .addEventListener(MouseEvent.CLICK, moveTo);

  • Stop(); Action doesn't work in AS3?

    I'm a designer and usually work in AS2.
    But I created a movie in as3 (to use the Bones function), and now my stop actions are not working.
    What I usually do for my movies is break the movie down in parts on the Main timeline (Start/Content/End), place stops on each of these frames.
    And within the Movieclips that play on these labels I put a call:
    stop();
    _root.gotoAndPlay("Content") etc...
    Anyways any fixes for this in AS3?
    I'm using CS4 if that matters.

    The stop() command works as well in AS3 as it does in AS1/2.  What doesn't work is using AS2 terms like "_root".  In general, if a stop() command is not working it is because some other code is failing or otherwise overriding the stop().

  • I upgraded my iPad to version 5.0, I had a message on my Setting to upgrade the software to version 5.0.1, I select install and during installation my iPad2 star rebooting and now doing it non stop. I have no time to restore or do anything

    Hi,  I upgraded my iPad to version 5.0, I had a message on my Setting to upgrade the software to version 5.0.1, I select install and during installation my iPad2 star rebooting and now doing it non stop. I have no time to restore or do anything. My ipad rebooting every 2 or three minutes

    See Here
    iPad Unable to Update or Restore
    http://support.apple.com/kb/ht4097

  • VMM 2012: How to Configure Automatic Start and Stop Actions for a Virtual Machine?

    Does somebody know how to confgure Automatic Start and Stop Actions for a Virtual Machine in VMM 2012?
    I miss that option.

    Automatic Start or Automatic Restart actions are available for virtual machines running on a Hyper-V cluster from within Virtual Machine Manager.
    From within Virtual Machine Manager, bring up the Virtual Machine's properties:
    Click "Hardware Configuration"
    Click "Availability"
    Click "High", "Medium", or "Low" to enable automatic start/restart or
    Click "Do not restart automatically" to disable automatic start/restart
    Screenshot from VMM 2012 for a VM running in a Server 2012 R2 Hyper-V cluster:
    VMs running on a cluster have to be marked "Highly Available" and logically, Microsoft assumes that you'll want these VMs to be running all the time when this setting is selected.  If the cluster fails or needs to be restarted, you can set the priority
    by which a VM restarts, or you can set the VM to not restart at all when cluster services are restored by using the settings above.

  • Execute java script in action listener before action

    Hi, I have af:commandButton on my page , in its actionListener method I call java script
    which displays af:popup with two buttons, I want to execute af:commandButton's action method with some program logic in depend of which button in the af:popup is clicked. The problem is that action method is execute before my java script to show the af:popup.

    Hi,
    the reason is that the JavaScript that you execute from the ActionListener is not executed before the page (or page section) is rendered, which is in the lifecycle is then after the action method is invoked.
    However, I am observing on this forum that users think of JavaScript as a silver bullet, whereas it should really be seen as second choice only. If you want to execute logic in respect to which button a user clicks, then the code should be assigned to the button and not handled by some JavaScript. If - in combination with popups - you need to use JavaScript, then have a look at using the client listener for this (af:clientListener). Idealy you use the server side af:showPopupBehavior.
    As a rule of thumb: always try to go with best practices and not with the easy catch
    Frank

  • WebDynpro Action Types : Validating vs Non Validating Action Types

    Hi
    Can someone tell me the difference between Validating and Non Validating Action Types in webdynpro. I read it through, but its not very clear.
    regards
    Saurabh

    HI Maksim,
    Thanx it helped !!
    I need some more help. I have a PAR file which displays an employees CV in an IView. I want to print only the content in the iView (i.e the CV) not the complete page with Roles and worksets, is there some code that can do this.
    I need to place a button on the CV (in the iView) and on the click of the button the CV (iView) gets printed.
    A workaround for this is that I open the CV (from the iView Personalization ) in a new window and then from the File menu of the new window fire the Print option. But I dont want to do it this way.
    I want to Print the CV from the parent window only.
    Plz suggest !!
    Regards
    Saurabh

  • Export to Swf (how do I insert a stop action in IND)?

    So I've exported the swf's. But when they come up (in a pop-up window) on my site, all I see is a grey screen. I right click and and unclick "play" and then they appear.
    I assumed, from reading other posts people have posted that I needed to insert a stop action. Can anyone tell me if this is possible to do in IND CS4?
    I don't have CS4-Flash, I have CS3_Flash. I do have CS4 IND, so if I could insert a stop action here I would do so. Anyone know how to go about doing so? And will this fix my problem?
    Thanks a ton people!
    Matt

    I wanted to use a special character in an email; I used to do it but had forgotten how.  I figured it out:
    Place the cursor where you want to special character to be.
    Open the special characters page and drag the symbol to where you want it to appear.  Then double click on the symbol, and voilé the character appears.  At that point you can print as many special characters as you want without dragging them first, just double click on them.

  • Stop action, stop looping

    I'm new to Flash and I created my first flash doc. today.
    [Here
    is my movie. Can anyone tell me how to stop the movie from looping.
    I tried putting a stop() action but it stoped the whole movie from
    playing. Please Help

    "ShesAuthentic" <[email protected]> wrote in
    message news:e9gtlt$3i8$[email protected]..
    > I'm new to Flash and I created my first flash doc.
    today.
    > ]http://www.freewebs.com/denishalynn/jessika.html is my
    movie. Can anyone tell
    > me how to stop the movie from looping. I tried putting a
    stop() action but it
    > stoped the whole movie from playing. Please Help
    You must make a keyframe at the last frame of your movie and
    put the stop() command there. If you just go to the last frame and
    type stop(); without making a keyframe there it will actually
    put the stop command on the first frame, not the last frame. Look
    to
    see what frame the little 'a' symbol is located.
    tralfaz

Maybe you are looking for