get the index of an element of an array with the click of mouse

Hi all

I want to get the index of an item in an array when I click on that element. I have seen a few examples in the forum, but they do not work for me... Can someone please help me to do this. I enclose my vi here.

Thanking you with impatience,

Kind regards

Nitz...


Tags: NI Software

Similar Questions

  • multiplying the elements of an array with their index

    How can I multiply the elements of an array with their index values.

    Thanks in advance.

    Hi aksoy,.

    Multiply the elements with their index:

  • Panel with click - image inside Panel event gets the click on-site

    I have a panel that uses its click event is locally.  It works very well for every click except when you click on a picture inside the Panel.  The image is reduced on the x-axis, so this worsens the problem (because the locally returned value is based on the value of is not put on the scale). Is it possible to ignore the click image event and just its parent panel get the click?

    Thanks for any help.

    Try to set mouseEnabled and mouseChildren to false on your Image.

  • How can I disable the clicks of mouse for 8 Captivate?

    How can I disable the clicks of mouse for 8 Captivate?  It seems that the most recent set of instructions are from 2013 and the dialog box has changed.  I'll also say that I'm all new to Captivate

    Not quite true: you can select a mouse object in the project, disable the mouse click. Then use the menu at the top right in the properties panel (Hot Dog or hamburger icon) and choose "Apply to all elements of this type" and click of the mouse is disabled throughout the project.

  • Invoke the bean of calendar (from Oracle) on the TIMING of the CLICK of MOUSE events in a text box

    Hello
    I want to get the date the user has selected in a calendar of bean (supplied by Oracle), currently my practice is to put a bean for each calendar and after date selection I am pushing this field required date, suppose I need calendar half dozen in my form I have to place the beans a half dozen, basically I don't want user of bean rather , I want him to click on the text box then CLICK event, it will display a calendar of the bean click and on the selection value will return to the text element.
    Please guide is it possible if yes how.

    Version of Oracle Forms. 10.1.2(webutil installé)
    Database. Oracle 10g Enterprise


    Thank you and best regards,
    Syed Khawar

    now when the user clicks on bean, it appears calendar through trigger WCIE

    It's a way to view the calendar of Java, however, you can simply place a button on your canvas for each calendar you wish to view and then in the trigger Button-When-Pressed (WBP) to run code similar to the following:

    /* Code example assumes you have a CONTROL block with a */
    /* block Item called: CALENDAR_ITEM, which will act as a variable */
    /* to record which date item the Java Calendar was called for. */
    BEGIN
       :CONTROL.CALENDAR_ITEM := 'MY_BLOCK.DATE1';
       Set_Custom_Property('CALENDAR.BEAN_AREA',1,'SHOW_CALENDAR','50,50);
    END;
    

    This code displays the calendar and assign the value "DATE1" to your 'Variable' control block, so that you know what Date is your calendar was called for. Then, in your trigger when-Custom-point-Event (WCIE), you manage the date returned by your calendar of Java Bean and assign the value to the element of date in your CONTROL. Field of Calendar_Item.

    DECLARE
      v_event_name      VARCHAR2(30) := :SYSTEM.Custom_Item_Event;
      v_event_vals      ParamLIst;
      n_event_val_type  NUMBER;
      jb_date           VARCHAR2(256);  -- Complete Date as returned by the JavaBean
      d_formated_date   DATE;
      jb_day            VARCHAR2(256);  -- Day Number (1-31)
      jb_month          VARCHAR2(256);  -- Month Number (1-12)
      jb_year           VARCHAR2(256);  -- Year Number (YYYY)
    BEGIN
      IF ( v_event_name = 'CALENDAR_EVENT' AND :CONTROL.Calendar_Item IS NOT NULL ) THEN
        v_event_vals := Get_Parameter_list(:SYSTEM.Custom_Item_Event_Parameters);
        Get_Parameter_Attr(v_event_vals, 'CALENDAR_EVENT_DATE', n_event_val_type, jb_date);
        Get_Parameter_Attr(v_event_vals, 'CALENDAR_EVENT_DAY', n_event_val_type, jb_day);
        Get_Parameter_Attr(v_event_vals, 'CALENDAR_EVENT_MONTH', n_event_val_type, jb_month);
        Get_Parameter_Attr(v_event_vals, 'CALENDAR_EVENT_YEAR', n_event_val_type, jb_year);
    
        /* The variable JB_DATE contains the full date formated as MONTH DD, YYYY */
        /* Our date format is different, so I get the elements of the date in the */
        /* jb_day, jb_month, jb_year variables so I can format them the way I need them. */
        d_formated_date := TO_DATE(jb_month||'/'||mb_day||'/'||jb_year,'mm/dd/rrrr');
        COPY(d_formated_date, :CONTROL.Calendar_item);
      END IF;
    END;
    

    This code example will allow you to use a single area of bean to support several calendar items on a canvas. If you have more than one canvas and you have an element of date on each canvas, you would need a surface of bean / canvas.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • The clicks of mouse and trackpad... do nothing.

    MacBook Air under the age of two months.

    Symptom: pointer moves on the screen I use the trackpad, noise of rattling and sensation is full, but the click does nothing in the system.  I can't click anything on the screen, can not open or close anything. Connect a wired USB mouse, same thing! -move the pointer, occurs, clicking noise but no action on the screen (or OS environment) after the clicks.

    Then... eh.

    SMC Reset works temporarily, but the same symptoms returned.

    Some responses have been that there has been a spill, crumbs or a chassis folded.

    Crumbs?  -Gosh, maybe.  Frame bent or such?

    But then WHY would a SMC restore temporarily solve the problem, as it does in my case?

    If the problem was physical (trackpad inhibited by crumbs or bent), then LANDAU or SMC should not have any effect, in my mind.

    In addition, if it's a problem of trackpad, why the same thing would happen with a usb mouse?

    Anyway, I hate just my experience on my MacBook Air two months old now.  I know, give it to Apple and they have to him.  But, dang, the problem could be temporarily fixed, so... .it, for those who know really not on motherboards, firmware or other think about it?

    Please read If your pointer is nervous when you use a trackpad, Magic Trackpad, Magic Mouse - Apple Support.

    In addition, if it's a problem of trackpad, why the same thing would happen with a usb mouse?

    The following can help you pinpoint the problem. Please refer to OS X El Capitan: mouse and Trackpad pane accessibility preferences.

    To ignore the trackpad while using the mouse, choose (Apple menu) > System Preferences > accessibility > mouse and Trackpad. Select ignore built-in trackpad when mouse or a trackpad wireless is present.

    Determine if the adjustment changes the behavior you know.

  • How to get the clicked page number?

    I created a toolbutton.

    After I active this button I click on the page.

    Implement DoClickProc for toolbutton I get AVPageView and AVDevCoord.

    But how to know the page number, I clicked?

    Thank you.

    Hello

    Try to use the method AVPageViewGetPageNum (inPageView)

    Concerning

    Bartek

  • Get the image of Excel as a form and save it as a .jpg

    Hello

    I am fairly new to ActiveX and will have a hard time to do a seemingly simple thing: get an image named from an Excel file and save it as a .jpg file.  I've seen similar things for Excel chart objects, but as I understand it the images are "shapes" in Excel and I was unable to find the right method to extract a form. Please, if someone could look at the folder below and tell me if I am on the right track, if there is a better way to do it, or if there is a way to do it at all, it would be useful.  Note that I don't like not how effective a strategy - if I need to register in a middle of another type file, that's fine. The only goal is to be able to extract this image and save it with a click of mouse and without manual intervention.

    Folder contains: 1 example Excel file containing the image named "picture 1"; 1 vi showing the method I found for the export of Excel graphs as .jpg; and 1 vi with the progress that I've done so far tried to get the picture of the Excel file and save it as a .jpg file.

    Thanks in advance!

    Megan

    Hi megan,

    See what link.

    It will be useful.

    Mike

  • Change the mouse click on display once for all the clicks?

    When you create a demonstration of the software in Captivate, I would like to change the mouse click default Visual to the custom effect 'blue circle' for all clicks.  Is there a way to change the default or modify all mouse clicks with an entry?  It is possible to change the shape of all occurrences of the mouse pointer by right clicking a mouse, but it doesn't seem to be a similar option for the click of mouse vizualized.
    Thank you, in advance.

    Try this option in the PI (Inspector):

    Kind regards

    Michel

  • How to get the index of element of constant of cluster

    Is it possible to programmatically determine the index (order) of a particular item in a constant of cluster (typedef)?  The cluster is a group of commands, using the control [] array is not an option.

    It seems that this would be an operation of property, but as there are a no "references" for control objects (is there?), there is no properties of control objects.  I use clusters of risk much.  I struggled with the same problem trying to retrieve cluster of clusters of control element names (all roads lead to OpenG :-) don't want to install VIPM :-().

    I use a digital video recorder with a bunch of berries to share data between an application and use in the structures of the element of the Place to read/write tables. Each table (all the bool or slna) represents an array of values to write to the output of the modules (digital and analog).  Usually I only update tables in a loop and read in several screws/loops.

    From the beginning, I stored the data in table form, but later in development, I created typedefs of cluster for clarity when using the data in a FP VI (especially when you read the data in the table and the display on the indicators).

    The exception to the rule of write-once/read many is when I just want to set or clear a single bit BOOL.

    Attached is a picture showing 2 ways to do the same.

    The structure of the DVR read/write on the RIGHT illustrates how I currently updating a single element of an array of BOOL.  In particular, I want to bit - 2 a table named "bOutputCmds".  [bOutputCmds] is an element of a group named "IoCluster" and the "IoCluster" shared across the application by a DVR named 'IoDataRef '.  Safe to update the value of the wick requires 3 operation in Place (in Place DVR R/W in Place unbundle and in square array Index).

    It works very well.  However, the operation requires specifying the index of the little interest, in this case, "2".  I could assign constants for all the special bits, but it would seem more appropriate to enjoy for typedefs that I created. Typedefs allow me to make changes to assignments of IO and describe the configuration in one place.  DVR R/W element on the LEFT illustrates a way to update a single bit (safely) a cluster element name.

    Retrieve the index of the "bLoadEna" item (2) of the typedef of cluster used on the LEFT would make the solution on the much cleaner RIGHT.

    My backup is to replace all the paintings that I originally put in the cluster shared with the individual clusters later I so carefully set or replace all command non - clusters with clusters of the indicator. Or the other works perfectly. For the most part, I'm technically curious because I tend to bang against the limitations of the control clusters quite often.  I seem to be a programmer of NON-INTERFACE in a world of the user interface.

    In fact, my last statement was rhetorical, but it is really quite real.  My request is a controller shipped without a head, so I don't no need or use many controls.  Maybe I should think about some before picking on clusters of risk...

    Fact.

    Thank you

    Peter

    Use the tools of my favorite library, VariantDataType library, found at vi.lib\utility\VariantDataType, as shown:

    The functions used here are "GetClusterInfo" and "GetTypeInfo."

  • Get the maximum index of a vector of growth

    Hello

    I'm having a very strange problem. I simulate data with an sine function in a while loop and I keep the values< 0.7="" into="" a="" vector.="" when="" the="" sinus="" values="" are="" over="" 0.7,="" i="" remove="" the="" vector.="">

    I would like to get the maximum index of the vector at each iteration of the loop. However, I get a zero index while the vector has a size > 0.

    It's really strange, because if I put the values of the iteration instead of the values of the sine, the index created is correct (the only difference is that the iteration number is an integer, while the sine is a decimal number).

    To make someone understand something?

    Thanks for your help

    Andrew

    Instead of "delete table", just leave the REAL empty case and 'use default if unwired' on the output of the table tunnel.

    Once the sinuses is once again<0.7, you="" are="" on="" the="" descending="" branch,="" so="" the="" first="" element="" is="" always="" the="" largest="" for="" a="" while.="" nothing="" wrong="" with="">

    I would also put indicators after the case structure so they update in all conditions.

    Table min & Max will give you the index of the element with the highest value. If you want to know the size of the array, use the function "size of array".

  • Get the current Index of the Ring System

    I need to know the index of the ring box that is currently displayed on the front panel during execution.

    The ring box values do not necessarily correspond to their clues so I can just wire the ring box itself to property [] DisabledItems.

    The way I'm going to get the index of the item "displayed" the control of the ring is as follows:

    A reading in the strings [] property returns an array of strings of the 'Elements' of the order of the ring.

    A reading in the RingtText.Text that returns the string value of the current item displayed in the control of the ring.

    I use the search function to search in the array of strings to the current text, and it gives me the index of the current item displayed in the control of the ring.

    Is there a way to get the index of the currently displayed index of the ring directly control?

    In a Word, no.

    the method that you use is the easiest.  If the srtings are very long, you could unbudle [channels] and property values and this table just to save a few (very minor) research paper.  Keep in mind, control system properties depend on the operating system

  • How to get the index of color framed in framed color box table 2 D box control

    Hello

    In project, I want to show the different status (Std, TIP, success & failure) with different colors for 200 boxes of colors arranged in a 20 X 10 (table 2 D). When the user clicks on one of the array element, I want to show the details, so I want the index of the element. How can I get?

    Thank you

    Shrinivas

    http://forums.NI.com/T5/LabVIEW/identify-which-array-index-and-cluster-element-has-been-clicked/m-p/...

  • How can I get the index of the current pulse model vi?

    I would like to be able to see the current index pulse model vi. According to the help of Labview, a pulse is generated whenever the entered delay (d) is equal to the index (i). Is it possible to get the current index that the vi is on? If so, how could I do that?

    Laura121,

    Your question suggests that you can not understand how the VI.

    You are referring to pulse Pattern.vi in the line object and Pulse Pattern.vi in the text of your message.  Here are the two live different in the context of your question, it seems that you are referring to the Pattern.vi impulse.

    When the VI is called, it returns a table in its entirety (of length = samples). For the Pattern.vi of pulse all the elements of the matrix results are zero except the index i = d, where the element has the value = amplitude.  So, there is no concept of "current index that the vi is on" with this VI.

    Lynn

  • Get the index of the ListItem

    Hello guys,.

    Is it possible to get an index of the ListItem. I do not mean index of the selected item. Will try to explain why I need. I have a listview with custom points and would like to have somethink title as Page 1, then Page 2, etc.

    Any help will be appreciated.

    Thank you!

    Hello

    These properties could work for it:

    • ListItem.indexInSection - the index of this item among his brothers and sisters. The siblings are elements that have the same parent as this point.

Maybe you are looking for

  • Missing internet connection icon

    Internet connection icon disappeared from the taskbar in Windows

  • clean the disc

    thought I'd do a cleaning disc but worried, this would remove the stuff that I needed because I'm a newbie to technical data on pc - any help would be appreciated

  • How can I change the brightness of the screen?

    Ok. Here's my question. I have a Windows Vista Home Premium laptop. Whenever the charger cable is in it, it becomes more clear. And when I take the screen gets darker. I went to the windows Help Center and they don't tell me nothing. Please please, p

  • Difference between ISO ESXi M420 and M630. Is this the same ISO?

    I will install 6.0 ESXi update 2 of 3 new servers M630.  I used the ISO next to install my m420s: VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64-Dell_Customized-A02.iso This ISO works for my m630s so? These aircraft were ordered and received

  • 200 series smart switch (SG200-18) access to the web interface

    Hi all!The system flashes green which I understand means that it is currently using the default IP 192.1681.254. 1. do I need to connect a computer directly into it to get on the Web site? Or do I just use any computer on the local network that uses