active cursor game

Hello

I use a slider with two sliders control.  Click on control moves the active cursor to the location where you clicked (normal behavior).  My question is: can I check where the mouse click occurred, set the active cursor to those closest to you and move this one?

For reference, here's a sequence of the example of the behavior I want.

Sliders are at 10 and 100.

Move the slider 1 of 100 to 160 (cursor 1 is the active cursor)

Click on close to 5.

At this point, I would like for slider 2 to spend from 10 to 5.  Instead, it's the 1 slider that moves because this is currently the active cursor.

Any ideas on how this behavior can be achieved?  I think I'm able to do some, code that rather poorly designed, using a feedback loop and a large number of comparisons.  That compare the new value for the two previous cursor values and set them with force the cursor which "was closest" is one that moves.

I think this might work, but it seems really sloppy for me and I am in the island there is a better way.

See here:

http://forums.NI.com/T5/LabVIEW/can-I-stop-the-auto-movement-of-the-slide/m-p/1038423#M462185

Tags: NI Software

Similar Questions

  • Two active cursors by parcel

    Hey all,.

    Another problem with my VI is that we have two sliders that are 2 local maxima in our current traces motors... At present, there are two locations per chart: the raw signal and the filtered signal... Statistical data (time Max, max, etc.) are derived from the signal filtered as was done with the previous version of VI. In each chart, I implemented 2 sliders of different colors and made sure they were involved with the plot of filtered signal... I then use property nodes that are slightly changed compared to the previous control VI when they are active and where they locate to...

    In previous VI, there were 3 cursors, but there are 3 plots (gross, 1st signal filtered, second filtered) and so 1 slider by plot was looking for one of the peaks in the footsteps of motor currents... However, it was at an early stage, which is no longer necessary. What I need is to have two peaks on the filtered signal located with cursors... Right now, one of the lines of Y of the cursor finds its correct height (input from the peak are the X, Y signal is broadcast by statistical express VI)... However, the other cursor is just sitting there idle, turn his thumb... I don't understand why this isn't to find its respective height because its input in the property node data is correct and its setting (0, 1 or 2) for the ActCrsr property is the same as for the cursor that works...

    Does anyone have any ideas as to why I can't have more than one cursor follow the peaks on the same plot?

    Thanks a bunch...

    Well the first thing I see is that you have all the sliders value active cursor 1 you can adjust them at 0, 1 and 2

  • Active cursor (property node). You will need to obtain a number of active cursor.

    Hello world

    I have searched for this answer for a while and found no one. So, let me describe my problem:

    I have a XY Chart with 10 sliders on a FP. On the comic, there is an event-driven state machine.

    I want to use a node of ActCrsr materials for a number of active when cursor occurse event (event of slider type for example). Unfortunately, LabVIEW gives me only 2 numbers of cursor and I don't see any logic behind it!

    Why do I need? Imagine, when you take a cursor, the graph to which he belongs to type of assets (the line is thick and the name appears and so on). My program visualizes graphic adjustments of pulses.

    Thank you very much in advance!

    Hello

    You must use the property "SelectedCrsrs".  Try the example below.

  • black screen on startup with active cursor

    I have an old Dell Dimension 3000 has a processor Celeron, 512 MB RAM and was purchased in 04.  Despite his age, he has been a good PC and is mainly a backup unit when the main PC is used by my wife. Recently in November 2011 I lit it and as usual, Microsoft has had an update for me to download if I choose to. I downloaded the update, (can't tell you what update) and restart my PC.  The next time I turned it on I got the Dell splash screen and the Microsoft logo screen then black screen with a cursor active.  After reboot, I hit F12 and chose something like "go to last good known configuration" with the same black screen thereafter.  I kept rebooting and some so chose an option "Repair or r", and after that he went by the disk check and the areas I was once again on the black screen.  I then found my original installation disk and tried to start out with the same as before resutls... black screen.  I forgot to mention that Safe Mode does not work, I rebooted with no media in the CD drive, and I'm at a standstill.  Does anyone have the answers to my problem?  Thanks in advance for all your help.

    Wayne

    It's a shame, that we do not know what update it was!

    Do you have to manually download and install updates or use automatic updates? If the latter, which is enabled:
    Automatic
    Download updates for me, but let me choose when to install them
    Notify me but don't automatically download or install
    For later use, as a general rule, you must install ONLY the updates critical or high priority. Installation software optional or made optional hardware update can be risky! (There are some exceptions to the optional software, for example, root certificates update.)
    You can try different methods to repair your installation, but if you can simply perform a system restore, which should solve the problem fairly quickly. Then simply determine what updates (remember: only critical or priority!) you still need.
    I don't know if SR work because you are having problems to start in Normal Mode. If you're lucky, you'll be able to boot mode safe mode with command prompt. If you do this, follow these instructions:
    Choose the date before the updates (15 November?).
    If you can not do the above, then post back for tips on how to use your Dell XP 'relocation' of brand CD CAREFULLY. You don't want to do something drastic like reinstall Windows!
  • Position of the active cursors

    Hello world

    I'm programming an application with sliders on my graph XY. They are visible or not according to Boolean State keys programmed event. I just need to retrieve the position of the visible sliders and then transform to a material substance, but it seems that I do not use the right solution. I'll be back all positions of cursors, even the most invisible.  How can I tell the difference between the visible and the other ones? I said I can't do it one by one because I have a lot of sliders this is why I use the cursorList as you can see on the relative picture.
    Any idea?

    Best regards
    MartinO.

    The list of cursor does not distinguish between visible/not visible. It will always return all cursors. If you want just the ones visible then you must browse cursors and read the Visible State. Something like this:

  • How to set the location of the active cursor

    I'm having trouble trying to put the asset "x axis" cursor without interrupting the other parts of the code. I have a graph of waveform and I want the window to be properly windowed to zoom in on the interesting part of my data. I also have cursors that I want this particular part of the processed data. Unfortunately when I try to set the cursor position and the display area of the code window will do either one or the other. I tried to change the order of the scale minimum and maximum x and beginning and end cursor x posts... all that I got is different combinations of window size/cursor positioning. I'm confused. Why the property node addresses some items and not others? How can I get my automatic zoom window and my Cursor for self-standing at the same time? Here is an example of the code...

    Ignore the rose as downstairs. It is not connected to the property node, it just happens to run behind him and it doesn't bother me to keep it there.

    Any help will be greatly appreciated! Thank you!

    Hello

    I'm not so sure... but why not try to use different structures for each process? Try to use highlight for execution see the order of what is happening in your software and then you could determine if you should use a sequence of plate or structure of the event.

  • Normal cursor game

    Hello!

    How can I set the cursor to one by default please?

    cursorManager.removeAllCursors ();

  • active cursor for select data for further processing

    I have included my data and partial vi with annotated text. Briefly, my input data is of a DEM so line # represents distance in x - ed., column # represents the distance in y - dir and data is elevation. I would like to deal with the sequentially a column of data at a time where I visually select the data I want to keep for further processing. The position of the data is important, so the data in the selected range will be prepared in the same column and lines as it was in any of the original input data. The rest of the column in the selected range can be NaNs.

    (1) it seems to pause fine when I run it.  What happens when you click on the pause button?

    (2) this can be accomplished better by using a shift register for the column instead of the iteration number.  Then use a button continue triggering the shift register to increment.  One thing to check is that the button continue action mechanical latch when released (right click then mechanical Action).  Here is an example of this:

      

    (3) for a shift register contain the values you need to write to the file, you will need to make sure that it is always passing the table you add to in the right side of the team to register.  You'll also need to use table to build instead of insert in the table.  Here is an example:

      

    (4) this should automatically after the previous steps.

  • Cursor cross curved in 2 points: find the 2nd point

    Hello

    Here is the emulation of a part of my installation of mesuerement.

    Here are a few points:

    • curve measurement (emulated by sinc function)
    • 2 free sliders UP and DOWN
    • 1 locked cursor 'MIDDLE': his Y is calculated as the average value of TOP and bottom
    • 1 at the crossing can be derived from the Active Cursor (PosX and PosY) property

    There is a simple way to find the 2nd crossing point.

    Thanks in advance

    OK, sorry for the diversion of this thread, case 'all' was pretty easy:

    0 # all the:

    get the first x position was not too bad

    first:

    get the last position x to a level crossing was slightly more difficult but achievable without queues:

    last:

    .. .but getting the middle was quite difficult, is there an alternative in addition to using queues?

    median:

    Kind regards
    Alex

  • How can you tell two different cursors to move to different places?

    Sorry if this has been asked before, but I couldn't find the answer anywhere.

    As I said, I'm trying to get two different cursors to move in two different places on the same graph. I have values I want them to go, I'm not sure that work or the command to use. I'm using LabVIEW 8.6. Thanks for any help!

    WCR,

    You will need to use the property of the graph nodes to move cursors programmatically. The properties of interest are the active cursor and the cursor Position > X and the Position of the cursor > y. use the active cursor to specify (by index cursor) what slider you want to work with, and then set the X property values and, and then adjust the slider according as the active cursor and set its property values X and Y.

  • Distinguish between the cursors in a Structure of the event

    I have a XY Chart on the front of my Panal with 2 active cursors. I've also enabled Anotation. Anyway is to distinguish between the imprecateurs in a single structure. Currently, when all the sliders are moved structures even fires.

    Thank you

    Unless you have been bitten by this behavior, do not realize that the TWO sliders and annotations will movement of cursor events fire.  CursIdx will return the index cursor or annotation.  A workaround, it is that the cursor type? event fires only to win the real cursor, so I add a shift register and a real constant on the cursor Grab the wire? event.  In which case the cursor to move, I can use the Boolean value to determine whether it is #CursIdx or #CursIdx that is moved cursor annotation.

  • On laptop, tilde key (~') does not open the game console

    I have this laptop (http://www.cnet.com.au/samsung-series-9-13-inch-2012-339341806.htm) running windows 7 Home premium.

    Games that does not work in the console include Far Cry and Far Cry 2 (steam), Fallout New Vegas. I tried setting the launch for these parameters (console - devmode, -), works of devmode setting as I have access to keyboard shortcuts only devmode, but no access to the console (WASD cause my character to move, this isn't a question of the console being out of the screen).

    I tried searching online for the answer, but can't find anything that applies to me (all the guides I found telling me to turn off "receiver eHome Infrared") or other infrared devices in Device Manager. I don't see anything like this (screenshot of the Device Manager: http://i.imgur.com/tQYXmsR.png)

    Help would be much appreciated, I have an error with a quest in fallout where I need to go to the front of the console.

    -I assume you have checked the console is enabled in the Fallout.ini FalloutPrefs.ini & > [interface] >

    bAllowConsole = 1?

    -I wonder if Bluetooth or webcam would also affect the ~ key?

    -In Bethesda the Caps Lock active key games / disables the walk/run by default in FO - NV, so if you forgot

    Caps lock is engaged and using the SHIFT key, you will get "instead of ~."

    This mod allows the console when you equip a specific hat - (requires also the linked script Extender

    on the page)

    http://modsreloaded.com/alternative-console-access

    .

  • How can I reload games? I'm having a problem with my game. For example, alone, I have a problem in the transfer of maps.

    When I buckle on a map and try to move it still does not work and I have to keep clicking on the map until I'm able to move. in Minesweeper when I right click on a space I sometimes the question mark instead of the indicator.

    Hello

    I understand how it feels when you try to play a game and it gives errors. Do not worry, I'm here to help you with this question. I would like to know more information on the issue, so that we can help you better.

    1A the question started recently?

    2 have you made changes on the computer before this problem?

    3. do you get any error code or error message?

    Try deactivation and activation of games features Windows to check if it works for you.

    Step 1:
    Disable Microsoft Games:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. navigate to the Microsoft Games and uncheck the brand in front of Solitaire.

    d. restart the computer

    Step 2:
    Activate Microsoft Games:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. find Microsoft Games and place a check mark in front of Solitaire.

    d. restart the computer.

    Please reply with the status of the issue, so that we can better help you.

  • My new game Halo2. Problems with the installation. Windows live rejects my product code

    • My game of Halo2, when it is installed on my windows 7 has trouble with windows live operating system... it rejects the code produce, what should I do? He says it's an invalid code... I checked with ms is a valid code.
    • .The game bought at microcenter of ny... they said it would work to install on os 7. Home and wouldn't install... perhaps said to use dedicated server?... he got up... Download up to date and restarted microsoft for windows games and this menu time came up asking if iwanted to play... I touched the game and there... and expected to start press any key... then I hit a key... and windows live displays and demand for my product key, I have activated the game with more early... so I typed in... and he says it was a product key invalid... spruced up several trys... and no luck... still says invalid product key... Try again... I called microsoft support line... we checked the product key... and it is VALID. ???. but they do no more than halo 2 support... Although she was told to go here... and here I am asking for help or I have to return the product to the store.
    • OH that a new never installed game before...

    http://support.Microsoft.com/GP/games-for-Windows

  • Why I can't download some of my games purchased from Big Fish Games?

    I tried the download in Admin and modes of comments and some of my games don't will not activate. They download and install, but errors occur when the games try to activate it. I have Windows 8.

    [Moved IE forums]

    Hi Debbie,.

    1. are you logged in with the same account that you used to buy the game?

    2. What is the code/error message that you receive by activating the game?

    You can check the compatibility of Big Game Fish with Windows 8.

    Big fish game compatibility

    As you said that you are able to download and install the game but impossible to activate, I suggest you contact Big Fish is supported for better assistance.

    Refer to:

    http://forums.bigfishgames.com/

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.

Maybe you are looking for

  • Why does v10.11.6 start so slowly?

    Why does v10.11.6 start so slowly?

  • Update driver error

    I use a computer 15-n240tx laptop and I installed windows 8 to it.After installing the drivers, I have still a question mark for a rider like below. What should I do for this?

  • Help of standardization

    -Very well, so I volunteer in a main recreation center and I'm supposed to do technical support with the instructors. We have 9 computers with the same hardware, and all the standard running xp. Teachers want to make sure that whenever a computer is

  • Windows Defender error 0x800106ba

    Whenever I turn on my computer, a window appears reading: Failed to initialize: 0x800106ba. A problem caused this program service stop. To start the service, restart your computer or search help and Support to find out how to start a service manually

  • BEFSX41 - gateway to gateway OK, but no remote desktop?

    Hello First of all, I have searched these forums and elsewhere, but have not found anything specific to my situation. Here is my configuration: Linksys BEFSX41 with a Tunnel from gateway to gateway put in place for a Netgear FVG318.  VPN tunnel, grea