[Débutant] Detecter valeurs min et max

Bonjour,
j'ai quelques soucis pour ce sujet :
A partir de trois tableaux numérique, j'ai créer un tableau 2D.
Je souhaite détecté les valeurs min et max de chaque tableau, afin d'utiliser un graphe intensity, pour mettre a jour l'échelle automatiquement.
Pouvez vous m'aidez, s'il vous plait?
Merci d'avance.

Le graphe d'intensité n'est pas forcément idéal pour ce que vous voulez faire mais je ne connais pas d'autre type d'indicateur qui serait plus facile à utiliser. L'idéal serait d'avoir un "XYZ Graph" mais ça n'existe pas en natif dans LabVIEW.
Comme l'a dit SimonD le graphe d'intensité accepte un tableau 2D dans lequel chaque élément contient la valeur d'intensité du point dont le X et le Y sont les index de l'élément dans le tableau. Par exemple si on appele A notre tableau 2D, alors A[1,2] est l'intensité du point situé à X=1 et Y=2
L'idée serait de "découper", je dirais même "pixeliser" la zone géographique que doit couvrir votre graph en initialisant un tableau 2D dont la taille dépendra de la finesse des pixels dont vous avez besoin.
Ensuite, connaissant les min et max de lattitude et longitude, vous pourrez déduire pour chaque triplet (lat, long, prof) les index X et Y où aller placer la valeur de profondeur dans votre tableau 2D.
Il reste un dernier truc à régler : si votre tableau 2D a une taille de 100x100 éléments, les axes du graph seront gradués de 0 à 100. Pour obtenir une graduation exprimée en latitude et longitude vous pouvez utiliser les propriétés XScale.Offset et XScale.Multiplier
Bon, sachant un petit diagramme vaut mieux qu'un long discours, je vais essayer de poster un code d'exemple
Cordialement,
Yohann L.

Similar Messages

  • Utiliser deux variables pour valeur min et max d'un slider sur une interface

    Bonjour à tous,
    Je commence a programmer sous VBAI 2010, et je rencontre actuellement un soucis :
    Je souhaite utiliser un slider pour afficher deux resultats, ces deux resultats n'ont pas le meme interval et pour le moment je n'ai pas trouvé de reponse à ce probleme. En effet j'aurais donc besoin d'utiliser 2 variable pour valeur min et max du slider qui serait modifier en fonction du resultat a afficher.
    Je peux utiliser un ongler et ainsi mettre en place un slider sur chaque onglet mais cette technique serait en dernier recours...
    Avez vous une solution à mon probleme ?
    Merci d'avance.

    Bonjour Thony,
    Pour changer les propriétés d'un contrôle, vous aurez besoin de le faire sous LabVIEW Avec les nœuds de propriétés des contrôles. The built-in Custom UI Editor ne permet  pas de modifié par programmation les propriétés d'un contrôle. Pour ce faire, il faut créer l'interface utilisateur ainsi que les valeurs set/get  du contrôle. Sauvegardez l'interface utilisateur sur le disque, l'ouvris sous LabVIEW pour modifier le contrôle à l'aide de ses nœuds de propriétés. 
    Je vous souhaite une bonne journée, 
    Cordialement
    Sabri JATLAOUI

  • Comparer un tableau avec 2 valeur min et max

    Bonjour,
    J'ai quelque petit soucis sur Labview car je suis débutant et j'aimerais que vous m'aidiez svp!
    J'ai un tableau de valeurs croissante comprises entre 0 et 100. Dans ce tableau, j'aimerais selectionner que les valeurs comprises entre 10 et 50 et les mettre dans un tableau en gardant le même ordre croissant.
    Comment dois-je proceder??
    merci de m'aidez svp!
    Cordialement!
    Murat.

    Duplicate post !

  • About min and max fonction

    hello,
    i need to know the min and max for my signal but only on parts that i want to define by a trigger. The question is to know how i could(in my while loop) only analyse a aprt of my signal but not the whole one. i can't use a for loop because i need to see my signal all the time.
    thanks

    Guillaume Trager,
    For the triggering part of your application, there are several tutorials and example programs available to you at NI Developer Zone >> Development Library >> Measurement Hardware >> Analog Input/Output >> Analog Input >> Triggering.
    Once you have the proper triggering program, you can use the Waveform Min Max.vi or Waveform Peak detection.vi to analyze your peak data. The Trigger and Gate Express VI may also work as a software trigger.
    Good luck with your application.

  • Find more than one min and max in 2D array contain 0 rows

    Hi
    I have a 2D array and I would like to find the max and min elements between series of 0s. As you can see in the picture If I remove all 0s from the array and use the max and min function then I will have just one min and one max but I need to find min and max after every 0 rows so you can see from the picture ( just as an example) I will have 3 min and 3 max numbers. Would you please help me with this code. Do you now any algorithm that can find min and max between 0s?
    I have also attached my code to remove 0s and then search for max and min numbers but as I mentioned I need min and max for every part
    Many thanks
    Attachments:
    2.jpg ‏82 KB
    3.jpg ‏27 KB

    Thanks altenbach
    I have attached the vi to this post. I would really apperciate if you help me with this example. The min values should be 100, 1500 and 4000 and the max values should be 1200,2600,5400 so as u mentioned the output should be this 2D array 
    100,1200
    1500,2600
    4000,5400
    Attachments:
    new.vi ‏6 KB

  • After installing Version 5 I get an error message about incompatibility and min and max versions.

    I shutdown Zone Alarm, and deleted the contents of the file, which contained the "exe" file, then reinstalled Firefox version 5.0. I still get the XUL Runner error message about incompatibility of Version 5.0 with min and max 5.0.1. What next?

    The updater wasn't able to update all the files and some were left as older versions.<br />
    You need to do a clean reinstall.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • Strange error in mapping test: Structure with min!=max without mapping

    Hi,
    a very simple mapping: flatfile 2 Idoc.
    in mapping test I'm trying to test it. but I get always a strange error warning:
    11:25:12 Teststart Mapping-Objekt MM_XXXXX2WGSREQ is not completely designed. The execution is impossible.
    Structure with min!=max without mapping
    11:25:12 Testende
    What for a problem?
    Thanks for any hints!
    Regards
    Rene

    Hi Rene,
    Check the mapping of 1:n occurence and 0:n occurence nodes.
    you can find the node in yellow color in the map level.
    Regards,
    Harish

  • Matrox Mini with Max

    Is anyone having problems with a Matrox Mini with Max with OSX10.8.1. mine just does not work.

    I didn't sin, but you did by assuming things that are not true.
    1/ The project file is on the same drive as the export, BUT, the source files are on a different capture drive than the export to C.
    2/ I've been using the Matrox RTX100 with previous versions of Premiere for 7 years, and the two have worked very well together all that time, and still are working very well, and, will continue to I've no doubt. - Just because you couldn't get it to work, does not mean they don't.
    3/ The export I refer to did not have any connection to the Matrox box. All Premiere and Encore.
    4/ I didn't mention that I had done a lot of successful export tests of various definition formats, to other formats, and including a 1 hour Full HD export, no problems.
    So, - there - nyah !

  • Mapping Error : structure min!=max without mapping

    When trying to test my map, I am recieving the error:
    structure min!=max without mapping
    It seems to me that thsi would normally be caused by a particular field that has a minimum occurance of 1, and is not being populated.  However, I have double checked to make sure all of the fields that must be populated are in fact getting populated. 
    Are there any other causes for this error?

    I am obviously missing something, but having difficulty spotting it.  I assume I must be forgetting a field somewhere.  I am mapping to a Matmas05 IDoc.  The only fields / segments that XI requests be populated are:
    E1MARAM (segment, plus several fields)
         E1MAKTM (segment)
    F7 says the mapping is not sufficiently defined, so obviously I have left something out.  When the E1MARAM structure is open all fields inside it are green, however when I close it, it becomes red.  But there are not any red fields inside it.  How do I find the field that it is requesting be populated?

  • Structure with min!=max without mapping

    Hi,
    At Message Mapping - Test Tab, we have the following error:
    "Mapping object  incomplete. Unable to continue execution
    Structure with min!=max without mapping"
    We did added some custom segments to the standard idoc, but we already validate the xml structure and it seems valid.
    Do you guys know what it means?
    Thanks in advance,
    Luí

    Hi,
    If you don't map a mandatory target field, red bulb is shown in graphical mapping.Altough it saves "successfully", it fails while testing using the Test Tool and throws an error mapping incomplete Unable to continue execution. So try debugging for the unmapped target field .
    BR.Venkat

  • Formula for MIN and MAX per range required in BW

    Good day
    Please assist with the following? I need to create a formula (CKF) in BW Query which will give me the same result as the following formula in Excel.
    What I have is one Key Figure and want to calculate a Score on that key figure.
    Score =Key figure/(MAX(range of ie. column B1 to B50 which contains data for the same KF)-MIN(range of ie. column B50 which contains data for the same KF).
    In excel it's easy, ie" Score =TD completed/(MAX(B28:B130)-MIN(B28:B130)
    If more information is required to assist, please let me know?
    Always appreciated.
    Cornelius

    Thank U so much for responding so fast.
    I did the MIN and MAX formula, but it is only taking the MIN or MAX from the single cell of the applicable key figure and not from a 'range' of cells. This is a further example of what I want to do:
    Cell: B1 = 10
            B2 = 12
            B3 = 15
            B4 = 0
    I want to display the MIN as '0' and the MAX as '15' and then do the calculation per row.
    We are in 3.2x. I want to stay away from structures as I have not done that before.
    Any other assistance will be highly appreciated.
    Cornelius

  • Min to Max Search Web App

    Little Help.  Need to add a search function that will look for a minimum number up to a maximum number from a search form. Already looked up and found some info in bcguru but this only shows a date min and max. Couldn't locate anything else within BC help.  Any direction would be great.   

    Well you can do anything from developer's perspective but asking client to put same value twice can make you look unprofessional.
    Here's what I did for many house listing websites.
    1. Client puts price in pure number format ( e.g. 500000 )
    2. wrap the price value with a tag in List/Detail template e.g.   <span class="house-price">{tag_price}</span>
    3. then at the end of the page put a jQuery snippet which would globally format the prices ( e.g. $('.house-price').formatCurrency(); )
       Here's one I use
      https://code.google.com/p/jquery-formatcurrency/
       even if you're not familiar with jQuery it's pretty easy to follow
    No more complain from client

  • Highlighting Min and Max Values on each line

    Hello,
    Is it possible to highlight the Min and Max values on each row of a Query. For example I have sales below by product line for the last seven quarters. The user
    would like the Max value (150) for Product Line ABC Highlighted as Green and the Min value (1055) color coded as Red. Like wise for each line - DEF 200 as green and 100 as red and GHI - 400 as green and 100 as red.
    FYQ Q207 Q307 Q407 Q108 Q208 Q308 Q408
    ABC     1500     1200     1400     1050     1100     1100     1100
    DEF     1550     1000     1560     1220     1340     1640     2000
    GHI     1000     2000     3000     4000     3250     2220     3750
    Is this possible using Exceptions? or may be any other means? We are on Bex 7.0
    Best Regards,
    Sanjiv

    Hello Sanjiv,  
    I think it can be done by JavaScript, but needs more effort
    [Use of JavaScript Functions|http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a853bc623c075e10000000a114084/content.htm]
    Try the exception available in the BW[BW Stylesheets|http://help.sap.com/saphelp_nw04/helpdata/en/3f/ca453afbf37b54e10000000a11402f/content.htm]
    SAPBEXformats - Formatting cell (scaling factors)
    SAPBEXexcGood1 - Exception with priority good 1
    SAPBEXexcGood2 - Exception with priority good 2
    SAPBEXexcGood3 - Exception with priority good 3
    SAPBEXexcCritical4 - Exception with priority critical 4
    SAPBEXexcCritical5 - Exception with priority critical 5
    SAPBEXexcCritical6 - Exception with priority critical 6
    SAPBEXexcBad7 - Exception with priority bad 7
    SAPBEXexcBad8 - Exception with priority bad 8
    SAPBEXexcBad9 - Exception with priority bad 9
    See this thread,
    Change the colour of a cell text depending on the value Web Reports (NW04s)
    Thanks
    Chandran
    Edited by: Chandran Ganesan on Mar 19, 2008 4:27 PM

  • Global Change or filter based on Min and Max dates

    Hi Guys,
    Hopefully there is a genius out there that is an expert with filters and or global changes, I am after a solution and can’t work out if it is possible to do in P6.
    Based on a filter (using codes to select a group of activities) I want to write a value into two date UDF Fields can I:
    Run a global change to give the earliest and latest date in the group and write the result to all tasks in the group? or
    Is there a mindate maxdate option in Global change or filter? Or
    If these tasks were grouped in the activity view can a global change be written to fill down the dates that the summary level is displaying, which are essentially the min and max dates of the groups.  
    I could do this pretty easily in excel but I have over a 100 projects and doing the import one at a time is not feasible.
    I could create LOE’s but as my variables are constantly changing and due to the volume also not an option.
    Summary bars are not an option eithers as I am writing the UDF’s to get all the bars I want on one line, 
    An option for me might be to do it using Legare but I would prefer to see if I can get it done in P6 first.
    Cheers
    Rob

    Yes, you can do it in one report.
    I created a sample report from efashion:
    Year | Lines | Sales Revenue
    2001 | Accessories | $250
    2003 | Accessories | $550
    2001 | City Skirts | $1050
    2003 | City Skirts | $1150...........
    Create 2 variables 1) Count and 2) Difference:
    1) Count  as formula - =Count([Lines]) In Report
    2) Difference as formula - =Sum([Sales revenue]) Where (Max([Year]) In Report = [Year]) - Sum([Sales revenue]) Where (Min([Year]) In Report = [Year])
    You can replace the formula with your report variables. Then just drag Site ID, Count and Difference variables to your report.
    Thanks
    Jai

  • MIN and MAX datetimes ti find  range

    I am using Oracle 11g version
    create table re(Name char(20),Datetime char(45),val1 number);
    insert into re values('abc','10/29/2012 13:00','1.5')
    insert into re values('abc','10/29/2012 13:05','1.5')
    insert into re values('abc','10/29/2012 13:10','1.5')
    insert into re values('abc','10/29/2012 13:15','1.5')
    insert into re values('abc','10/29/2012 13:20','0.00')
    insert into re values('abc','10/29/2012 13:25','0.00')
    insert into re values('abc','10/29/2012 13:30','0.00')
    insert into re values('abc','10/29/2012 13:35','0.00')
    insert into re values('abc','10/29/2012 13:40','2.1')
    insert into re values('abc','10/29/2012 13:45','2.3')
    insert into re values('abc','10/29/2012 13:50','2.1')
    insert into re values('abc','10/29/2012 13:55','2.1')
    insert into re values('abc','10/29/2012 14:00','2.2')
    O/P:
    In this way data is stored in database.Needed output is, I want the datetime column data range with min and max values where val1>0 only.
    Expected result while we consider the above data is::
    Name mintime maxtime
    abc 10/19/2012 13:00 10/19/2012 13:15
    abc 10/29/2012 13:40 10/29/2012 14:00
    For this I tried something like this,
    select name, min(to_date(Datetime ,'mm/dd/yyyy hh24:mi')) start, max(to_date(Datetime ,'mm/dd/yyyy hh24:mi')) end from (
    select name, Datetime ,to_date(Datetime ,'mm/dd/yyyy hh24:mi') - rank() over (partition by loc_name order by t1 asc) Val_col from re where val1 > 0
    ) group by lname, Val_col
    but I am getting the output like this for above query.
    name start end
    abc 10/29/2012 13:00 10/29/2012 13:00
    abc 10/29/2012 13:05 10/29/2012 13:05
    so.on.
    Edited by: 913672 on Apr 3, 2013 3:07 AM

    913672 wrote:
    I am using Oracle 11g version
    create table re(Name char(20),Datetime char(45),val1 number);
    insert into re values('abc','10/29/2012 13:00','1.5')
    insert into re values('abc','10/29/2012 13:05','1.5')
    insert into re values('abc','10/29/2012 13:10','1.5')
    insert into re values('abc','10/29/2012 13:15','1.5')
    insert into re values('abc','10/29/2012 13:20','0.00')
    insert into re values('abc','10/29/2012 13:25','0.00')
    insert into re values('abc','10/29/2012 13:30','0.00')
    insert into re values('abc','10/29/2012 13:35','0.00')
    insert into re values('abc','10/29/2012 13:40','2.1')
    insert into re values('abc','10/29/2012 13:45','2.3')
    insert into re values('abc','10/29/2012 13:50','2.1')
    insert into re values('abc','10/29/2012 13:55','2.1')
    insert into re values('abc','10/29/2012 14:00','2.2')
    O/P:
    In this way data is stored in database.Needed output is, I want the datetime column data range with min and max values where val1>0 only.
    Expected result while we consider the above data is::
    Name mintime maxtime
    abc 10/19/2012 13:00 10/19/2012 13:15
    abc 10/29/2012 13:40 10/29/2012 14:00
    For this I tried something like this,
    select name, min(to_date(Datetime ,'mm/dd/yyyy hh24:mi')) start, max(to_date(Datetime ,'mm/dd/yyyy hh24:mi')) end from (
    select name, Datetime ,to_date(Datetime ,'mm/dd/yyyy hh24:mi') - rank() over (partition by loc_name order by t1 asc) Val_col from re where val1 > 0
    ) group by lname, Val_col
    but I am getting the output like this for above query.
    name start end
    abc 10/29/2012 13:00 10/29/2012 13:00
    abc 10/29/2012 13:05 10/29/2012 13:05
    so.on.Firstly and most importantly do NOT store dates as char columns: that's what the DATE type is for.
    Secondly, i'm not sure how you get your output from the input, particularly as your SQL contains 'partition by loc_name' which
    doesn't even exist in your example table.
    Why has the same name got two rows with those min/max times. Are you partitioning by val1?

Maybe you are looking for

  • Mac book pro ideel when startup will not start

    will not start ideel in startup

  • [SOLVED] KDE konsole display looks broken after upgrading.

    Hi, I just upgraded konsole (:: Replace kdebase-konsole with extra/konsole? [Y/n] ) so it's konsole 2.14.2 -> 3.0.1, and there is many display problems. For example, fonts are not monospaced, the cursor is not aligned with the text, when I execute "l

  • OSB execution tracing memory leak.

    First of all I did not found a section for Oracle Service Bus so I posted here as part of SOA suite. The problem i have is that when i enable Execution tracing for a proxy the memory keeps going up and is not garbage collected. I analized the heap du

  • Upload file in web form - ora-105101

    I want to upload files in a web form. I downloaded fileupload utility, but I can't make it work. I can launch the form, open the dialog box, choose a file, then the progress bar appear and a ora-105101 is raised in the custom_item_event trigger. When

  • Corner pin is all messed up

    In CS3, corner pin isn't working right. If I use the Adobe corner pin, the video corners don't follow the cross-hairs at all. I can put the 4 corner pins just where I want them, but the video itself isn't anywhere close to where it's supposed to be.