Min array index problem.

Hello everyone,

I want to take a trigger pulse data that only my trigger pulse takes the form of square wave. For that I am taking the min and max markings table. When I use this pellate, it does not index table min correctly, it gives the worng number. Could you please see the attached Vi and data, check the value of the minimum index and suggest me how to get the minimum index of the true picture?

Is there a reason that you need 2D table, because samples are only in a single column? Attached to what a possible solution might look like in 1 d

Tags: NI Software

Similar Questions

  • Determine which cluster and the array index element was clicked on table clusters

    Hello

    I'm overload of brain with dynamic events and references and nodes of property etc.

    I am trying to identify the cluster and the array index element that was clicked on table clusters

    This gives me the name of the element:

    Is this reasonable?  How can I get the index?

    Thank you

    Paul

    Hello

    Download the VI in this link (also attached).  It gives you the index of the array element that you clicked. Hope this will help you.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • How to build a dynamic array index in the attribute 'to' house arrest

    Hi all

    I need to generate xml output with the appearance of multiples of the same complex element. The number of items is calculated dynamically. I use bpelx: append to add items, but I'm crashes when I try to assign values to elements using a variable to index items.

    How can you dynamically assign an array index variable in the attribute 'to' a copy instruction? I was able to do in the attribute 'from' the copy statement, following the examples indicated in the documentation for the xpath function. But when I use the concept of intermediate variable, I get a compiler error stating that the query attribute must start with ' / '.
    It works fine when I hard code the index in the attribute of "query" in the statement "copy to".

    I use 10.3.3 version JDev and 10.3.3.0 PM BPEL version.

    Here are the two methods I've tried:
    ----------------------
    < copy >
    < expression = "concat ('/ client: assTestProcessResponse / client: ScreeningComments / client: CommentItem [', bpws:getVariableData('notesCount'),'] / client: CommentText')" / >
    < variable = "queryText" / >
    < / copy >
    < copy >
    < expression = "bpws:getVariableData('noteText')" / >
    < variable = part of the 'outputVariable"="payload ".
    Query = "bpws:getVariableData('queryText')" / >
    < / copy >
    ----------------------
    < copy >
    < expression = "bpws:getVariableData('noteText')" / >
    < variable = part of the 'outputVariable"="payload ".
    Query = "/ client: assTestProcessResponse / client: ScreeningComments / client: CommentItem ["bpws:getVariableData(&quot;notesCount&quot;) " ""] / client: CommentText "/ >
    < / copy >

    ----------------------

    Has anyone had a similar problem? Please let me know this is doable and how.

    Thank you
    A.T.

    Hello

    I don't know if the following solution is what you want, but I'll try to explain how this would work; (o)

    I understand your question, you have a following like the watch of simple structure xml schema:

    
      
        
           
        
        
           
        
    
    

    The element is a complex type that has as a child element.
    The element can have 1.. * items

    As you explained that you know how to add loose, common is to use an XML Fragment example

    
      
        
          
            
          
        
        
      
    
    

    As you can see now there are two elements with the child element

    After the task to assign the variable content looks like:

    
      
        
          
            
              
            
            
              
            
          
        
      
    
    

    After adding the fragment, you can set the value for the for the first content element in the following way:

    
      
        
        
      
    
    

    The important thing is to know how to point to the correct position within the payload. It works with that part of the query statement

    [position()=1]
    

    or you can of course use the short version

    [1]
    

    The next task is to dynamically create the reference to the position. Therefore, you can for example use a variable. You can for example something like this:

    
      
        
        
      
    
    

    And the last step is to set the element of content dynamically using the defined variable

    
      
        
        
      
    
    

    The only thing to use the defined variable is that part of the query:

    [position()=bpws:getVariableData('Position_Variable')]
    

    Finally, the XML Structure should look like this:

    
      
        
          
            
              Content1
            
            
              Content2
            
          
        
      
    
    

    Concerning

    Alex

  • Spotlight indexing problems

    I cleaned files on my hard drive - re-filing of certain documents (pdf files) rename photos - adding text says pictures of things like that.

    Have had occasional problems with gel - startup etc - that only seem to happen after a cleaning.

    By checking newspapers led to a finder error - saying his flight, or a job did not finish before the closure.

    Never really used it yesterday and it deleted all the files the search-, but if it ends up falling on indexing - or anyway to clear it.

    I was wondering if the problem is that indexing never delete old stuff - maybe the problem after snow leopard from is that the re-indexing after each update is in fact eventually causing an overflow (leak) because the size of some user data was not provided (or someone to pull).

    I'm on snow leopard on a Mac Pro 2008.

    Update on this problem...

    If you are looking for articles on how Spotlight indexing problems - other sites of mac users - OSXdaily, for example - to have discussions on this topic, including advice on how to use a statement in a terminal to turn it off completely - the problems are similar to those that I have - then it's perhaps a question that has not been reported to Apple.

    My problem seems to be a combination of chaining a large number of files and moving them - combined with Time Machine.   I have restore a plu Time Machine folder which contained 1200 small pdf files - which lost some how because of permission issues when I moved them.    As well as readonly files I could not restore them unless I put them in the box and then changed all the permissions read and write.   The older folder was actually the first time machine upward when the main folder in question had been copied from the CD for the office (he gave no permission to write to the subfolders in the main but to load data)

    My time machine is now stopped and I ejected the drive until I decide how to restart backup.

  • array index

    Hello

    I built a small VI which displays a table 1 d of the images and a table the values of each image pixel 2D (it becomes 3D). I would like to have access to the array index to view the image with its pixel values (see attachment).

    If there is no way to access the index because it's an exit, I thought about a 2 column table where the first column will be composed of images and the second of all the value of the corresponding pixels 2D paintings. And the display could be done at the same time because it will be part of the same table.

    I don't really know if I can do it. This seems a little strange to build an array of 2D arrays...

    Thanks for your help people. I searched a lot but I've yet to find something similar. I enclose my VI (8.0), the FileInfo.vi becomes just a binary information and I read images all the (320 * 240 * 2) + 1016 bytes (frame size) + size of the header of the frame.

    It seems that Matthew has proposed a solution that looks like it will work (unfortunately, I can't do anything in LabVIEW for the moment because I upset him, and it is essentially suspended... I'm trying to give him a chance to redeem themselves before that I have to abandon the process and lose my other works... ). What I would say to you, is to ignore the idea of how you store the data in the way that you view the data. All you really need to see is a single image and a table 2D pixel values, with a kind of control that allows you to change the image and table 2D display.

    Grrr. Curse you LabVIEW! Who would have thought that you could not put 300 k items in a Listbox and expect it to work... I just killed LabVIEW; at least the automatic recovery tool works.

    So, now that it's the road, I can whip up an example. I have attached a quick example where you can basically copy the block schema and paste it into your vi (just replace table 3 and table of Image controls with the sons of your loop (you can delete the indicators related to these threads).) It is a very simple GUI that allows you to drag the cursor to select an image, and when you do, it will display the appropriate image and a table of pixel values. The node property is here just so that when you run the program, the correct values will appear even before you click on anything.

    Chris

  • references element-by-element array indexing

    Hello

    I have a simple question. How can I go on a references element-by-element array indexing? For example, when you use a reference to cluster, there is a property node called "controls [of] ' what we spend in a loop for. For a normal array, "enable Indexing" is usually automatically active when you enter a loop for. Why did for an array of references, this is not the case? Thanks for the help.

    Up there, you are working with a reference to a photo table.  Down, you work with a table of references to individual image controls.

    Looks like you do more complicated it must be.

    You can use picture to Pixmap function to get the image data.  And just automatically indexing the images come from the matrix of the images.

  • What is the purpose of the function Array Index in the example attached?

    Hello

    I'm fighting with the Array Index function. I found the attached VI on the OR site which was exactly what I wanted to do, but rather than simply accept that it works and use it, I wanted to understand.

    What is the purpose of the function Index of table inside the while loop? If I put a probe on part and on the other, the values are the same, but if I remove the service and connect directly to the > function, I get an error.

    I do not understand the tables but I don't understand what is happening here. Any help would be appreciated gratefully.

    Thanks in advance.

    It is just picking the first reading of the table in the waveform.  If it's good enough (I'd take at least the average of N samples), why not cela?

  • Can I call a function using the array index?

    I defined a table that stores the name of the function, like this:

    var aresetButtonTop:Array = new Array(resetTop1,resetTop2,resetTop3,resetTop4,resetTop5);

    Then I have a button named "btnresetTop" which, once clicked will be called one of the five functions stored in the array (aresetButtonTop) above. Functions are called at runtime depending on certain conditions. I need to figure out how I can call these functions using the array index. I use the following code to call the function. The value of i has already been calculated.


    btnresetTop.addEventListener (MouseEvent.CLICK, aresetButtonTop [i]);

    After doing this, I get the following error when I click on the button:

    TypeError: Error #2007: parameter listener must be non-null.
    at flash.events::EventDispatcher/addEventListener()
    at gallerytest_fla::MainTimeline/thumbTopClick()

    Note: thumbTopClick() is a function within which all these codes are written.

    I need to know if it is posible in AS3 to call a function name using array index or not. If so, could you afford ehelp me out.

    You can certainly do.

    In your case, it looks like i is out of range. Show your loop.

  • index Array entry problem

    Hello

    Has anyone seen this problem before.  I have an array of index I've used before in a previous Sub - VI, but for some reason, I get an error of wiring, and I don't know why.  I have attached the prior use and current use and I do not see why I get this error in wiring.  The entrance is a 32-bit unsign and I move the lower image to another program (not cut and paste) function.

    If you have any ideas please let me know.

    Gary Tyrna

    Disable indexing on your table, when he enters the loop For.  As for the use of local variables, give him a thought.

  • maximum array index

    Hello world

    I am a beginner in labview. I first explain the problem that I am facing. I've programmed to generate waves in sin with 500 points, as you can see in the attached vi, I am able to genetate these points as the second task, I need to find the tops of values and return the index but I am unable to find all vertices of this wave of fishing. I used the max and min vi from the table palette, but it returns a single value to me. could someone help me with this problem?

    Thanks in advance

    John

    Keep things simple.  There are built in functions to do all this work for you.

  • U8 array used in digital form with 0.1 Hz for each array index

    Hello

    I am trying to write a code that allows me to output an array of 36'000 U8 values to an NI USB-6009 digital output.

    The problem starts as soon as I try to set the clock should be 0.1 Hz send me 3600 seconds on my 36 k samples.

    Looks like it's not possible to use DAQmx Digital Out as well as a specific sample clock (or I do something wong).

    Does anyone know a clever solution to this problem? How do they give you a dataset defined with a low of given frequency the digital port?

    Thanks in advance!

    RuferT wrote:

    Ah... Thank you, Jeff!

    Indeed, I need a few accurancy in switching of signals (Timewhise).

    Is it possible with an NI USB-6216 to use somehow the clock shipped equipment to trigger the next table sent to the digital output index?

    I found evidence for it, but by the data sheet, this device also has static DIOs. If I understand your message, static DIOs are the kilelr for my app, right?

    What is the killer for your application is the source of command DIO.  Timed software DIO won't work with high precision, if you need for the material to something that supports triggering of the OID material - in USB format which means a USB 625 x for a M-series or a x 634 for the X series (beware the series 6341 x only supports timing on 1 port material - check the specs for yourself before decide you)

  • How to JSON array index

    Hi, I have this structure of JSON:

    {

    "Colours":]

    {

    "1subcolor":]

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subcolor":]

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subcolor":]

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ],

    'Handle':]

    {

    "1subhandle":]

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subhandle":]

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subhandle":]

    {

    "title": "3rd round."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd round."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ],

    'Access':]

    {

    "1subacc":]

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subacc":]

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subacc":]

    {

    "title": "3rd CAC."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd CAC."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ]

    }

    I created dynamically 3 buttons I want, with the names (color, handles, accessories)

    $.getJSON (jsonfile, {function (data)})

    $(données, fonction (tableau, index) {} .each)

    Console.log ("first each", index, array);

    $(index, fonction (k, value) {} .each)

    Console.log ("every second", value);

    var s = stage.createChildSymbol ("submenutemplate", "menuofmodelscontents");

    var r = s.getSymbolElement ();

    s.$("Sub").html (Array);

    Now, how can I make the table above to be listed 0,1,2 as I want to be able to create an action click on these buttons.

    And when I click for example of colors, the 1st/2nd/3rdsubcolor table to display as the title of a div and the objects in the same array to display.

    My problem is how to get the data from the above JSON that is in another dynamic symbol, to the dynamic symbol created submenutemplate, for example. (Colors, handles, accessories) and create the dynamic symbol with the objects.

    Here is the link to the files Dropbox - complex - json.zip

    Hi Zoze

    Here is your answer:

    Dropbox-complex json - fixed.rar

    I also have 4 tips for you:

    1 take a very good course or read a lot of tutorials on JSON, your JSON Structure is terrible!

    2 complex JSON until you never know what you're doing

    3 - your Structure to animate dashboard is also very terrible JSON done with it you need to learn to work with edge animate, I advice tutorials you Lynda, can help you and in case you saw these tutorial I advice you to review

    4. If we do something we know not about it, its best to read a lot of books on the subject and see a lot of tutorials for hours on the subject to understand what we want and how we should do, think that many things about what we have and create a flowchart and advance a map or


    the best way is to turn our project in the hands of someone who knows what to do!

    If you want to grow on jQuery and edge lead, please take my advice very serious

    concerning

    Zaxist

  • CS4/JS: generate index problems

    Hello scripters.

    In fact, I have a problem with the generation of my index finger.

    The index already exists, the only thing to do with the script is to generate and place.

    When you run the script, I get the following error message:

    invalid parameter line: myIndex.generate (myIndexPage, [myY1, myX1, myY2, myX2] myLayer, true, true);

    function generateIndex() {}
    myIndex = myDocument.indexes var [0];
    var myMasterSpread = myDocument.masterSpreads.item("A-Mustervorlage");
    var myIndexPage = myDocument.pages.add (LocationOptions.AT_END, myMasterSpread);
    myLayer var = myDocument.activeLayer;
    var myBounds = myGetBounds (myDocument, myIndexPage);
    var myY1 = Math.round(myBounds[0]);
    var myX1 = Math.round(myBounds[1]);
    var myY2 = Math.round(myBounds[2]);
    var myX2 = Math.round(myBounds[3]);
    myIndex.generate (myIndexPage, [myY1, myX1, myY2, myX2] myLayer, true, true);

    }

    I checked all the settings, they're right.

    What else could be wrong?

    Thanks in advance for any help.

    Hi Franziska,

    You must define a place point with an array of two values instead of geometric with an array of four values limits - as you did:

    var myStory = myIndex.generate(myIndexPage, [myY1, myX1], myLayer, true, true);
    

    This generates a new history of the index.

    Later, you can do something with the textContainers of the new history of the index (for example to specify geometric limitations).

    Martin

  • Satellite click mini camera rear problem

    Hello! could someone help me please. 10 rear camera no longer works after upgrade and installation of windows. What will I do to solve this problem? Help, please. Thank you

    Click on the Mini - fix driver camera
    ------------------------------
    This has two cameras:
    -"Front" is a webcam above the screen low resolution. I think that this example uses an OV2722 sensor.
    -"Backwards" is a camera of higher resolution in a corner of the white species. I think that this example uses an AR0543 (Intel Avstreams camera) sensor
    When I got the Mini click (Win 8.1) only the rear camera worked. After the upgrade Win10 worked only the front webcam
    -previous discussion forum below gave me enough information to solve the problem.

    1. in the Device Manager there are three relevant entries:
    -under the heading of imaging devices, there is a single entry for "Signal imagery 2400 processor"
    -under system devices there were two entries: ar0543 OV2722 sensor camera and camera sensor Unicam
    2. the driver for camera sensor Unicam ar0543 is OK (10/07/2015), but you'll have to let him search online for updates from the other two.
    -With camera sensor OV2722 there simply a updated driver from 2014 to 2015/06/15
    -With 'Processor of Signal imagery 2400', it will update the driver (to 07/04/2015), but the entry of imaging devices becomes "Intel Avstreams Camera.
    3 Win10 then you ask to restart because there has been a change in material.
    -After that the camera application has an additional button that lets switch you between the two cameras, and both work very well.

  • Mini Mac has problems with Photoshop CC?

    I use a Mac mini (end of 2014)...

    2.8 GHz Intel Core i5

    8 GB 1600 MHz DDR3

    Iris 1536 MB Intel

    10.10.5 Yosemite

    I did a lot of testicles and Adobe Photoshop 2014 and 2015 CC CC crashes a lot.

    Is a random problem which makes freezes Photoshop records everything. No error message.

    This cause altogether lost the file, because it starts to write on the file and freeze.

    I have already asked about this on the Adobe forums, and they are pushing the problem to Apple, saying:

    Looks like you see some video driver known bugs in Mac OS 10.10.

    Apple is aware of these video driver bugs and work on a solution.

    You can check the post here: https://forums.adobe.com/thread/1916446

    But this problem also occurs on the new OS.

    I would suggest you might try upgrade to El Capitan.

    I could be wrong, but I doubt that Apple is working on any more updates for Yosemite. ! 0.10.5 was the last published update on August 13, 2015. There is no evidence that they are working on a 10.10.6 update.

    And note that your Adobe forum link is dated August 2, 2015, 11 days before the release of 10.10.5.

Maybe you are looking for