VI execution speed depending on mouse movement

Hi,
I have a large application that sometimes became very very slow. When It happens the only thing that I was able to notice is that moving mouse, execution speed of vi come back normal. I checked all the opened reference but I didn't find any not closed reference.
Any tip will be helpfull..
Golzio

can you give us any other information or post an example of the program. Does it use an event structure, data acquisition, are you performing file i/o? If you can give us an example it would be most helpful. Thanks
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor

Similar Messages

  • Why does my mouse move slowly?

    Why does my mouse move slow?

    Check the setting for tracking speed. You'll find that in System Preferences > Mouse.
    Note that tracking speed has variable accelleration associated with it; it responds to the speed of the mouse movement as well as the distance. When the tracking speed is set to fast, a slow movement of the mouse will yield an approximate one-to-one response from the cursor; but if you flick the mouse quickly, the cursor will fly across thre screen.
    If you're using a non-Apple mouse, and it came with its own software, check in that control pane for a similar setting.

  • Opinions about Mouse Movement Speed

    Hi !
    I'm experimenting with some Java gfx routines and so I want to code a tiny game, for that I need a small routine to get the current mouse movement speed. I tried this:
    myFrame.addMouseMotionListener(new MouseMotionListener() {
      public void mouseMoved(MouseEvent me) {
      if ((me.getX()!=320)||(me.getY()!=240)) {
        spdX = me.getX() - 320;
        spdY = me.getY() - 240;
         myRobot.mouseMove(320,240);
    });, but I'm not totally satisfied with this.
    a) you'll never get a zero movement with this one
    b) I don't know if this would work smooth
    Does anyone have any suggestions about this or maybe a link to some resources about that?
    thx in advance
    Skippy

    Well, this is the part of the Code I get my Input-information from:
    public class
    InputLib
      private static      JFrame               mainFrame;
      private static     int                    spdX, spdY;
      private static     Robot               myRobot;
      private static     boolean               invokedByRobot = false;
      public
      InputLib()
        mainFrame =     GfxLib.getMainFrame();
        try { myRobot = new Robot(); } catch (AWTException awtex) {System.out.println("Couldn't create Robot.");}
        myRobot.mouseMove(320,240);
        mainFrame.addMouseMotionListener(new MouseMotionListener() {
          public void mouseDragged(MouseEvent me) {}
          public void mouseMoved(MouseEvent me) {
            if (!invokedByRobot) {
              if ((me.getX()!=320)||(me.getY()!=240)) {
                spdX = me.getX() - 320;
                spdY = me.getY() - 240;
                invokedByRobot = true;
                myRobot.mouseMove(320,240);
                invokedByRobot = false;
              } else {
    //          spdX = 0;  this always returns (0,0) ?!?
    //          spdY = 0;
      public static int     getSpdX() {
        return spdX;
      public static int     getSpdY() {
        return spdY;
    }and this is my gameloop:
    Graphics gr;
    Graphics gBB;
    while (true) {
      gr = GfxLib.getDrawGraphics();
      if (!GfxLib.contentsLost()) {
        try {
          do {
            GfxLib.resetBackbuffer();
            gBB = GfxLib.getBackBuffer().createGraphics();
            int dx = InputLib.getSpdX();
            int dy = InputLib.getSpdY();
            gBB.drawImage(bg, 0, 0, null);
            gBB.drawLine(100,100,100+dx,100+dy);
            obj1.setSpdX(dx);
            obj1.setSpdY(dy);
            obj1.moveStep();
            obj1.translateTexture(dx,-dy);
            gBB.drawImage(obj1.getViewport(),obj1.getPosX(),obj1.getPosY(),null);
            gBB.dispose();
            gr.drawImage(GfxLib.getBackBuffer(), 0, 0, null);
          while (GfxLib.getBackBuffer().contentsLost());
        catch (Exception e)
          Logger.log(e);
        frameTime = GfxLib.getTicksSinceLastShow();
        if (frameTime < MAX_FRAMES)
        try {
          Thread.sleep(MAX_FRAMES-(frameTime));
        } catch(InterruptedException intex){intex.printStackTrace();}
        GfxLib.show();
        gr.dispose();
    }The GfxLib calls handle hardware-accelerated, doublebuffered fullscreen graphics, but this also works when drawing to a normal Component. obj is a simple textured shere that I want to draw onto the screen.
    Purpose: simply draw a rolling textured ball controlled by the mouse.
    Hope this explains a bit,
    Skippy

  • Different mouse clicks & speed up mouse movements?

    Hello,
    Does Adobe Captivate recognise different mouse clicks better
    to say if it can record on RMB LMB and MMB clicks different
    effects? For example I wish to record Software Simulation project
    were on different mouse clicks (RMB, LMB, MMB) would have custom
    effects like "OrangeRing" for RMB " "GreenRing" for LMB etc?
    One more question plz: I found Published movie mouse
    movements are very slow can I make it move more fast without
    editing every slide separatelly?
    Thanks
    Ton

    Hello Tony,
    Whilst Captivate does recognize different mouse clicks (in so
    much as the application will capture a right-click menu) you cannot
    specify what type of mouse effect the application will use when you
    capture.
    What you can do is change the mouse click effect post
    capture. To do this and with a just captured project open carry out
    these steps:
    1. Select the slide that has a mouse pointer where you would
    like need to show a right-click action.
    2. Choose Slide > Mouse > Properties...
    3. In the Mouse Properties dialog make sure that the option
    "show mouse click" is selected and then show either the color or
    the custom effect you would like to use to represent the
    right-click operation.
    Naturally, at the very start of your movie/project you would
    need to inform the learner that each time they see the one of the
    effect you want them to right-click. You could also include some
    audio as well which would be important if you need to adhere to
    accessibility standards.
    In regard to your second question, in most cases you will
    find that you get the best result if you adjust the mouse timing
    using the Timeline.
    That said if you own a copy of Adobe Captivate 2 you can
    change the mouse Display and Appear After settings globally via the
    Mouse Properties dialog. Personally, for mouse movement I would not
    recommend this. Anyway here are the steps to carry that out.
    1. Select any slide that has a mouse pointer present.
    2. Choose Slide > Mouse > Properties...
    3. Click the Timing tab
    4. Change the Display time and Appear After values
    5. Click the Settings button
    6. Choose the appropriate options from both Which properties
    and which slide categories
    7. Click OK.
    Note : You can also show the Mouse properties dialog by left
    clicking on mouse icon on any of the slides in the Filmstrip
    Regards,
    Mark

  • Execution speed improvements of FGV over locals

    This my first post.  I am new to LabVIEW and am currently writing my first significant application.  I am actually modifying an existing application, but am adding additional functionality.
    I have read this VI Execution Speed article but still have questions http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/vi_execution_speed/
    As an example, I am populating an xy plot with several sets of data, such as saved data points and a curve fit.  I am currently using a case structure to decide when to write various elements.  As an example, I only write the curve fit one time and it remains static as other pieces of data are added to the graph. In an attempt to make things faster I did not want to redo and redraw the fit each time.  I am using locals within the case to populate the graph.  In the default case nothing if written to these locals (and I assume the graph is not redrawn)?
    I now realize that instead using a case in which nothing is written, I could use a feedback node (to write the previous case). The in addition, in place of using a local, I could use a Functional Global Variable.
    Would it be better to have several cases which write locals to populate the plot and one case which writes nothing  OR Have the several cases write to a FGV and then a default case which writes the last data to the FGV via a feedback node?
    The first seems like less load as nothing is written in the default case, but the other cases do write to a local which has a front panel object that I don't need or want.
    Iis there any benefit to hiding unused front panel objects?
    Is there a way to create a local without front panel object?
    Finally, with a tabbed UI, are objects on the non active tabs being redrawn and slowing the process?

    Good questions!
    Starting from the bottom:
    Iis there any benefit to hiding unused front panel objects?
    Is there a way to create a local without front panel object?
    No and No. Local variables are generally a poor way to store and move data. For the reasons you cited (FP object you do not want or need, hidden FP objects) and that they force a copy of the data and may cause a thread switch to the UI thread.
    Finally, with a tabbed UI, are objects on the non active tabs being redrawn and slowing the process?
    It depends. Newer versions of LV are generally smart enough that non-visible indicators are not redrawn. This may not have been true in older versions, although I do not know when the changes were made.
    You certainly do not need to redo the fit if the data has not changed. I think the entire graph gets redrawn when any new data is written.
    Search for Ben's extremely informative Nugget on Action Engines (AE). An Action Engine is a FGV with added capabilities. It may be a very good option for what you are trying to do. It could store all the data sets, update the graphs, and make the data available where it may be needed without extra copies. With the AE you could easily acquire and store data at one rate and update the graphs at a (slower) rate appropriate to the users eyes and brains. Updating graphs more than ~10 times per second is a waste of resources because the user cannot respond any faster than that. Also you could write a subset or reduced data set to the graph if the amount of data is larger than the number of pixels in the plot.
    Lynn

  • CP5: Change mouse movements in recorded slides

    Once again I have recorded a software demo with my recording settings set to show mouse movement. Before that I split the 880 resulting slides into projects of 100 slides each: is there a way to set mouse movement options to all the slides, specially to set the option "straight pointer path"  for all mice in all slides?

    Hi Rick,
    thank you for the information. With this changing the pointer path works fine. So my main concern has been solved.
    But there are still other options that I would like to handle more efficently like switching "Reduce Speed Before Click" on / off.
    Then I would like to show user defined Mouse Clicks dependent on Single oder Double Click Mouse Click Sound and / or dependent on left or right mouse click. For example: Several slides contain these mouse options for a right click from recording (whether it is left or right can de determined by the text caption):
    In all these slides I want to change the mouse options to:
    Doing all these changes manually is very time consuming. And I wonder, whether there might be a better way to perform that task.

  • How do I associate timing with multiple AI loops that is independan​t of loop execution speed

    I am using Labview 7.1 and I am performing AI of
    voltage on different channels of the same multifunction DAQ.  I am
    using while loops to aquire the data.  I am writing the data to
    spreadsheet file with an associated time as a 2D array.  Currently I am
    using the 'elapsed time' interactive subVI to get the time in seconds
    (attempting to use the 'Get Date/Time in seconds' and converting it to
    DBL results in time values that do not change. My thoughts are that
    maybe the number of seconds is too large to display single second
    precision with a DBL floating point number). When I run AI on two
    multiple loops they execute at different rates and thus the time values
    from "elapsed time" are accumulated at different rates. I have tried
    using timed loops to control timing, but if one loop executes at a rate
    slower than the timing of the loop the 'elapsed time' still accumulates
    at different rates.  I need to be able to associate both analog inputs
    to the same time
    value in the spreadsheet value and I would like to find a way to
    associate a time with each data point that is independant of loop
    execution speed (although I would still like to control execution speed
    of the loops. I am pretty new to Labview and programming in general,
    any help would be greatly appreciated.

    If you want to read more than one AI at the same time, you should use a trigger.  You would need to set up the AI Trigger to an external source.  Then you would have to use a function generator or digital out to create a clock.  The clock would be wired to the AI external trigger.  When the clock goes high (or low depending on configuration), both AIs would read.  That is the method I use when needing to sync multiple AI inputs.
    - tbob
    Inventor of the WORM Global

  • CS3 Ext. Vista 64 jerky mouse movement

    Hi there,
    I have a huge problem with my 32 Bit Photoshop CS3 Extended under the operating system Windows Vista Business 64 Bit and don't know if this is a known problem or has to do with the 64 Bit or something. I don't know what to do more so I ask here in hope of some help.
    The problem: When I use the f-key to switch to a mode where the image uses the whole space behind the tool paletts and use the space-key to switch temporarily to the move tool to move the image around, my next mouse movements with click actions will be really jerky.
    To explain this further more imagine you are on a deep zoom level inside an image, using the polygon lasso to mark an object exactely, there's often the situation where you come to the border of what you can still see and what you can't see anymore. Here you'd use space and move the window a bit in the direction you want to continue marking the object. When I do that (in fact after the first time i do that) I see that the whole processing of generating those marking points with the lasso gets really jerky as if the pc is studdering. It is not possible to work fluently and/or fast this way. As you can see from my speccs (see further down for details) pc speed is no real issue here. Other things like GPU-heavy games (e.g. Crysis) don't show any studdering.
    Things I already tried to no success:
    1) deactivated version cue
    2) bumped the memory that Photoshop may use from 2.5 GB to the maximum of about 3.5 GB. Windows still has plenty of memory left for itself as Photoshop seems to have a border here that windows itself hasn't.
    3) deactivated GPU-Support temporarily
    Some more information:
    1) Windows and Photoshop are on their newest versions/patches.
    2) There is no emulation software and no Nero installed.
    3) The file I'm testing this with is newly made (ctrl-n) in a resolution of 1280x1024 @ 300 dpi plain white. This shouldn't be extremely large.
    4) Computer speccs: Intel Core i7 920 @ 4000 MHz, 6GB DDR3-1600, Geforce GTX 285 Black Edition, Watercooling for processor and north-/south-bridge and condensators. The whole system resides on 2 500GB Samsung Spinpoint F1's that run in raid 0 mode for speed purposes. Partitioning is done so that the operating system, programs, data, temp-files, photoshop swap file, windows swap file (and some more partitions) are each on separate partitions.
    5) CPU/GPU temperatures are on nice levels (about 50°C each) and at least what I see from the CPU usage all 4 CPU-cores are getting bored during all this (less than 10% usage each).
    6) This is nothing that is limited to the polygon lasso tool: If i use the clone stamp tool or a brush I get the same problem after moving the image around with the move tool on a higher zoom level.
    7) I didn't have this problem on my old pc with Athlon 64 4000+ single core with 2 MB RAM and Windows XP Prof. 32 Bit. Furthermore I haven't seen my new pc without that problem so far. So the problem exists from the beginning.
    Any help is much appreciated! I hope I made myself as clear as possible. If there are questions on your side please ask.
    Kind Regards
    Steve

    Yes, of course the guarantee is solely on the vendor's part. They give 5 years of guarantee on the hardware as they build them together.
    That is an interesting information with CS3 and multi-core-systems. I shall google that and see what information I find about it. Thanks for the remark.
    I'd be more than happy if some folks here could bring some more light in the 64Bit-RAM-size-scratch-disk-issue and how it affects CS3-behavior. Would be really helpful.
    Right now it should be (almost) like this: Vista gets about 2.5GB of RAM, Photoshop gets about 3.5GB of RAM, that is if Photoshop would take it (I'm not sure if it does although I configured it to do so). Being able to use the whole 6GB of RAM was the reason to use a 64Bit OS.
    EDIT: I found a test with dual-core and quad-core systems with Photoshop CS3. The operating system seems to be 32 Bit though. It seems that CS3 doesn't scale very well with 4 cores. It uses 2 apparently but cannot make use of more. But anyway as I said: My old PC with a speed of 2.4GHz (single core Athlon 64 4000+) whose clock-speed is not directely comparable to my i7's 4GHz because of efficiency did the job without studdering. It had only one core that was much (!) slower than any single core on my i7. Even if the multi-core cannot be used from CS3 one would think that it had to run faster with the i7. In my opinion it must have something to do with either the 64 Bit OS or the raid0. The partions were no issue on the old machine (although I used multiple HDDs in the past so Windows and Photoshop were on the same HDD on different partitions but the scratch disks were on another).

  • Mouse Down and Mouse Move  and scroll ?

    Hi,
    Here is what I want to do:
    Whenever a user presses the mouse down and the moves the mouse, I want to synchronize the scrollbar thumb and the mouse. How is it possible?
    thanks.

    hi,
    there are 2 ways to do this depending on what you need from the mouse move
    1. To get the difference from when the mouse is pressed
    on the mousedown event your store the mouse coordinates -
    myX=   stageX   or LocalX    myY=  stageY  or LocalY 
    on the mousemove event you subtract the current co-ordinates from the saved cordinates
    myXDif = myX-currentX
    myYDif = myY-currentY
    the difference will be negative or positive you can use that figure to calculate the percentage of range and then set the scrollposition
    2. Just track the mouse
    on the mouse move calculate the percentage position of the mouse to set the scrollbars
    HorizontalScrollPostion= the Max horizontal value * (LocalX /Width)
    VerticalScrollPosition= the max vertical value * (LocalY/Height)
    David

  • How control can be customized so that it changes its picture when mouse moves over it

    How control can be customized so that it changes its picture when mouse moves over it. As it happens in other develpment enviroments that one can customized the look 'n feel of any thing during the mouse movement over that very thing. Moreover can any body plz tell me that how one can modify the funtionality of a control by him self (not selecting the available functionalities of controls and indicators)

    The attached LV 7.1 code uses an event configured to trigger on two controls when a "Mouse Enter" or a Mouse Leave" event occurs. Depending on the type key focus is either assigned or removed.
    Please elaborate on the Q re: customizing a control.
    Ben
    PS Do NOT change the boolean to an indicator, save, run, change to control, save run again. That is bad.
    Forgot to attachMessage Edited by Ben on 05-05-2005 09:30 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    MouseOver.vi ‏28 KB

  • Execution Speed of Aurora JRE

    We are experiencing some problems with the execution speed of the aurora JRE. The documentation states that the Aurora JRE is compiled to native code and should run 2 - 10 times faster than a normal JRE. We are atempting to do some memory sorts using the Array class which is taking 10 times longer in the Oracle instance than on a client.
    Is this a known performance bottleneck, are there any "tweaks" available?
    Thanks
    Julian

    Hello Ravi,
    Does your statement about core java classes being natively compiled also apply to the JVM in OAS / iAS?
    I remember reading in a white paper that, in iAS, java code would be translated into C code for native execution. Does this apply to user code or only core java classes ?
    (by the way, It seems impossible to download OAS 4.0.8.2 from OTN, maybe it would help if it was divided into several smaller files...)
    Thanks, Remi DEH
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Support Analyst (Ravi):
    In the current JServer release, Java code you load to the server is
    interpreted. The underlying core classes upon which your code relies (java.lang.*) are natively compiled. Until the native compiler is available for user programs,
    the net speed benefit of native compilation to your executing program is dependent upon how much native code is traversed, as opposed to interpreted code. The
    more Java code from core classes and Oracle-provided class libraries you use, the more benefit you will see from native compilation.
    In 8.1.7 i.e 8i Release 3 we support natively compiled code for the user programs.
    <HR></BLOCKQUOTE>
    null

  • Capturing mouse movement to define an animation path?

    Hi All,
    Does there exist a plugin for flash that would allow me to
    define animations by capturing my mouse movements? I'd like to be
    able to rough in my animation timing by selecting an object, then
    dragging it around the screen at will while the software captures
    the path of motion along with the timing of it. This would allow me
    to keyframe a rough animation sequence really quickly because the
    computer clock and my hand motion defines the placement of the
    various keyframes. Is anything like this possible right now?
    Thanks

    i dont think so.. but why dont you use the pencil tool and
    draw on the stage, make that layer a guide layer, the shorten the
    distances of keyframes for your animation so it looks like it's
    speeding up, widen them to look like its slowing down

  • Double Click Speed of the mouse

    hi,
    Can we increase the double click speed of the mouse using Java????
    Is there any API available in Java???????
    Any help please?????
    Thanks,
    Manikandan

    It may be possible, but most likely not. Double click speed should be platform dependent, like for windows, go to the control panel and then the mouse settings, you'll see that double click speed can be adjusted. So this probably isn't possible, just change it in your operating system's settings.

  • I just created a new profile/user on my MacBook Pro. My pointer/mouse. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. Mouse moves but will not click. Already tried restarting and the pram zap.

    I just created a new profile/user on my MacBook Pro. My pointer/mouse on my trackpad. It works fine in my older user profile, but when I go to the new profile my mac will not respond to clicks. The Mouse moves but will not click. Already tried restarting and the pram zap. The problem starts when I log out of my main profile. I get to the login screen and my laptop stops responding to clicks. When I manage to make my way back to my main profile the mouse works perfectly.  Should I just delete the new profile and try again?

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • After sleep, retina MacBook Pro (Mid 2014) does not recognize usb connected mouse movement

    After sleep, retina MacBook Pro (Mid 2014, on 10.9.4) does not recognize usb connected mouse movement. I have tried a generic usb mouse and my Razer Deathadder usb mouse. Both mice work before sleep; but after sleep, the computer no longer recognizes mouse movement while still recognizing the mouse buttons when pressed. Any idea why this is occurring?

    Hello, chocotac0.  
    Thank you for visiting Apple Support Communities.
    Here are some troubleshooting steps that I would recommend when experiencing this issue.
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/ph14222
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    OS X Mavericks: If a USB device isn’t working
    http://support.apple.com/kb/PH13876
    Cheers,
    Jason H.

Maybe you are looking for

  • Can't upgrade to 10.6.7 or 10.6.8 for Lion 10.7 what do i do??

    Hello there this is Daniel I hope someone can help me with the following.. I have a Mac Book Pro and when I was getting ready to upgrade to 10.6.7 this happened right after it downloaded of the software-upgrade on my Mac.. http://cl.ly/0n0p423s423z1k

  • How can I get hue, saturation & luminance visible in the Loupe?

    For the life of me I can't figure how to get visible in the Loupe - Hue, Saturation, Luminance as I move the Loupe around a photo. I can get R,G,B,L. Is there a secret to get the Hue in it? I checked preferences and even searched in Aperture Help. NO

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi i want to create a xml file with the following content: <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://....">  </OpenSearchDescription> i did this with the if_ixml interface and rendered the content in a file 'D:\usr\s

  • SnS Live Event Video

    Hello forum. I am setting up a DME 2200 to integrate  to my SnS in 5.2.3 version  But I have some errors in the browser where I tested. With Chrome and  Firefox shows this phrase : "Windows media plugin not installed click here to install" , and with

  • Scheduled Background jobs after Client Copy

    Hello, I've been doing some searching online and I don't seem to be able to find a definitive answer to this question: Are background jobs client specific? I've seen some discussions on here say some are and some are not.  I've also seen a discussion