Using the LabView graphical programming language that comes standard with EV3 Mindstorms, I have created an array variable that contains 6 values. I need to determine which of these six values is the largest and have the program return the index key of the largest number in the array. Any idea how this can be accomplished?
Mindstorms EV3 - Find largest number in array
1.1k Views Asked by Baobab At
1
There are 1 best solutions below
Related Questions in ARRAYS
- Two different numbers in an array which their sum equals to a given value
- how to fill out the table with next values in array with one button
- How to sort a multi-dimensional array by the second array in descending order?
- Looping over defined array elements in Fortran
- Array appending after each onclick and loop in javascript
- PHP : How can I check Array in array?
- store numpy array in mysql
- Java Assign a Value to an array cell
- Saving FileSystemInfo Array to File
- Notice: Undefined offset: 1, but there is such offset
- How can I determine the index of the same set of characters between two strings that are of different lengths?
- Caused by: java.lang.ArrayIndexOutOfBoundsException: length=8; index=8
- Pull out first occurrences from array
- How to read a file then store to array and then print?
- C++ won't read in scientific notation data from a .txt file
Related Questions in MAX
- MAX and GROUP BY - SQL
- How to get maximum value from a column in a data.frame and get ALL records
- join 2 tables and get some columns from 1st table and max timestamp value from second table
- Excel with AND, IF, MAX
- SQL MAX expression Function
- MySQL Group By - Get row associated with max() amount
- Increase the maximum size of char array
- Postgresql : Check if the last number is the highest
- modelica: compute minimum/maximum of continuous variable over time
- exception is not coming with sql max function
- Select max value from different column in a row in oracle database
- How to Sort Data time stamp in javascript
- Finding the 5 smallest numbers from a list in Python
- psql max group by just for some columns
- How to Code max(abs) in MATLAB
Related Questions in LABVIEW
- Laview PID.vi continues when event case is False
- Adding an event to an event structure
- Labview diagram creation API
- Is there a better way to create a 1D array with n number of elements in LabVIEW?
- Labview programming
- Syncing data logger iphone app start time with Labview start time
- How to compile VIs for different targets with compile flags in LabVIEW?
- Communicating between a PC and UR5 Universal Robotics Robot Arm using TCP/IP LabVIEW
- Data conversion in LABVIEW
- Rounding in LABVIEW
- speech to text conversion on Labview
- error MSB3073: :VCEnd" exited with code 2
- Labview matrix confusion
- Mindstorms EV3 - Find largest number in array
- Using LabVIEW for recording and playing sound (buffer size issue)
Related Questions in LEGO-MINDSTORMS
- Javascript for lego Mindstorms
- nxt-python error: usb.core.NoBackendError
- How to resolve nxt-python error "ImportError: No module named 'nxt'"
- How to fix nxt.motor.BlockedException?
- Mindstorms EV3 - Find largest number in array
- Get EV3's serial number from program
- lejos color sensor problems
- Maxscript, can any one explain this script to me (be very clear)
- (Java, BricxCC) Unable to create process bash
- LEGO NXT Brick using NBC
- Lego-EV3: How to fix EOFError when catching user-input via multiprocessing?
- Bluetooth-connection between Android and Lego Mindstorm NXT
- Bluetooth connection to LEGO Mindstorms EV3 brick from iOS app
- Lego Mindstorms - Nondescript compilation Failure
- Remove NFC Tag in Python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
That's a pretty simple task once you know how to do it:
Create a variable, name it something like
maximum. The value of the variable will be set to the value of the first index of the array.Now, in a loop, go over each element of the array. Within each repetition, check if the value from the element is higher than the variable
maximum. If it is, set the value ofmaximumto that of the index and save the index of the array (in another variable). If it's not, then just do nothing.I hope you can recreate this program by my description, if not, I can make a screenshot and edit this answer.