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.

Tags: NI Software

Similar Questions

  • distinguish between the indicator and controls using property nodes

    How can I distinguish between controls and indicators property nodes?

    I find that the controls and lights on the Panel before all come from the same class... a digital control and a digital indicator share the same properties... I am trying to find a way to distinguish between the two.  I would like to be able to analyse a reference VI pull only the references to the "controls" or "indicators" on the front panel... but when I try this, I shoot all...

    Although I found this case a knot of property ' control value: get all ' referral of VI, I can choose between only indicator or only the values of the controls... it's close to what I want, but instead, I like to shoot only the references to the Group of the "indicators" or only the references to the groups 'controls '.

    does anyone know if there is a simple way to do this?

    Thank you very much!

    Suprisigly to search for flags search controls

  • What is different between the event create and save

    I do not understand the position of the event details, create and save, I want to know the behine the theory of functions. Can anyone give some information?  Thank you!

    You can set the part listening to an event in the register for events.
    -Create and destroy functions are necessary for user events.
    -If you always talk registration of events front, yes you can do it dynamically register events and you must create and destroy the user event: https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/dynamic_register_event/
    -If you can post vi/extract it might explain a little better what you're asking.

  • Distinguish between the different forms of constraint connected index

    I create two similar tables
    create table t_demo1 (id1 number(10));
    create table t_demo2 (id2 number(10));
    On the first table I first create a unique index with nologging option and then I created a primary key constraint, that uses this index
    create unique index pk_demo1 on t_demo1(id1) nologging;
    alter table t_demo1 add constraint pk_demo1 primary key (id1) using index;
    On the second table I first create a primary key constraint and then I change the implicit index created in nologging mode
    alter table t_demo2 add constraint pk_demo2 primary key (id2);
    alter index pk_demo2 nologging;
    In the data dictionary tables, indexes and constraints are very similar. For example, the following queries:
    alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';
    
    select  
      substr(object_name,1,15) object_name, 
      object_type, 
      created, 
      last_ddl_time
    from user_objects
    where object_name like '%DEMO%';
    
    OBJECT_NAME     OBJECT_TYPE     CREATED             LAST_DDL_TIME
    --------------- --------------- ------------------- -------------------
    PK_DEMO1        INDEX           11.04.2011 12:23:55 11.04.2011 12:23:55
    PK_DEMO2        INDEX           11.04.2011 12:23:55 11.04.2011 12:23:55
    T_DEMO1         TABLE           11.04.2011 12:23:55 11.04.2011 12:23:55
    T_DEMO2         TABLE           11.04.2011 12:23:55 11.04.2011 12:23:55
    
    select 
      index_name,
      table_name,
      uniqueness,
      tablespace_name,
      logging
    from user_indexes where index_name like '%DEMO%';
    
    INDEX_NAME               TABLE_NAME               UNIQUENES TABLESPACE_NAME          LOG
    ------------------------ ------------------------ --------- ------------------------ ---
    PK_DEMO1                 T_DEMO1                  UNIQUE    USERS                    NO
    PK_DEMO2                 T_DEMO2                  UNIQUE    USERS                    NO
    
    select 
         owner, 
         constraint_name, 
         constraint_type, 
         index_owner, 
         index_name
    from sys.dba_constraints
    where constraint_name like '%DEMO%';
    
    OWNER                 CONSTRAINT_NAME         C INDEX_OWNER                  INDEX_NAME
    --------------------- ----------------------- ------------------------------ ------------------------------
    SCOTT                 PK_DEMO1                P SCOTT                        PK_DEMO1
    SCOTT                 PK_DEMO2                P SCOTT                        PK_DEMO2
    But they behave different. When I disable and enable the constraint the second index fell and created again, as it can be seen in the next hour of creation. And this index loses its setting nologging after deactivation and activation of the constraint. However, the first index remains unchanged by this change in the constraint:
    alter table t_demo1 modify constraint pk_demo1 disable;
    alter table t_demo2 modify constraint pk_demo2 disable;
    
    alter table t_demo1 modify constraint pk_demo1 enable;
    alter table t_demo2 modify constraint pk_demo2 enable;
    
    select  
      substr(object_name,1,15) object_name, 
      object_type, 
      created, 
      last_ddl_time
    from user_objects
    where object_name like '%DEMO%';
    
    OBJECT_NAME     OBJECT_TYPE         CREATED             LAST_DDL_TIME
    --------------- ------------------- ------------------- -------------------
    PK_DEMO1        INDEX               11.04.2011 12:23:55 11.04.2011 12:23:55
    PK_DEMO2        INDEX               11.04.2011 12:30:30 11.04.2011 12:30:30
    T_DEMO1         TABLE               11.04.2011 12:23:55 11.04.2011 12:30:29
    T_DEMO2         TABLE               11.04.2011 12:23:55 11.04.2011 12:30:29
    
    select 
      index_name,
      table_name,
      uniqueness,
      tablespace_name,
      logging
    from user_indexes where index_name like '%DEMO%';
    
    INDEX_NAME                     TABLE_NAME                     UNIQUENES TABLESPACE_NAME                LOG
    ------------------------------ ------------------------------ --------- ------------------------------ ---
    PK_DEMO1                       T_DEMO1                        UNIQUE    USERS                          NO
    PK_DEMO2                       T_DEMO2                        UNIQUE    USERS                          YES
    I checked it on a database of 10.2 and 11.1. The behaviuor is the same. My main question is, where can I find information in the dictionary of data in which of the two ways a constraint and an index conencted where created without deactivation and activation of the constraint.

    Published by: user1775992 on 22.11.2011 03:32

    Getting back to the original question for a moment, that I remember trying to find it earlier.

    I don't know if she is exposed through a decent data dictionary view anywhere, I certainly have to find one at the time, however I came to the conclusion this implicit attribute of create/remove an index has been revealed by the ILO 13th column of PROPERTY in SYS. IND$

    Using your two tables to test above for example, I get this:

    SQL> conn / as sysdba
    Connected.
    SQL> select object_name,object_id from dba_objects
      2   where owner='SCOTT' and object_name like 'PK_DEMO%'
      3   order by 1;
    
    OBJECT_NAME OBJECT_ID
    ----------- ---------
    PK_DEMO1        13333
    PK_DEMO2        13334
    
    SQL> select obj#, property from ind$
      2   where obj# in (13333,13334)
      3   order by 1;
    
          OBJ#   PROPERTY
    ---------- ----------
         13333          1
         13334       4097
    

    so, for PK_DEMO2, I interpret 4097 = 1 + 4096 to indicate 'unique' + 'implicitly created.

  • I can distinguish between googlemail accounts in the mailto option?

    I have 2 different gmail accounts. When I use the "Link email" command it does not distinguish between the 2 accounts. Set the option to use a single gmail account?

    See settings > multiple accounts management:

    Management of multiple accounts - Gmail Help Center:

  • Distinguish the event log device

    Hi all

    I'm getting errors in the log of events of a machine as follows:
    The driver has detected an error of the controller on \Device\Harddisk5\DR5.
    I'm trying to identify the device causing this error.  I looked in the support article "how to distinguish between a peripheral drive of year physical Message event" http://support.microsoft.com/kb/159865?wa=wsignin1.0
    The problem I have is that I don't currently have physical access to the machine, so I can't simply open Device Manager to take a peek and the method using the registry does not seem to apply to Windows 7.  I have no other options or will at a distance, I have access to the system have a look.
    Thanks for the help

    Hi André,.

    Error: Device\Harddisk5\DR5, DR means a removable drive. So please check the USB device, or remove and reconnect all USB devices.

    This problem occurs when all the following conditions are true:

    (a) you have a removable drive, such as an Iomega Zip drive, configured as the drive letter C.

    (b) you don't have a removable disk in the removable disk drive.

     

    Let's change the assignment of drive letter for the removable drive to one letter other than C:\.

    a. log in the computer as an administrator.

    b. Insert a disk in the removable drive.

    c. type computer management in the start search box and press ENTER.

    d. click on disk management.

    e. right-click the partition, logical drive or volume that you want to change and then click on change drive letter and paths.

    f. click on the removable drive, click it, click on change, click the drive letter that you want to use, and then click OK.

    If the above is not enough, you need to connect only one device at a time to identify which device is causing the error.

    Hope the above information is helpful.

  • Store/communicate IMAQ image (binary) between the structures of the case

    Hi all

    I am trying to build a VI for a controlled industrial vision system and it has 2 process: first an image of calibration comes a sequence of discrete of images. After that, the user can start and stop the continuous controlled process of machine vision. This process then uses the calibration image to remove some background objects etc..

    As the two processes cannot run at the same time, I programmed it as an event-driven state machine (following this tutorial: https://www.youtube.com/watch?v=RuIN31rSO2k) combined with continuous acquisition.

    My question is how to store and communicate the image of calibration between the structures of the case. It is basically a static image that is generated at the start of a race and then used once during the continuous control loop.

    Now, I tried storing in an IMAQ control with a local variable, but it does not work when I try to read the image. Preference image must be passed the bottom without any interference of the façade. I could probably make it work if I pass on the image in a table and then convert it back, but I want to avoid unnecessary conversions and understand how to manage the images correctly.

    Joined codeblock showing the part where I (attempt to) store the image and how the process of continuous measurement is connected (Yes, I know the live view is wired incorrectly in the scheme of the latter, it was a test to show a colleague).

    Thanks in advance for any help!

    Consider placing the image, the data record in a turn on your main WHILE loop.

  • Drop-down list: distinguish between programming and modification of the user

    I have a drop-down list with a few options, the selected displays current status.

    The State can change programmatically I have to update the drop-down list.

    I want to distinguish between this change programme and focused on the user.

    No idea how I could do this?

    The classic solution to this problem is to add a flag (Boolean property) that you control, and which inhibits the onThingChanged response when set. You set this just before you perform a change of programming and clear right after. When the change is made by the user, the flag will be clear and the onThingChanged would do its thing.

    There may be other ways to do this in specific cases, but this approach has worked in all situations in which I have tried so far.

  • No way to distinguish between failure and normal when to get the document of the UCM?

    Hello

    I use the service GET_FILE below to get the document from the Complutense University of MADRID

    request.putLocal (IdcService.NAME, IdcService.GET_FILE);
    request.putLocal (IdcDocumentAttribute.DOCUMENT_ID, dID);
    request.putLocal (IdcDocumentAttribute.NAME, dDocName);

    and then the output stream:
    ServiceResponse response = client.sendRequest (context, dataBinder);
    InputStream inputStream = response.getResponseStream ();

    they work most of the time very well.
    However, in this case, exception that I can't file, rather than receive exception, I always get a steady stream until I got out of the stream as a string, I realized that this is a format string HDA indicating failure.

    I wonder if there is no way to distinguish between failure and normal exit without open the output string stream?
    Thank you.

    We expect that the user can download the document so successfully in the form of output stream.

    It's probably a bad support, as you have already seen ;-)

    Is the output as string-HDA when the expected of the UCM rather than throwing exception failure?

    It should be pretty easy parse the real answer to retrieve the status code the system riser. You should not need to open the file to find the error.

    Something like

    response.getLocal("StatusCode")
    

    should tell you if the file has been found. A-16 status code means that the file could not be found. In the case of a successful GET_FILE, it does appear that a status code is still present, so test just for the mere presence of a status code should be sufficient.

  • Conflict between the cursor and the buttons?

    Help please!

    I used the cursor successfully to move to part 43 and 60 in a single scene:

    Stop()

    function moveAlong_ff(evt:Event):void {}

    gotoAndStop (sl_ff.value);

    }

    sl_ff.minimum = 43;

    sl_ff.maximum = 60;

    sl_ff.liveDragging = true;

    sl_ff.addEventListener (Event.CHANGE, moveAlong_ff);

    this.addEventListener ("enterFrame", onEnterFrame_ff);

    function onEnterFrame_ff(e:Event) {}

    sl_ff. Value = this.currentFrame;

    }

    And I also managed to implement a few buttons that navigate between scenes with success:

    ff_btn2.addEventListener (MouseEvent.CLICK, jump11);

    function jump11(event:MouseEvent):void

    {

    gotoAndPlay(1,"Scene2");

    }

    fb_btn2.addEventListener (MouseEvent.CLICK, jump12);

    function jump12(event:MouseEvent):void

    {

    gotoAndPlay(1,"Scene3");

    }

    bs_btn2.addEventListener (MouseEvent.CLICK, jump13);

    function jump13(event:MouseEvent):void

    {

    gotoAndPlay(1,"Scene4");

    }

    However, when the above scripts are present together there seems to be some kind of conflict, and I get the error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at trailfresh_demo_19_fla::MainTimeline/onEnterFrame_ff()

    Can anyone help because I would like to really be able to navigate between the scenes using the buttons and also have the cursor work in different scenes?

    first of all, make sure that it is not an obvious error.  Click the object that you think is sl_ff and check the properties panel to make sure that the spelling is correct.  using the copy (from your code) and paste (in the properties panel) provide the spelling is the same in both places.

    If this does not resolve the problem:

    If you have created sl_ff by putting it on stage in certain keyframes to verify if it is interpolated of chronology.  If this is the case, it is a subtle cause of this problem.  I would like to know if this is the case.

    otherwise: the first keyframe that contains sl_ff should contain your code (or there may be another subtle cause of this problem).  t it?

  • What is the difference between the ref cursor and the sys_refcursor.

    create or replace procedure GetEmployeesInDept (c sys_refcursor)

    Hello


    I have a query related to the above stored procedures.
    When you set the cursor, we mentioned as sys_refcursor and in some US sites I saw him as a REF CURSOR as shown

    create or replace procedure GetEmployeesInDept (Ref Cursor c)


    Please tell me what is the difference between the ref cursor and the sys_refcursor.

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/tuning.htm#sthref2376

    Concerning

    Etbin

  • Flashing light without the event Structure

    Hey everybody, this question should be worded a bit better than my past. I've finally finished Core 1 and 2 so now I really have a grip on what I ask. Haha!

    In any case, I have a game custom sensors that interface via a com port and a weight which is summarized output.  The weight is then put through a business structure to give different sizes "bucket".  The various cases of output values to a slider that the user sees. This is just to give you an idea of how the load is large.

    What I need to do, is make a Boolean flag that starts flashing if she sees a significant change in weight. The weight is anywhere between 0 and 20 pounds, so I thought that a change of 1 lb or more would be a great time to activate the flashing.  I also need to only flashes for a short period of time (10 seconds).

    I tried to use the structures of the event based on the cursor and a property node. I created an event based on a change in the value and put a flashing property node, but all that did was cause my Panel before locking.

    Any ideas?

    Well without seeing your VI do is to feed your weight measurement in a shift register on the right side of your loop. Take the register shift on the left side and slide it downwards. This will give you the previous iteration of displacement registry value that you can compare up to our days.

  • using the structure of the event in the LabVIEW classes

    Hello

    I'm new in the use of LabVIEW classes, so don't know much how I can use them.

    In my main program, I have clusters with five elements in each. The elements are controls two States and in some groups, there are three States controls. The user will press the buttons (controls), and different things will happen. In my first program were I not using classes, I had a structure of the event and the controls were cases of event in the structure.

    Is it possible to somehow use an event of cases in one of the methods that is created in the classes, so that say, that's not in the main program?

    I have attached two photos: I wanted to have a structure of the event in servoTouchEvent (in left.tri.lvclass) who is a child.

    Let me know if my explanation is not clear.

    Grateful for the help!

    Hello

    Yes, you can have a structure of the event in a Subvi rather in your main VI of top-level UI. The trick is to use the 'Save for events' and passing in references to orders that you want to have the event trigger structure for. The refnum output since the function is entered in the terminal of dynamic event of the structure of the event who could live in a Subvi. You can add instances of event where you will see these control events as dynamic events then you can do something with. These excerpts from shows all the code in a simple diagram, but the stuff in the structure of disable diagram could easily transformed into a Subvi:

     

    All this can be done without classes. What will buy classes you include the ability to encapsulate your screws and also perform different code based on what object on the hierarchy of the parent-child classes is on a wire. If the behavior of your code is different between 2-3 State and controls (which I do not know what state controls 3 you are referring), you can take advantage of the classes.

  • structure of the event to turn on and off a LED

    Good afternoon

    I would like to activate a part of my algorithm according to the value in another part. To make it easier, I symbolize the value by a button and tried a structure of user event to turn on or turn off an LED located in another while loop.

    I can turn on the LED, but unfortunately I can't spend off of the LED thereafter.

    It is possible to change the structure of the event and select the option "change value". However, I would like the fatest way to turn on and off using the structure of the event and the Bay. I mean I would like activate a part of the algorithm only if the button is enabled for not having a continuous audit of the value of the button by the structure of the event.

    Please, if anyone has an idea to turn off the LED (after the switch on), add a comment without hesitation.

    I will be happy to solve this simple problem.

    Thanks in advance for your help.

    Ragards

    You have a race condition.

    When you click stop, it's a race about whether if the event gets not saved and destroyed by the removal of the stem all loop against sending the same user in the lower loop.

    Why it only seems to happen with the case of false must be a quirk of how the code is compiled and the order, it is run.

    If you put a step between your Boolean switch and LED, for me anyway, the error is now generated on the true case of the structure of matter (always false for switch.).

    If you put a constant error in the lower loop and wire while guaranteeing the Unregister event so that you now it does not run until the two while loops are arrested, then I don't see a mistake regardless of the value of the Boolean switch when you click stop.

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

Maybe you are looking for

  • How to read old texts Iphone 5

    I would like to access older text messages. Have not deleted, just can not know how to reach them, in settings, choose "keep Messages forever" - may have been a mistake, because I can't see any 2 months ago. (lol)

  • Camileo X 400-webcam possible resolution

    Hi, I am using a Camileo x 400 set up as a webcam to record a podcast. I can't just to get a resolution of the camera. I don't know what it is but it isn't great. I want to get 1080 out of it. Is there a way to change this as each program I used an I

  • Help! May not reflect 2009 Macbook Pro to TV via Apple TV3

    Hey all,. Hoping someone can help here. What do I need? I have a Macbook 2009 mid Pro, completely updated through this date with El Capitan, 14/02/16. I also have a 3rd generation Apple TV, that I would use to reflect what's on my Macbook to my telev

  • Is that what anyone has successfully downloaded the last 2 BIOS, 40 - WIN for the P100-188?

    The reason I ask is because when I try to download the file, it keeps coming up empty, I'm not comfortable with update by using the traditional method, because it seems that more things can go wrong during the process, and Toshiba recommends using th

  • Transfer data to a new gamertag

    Is it possible to take my progress on this Xbox account (all, as in, achievements, run game, especially characters in fate) and move them to a new gamertag. Not a new e-mail, a new gamertag and live account altogether. If I could keep my email, which