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

Similar Messages

  • [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.

  • 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 !

  • Bonjour  Je viens d'utiliser Flash CC pour animer des bannières pour Google. Hors je constate que je ne peux publier ou exporter que vers Flash 10.3 minimum. Hors Google, demande une version flash 10.1 maxi.   Comment puis-je enregistrer en 10.1, SVP ?  C

    Bonjour
    Je viens d'utiliser Flash CC pour animer des bannières pour Google. Hors je constate que je ne peux publier ou exporter que vers Flash 10.3 minimum. Hors Google, demande une version flash 10.1 maxi.
    Comment puis-je enregistrer en 10.1, SVP ?
    Cordialement

    Je vais défaillir. J'en ai tellement besoin de cette option...
    S'il vous plait : I NEED HELP!

  • Difference of value of a dimension based on min and max

    Database: Oracle 10g
    BO-BOXIr3
    Let me explain the exact problem again.
    As per the below code, I have the data in this format in my table:
    Code:
    Date              Site ID     KWH
    1/2/2009 00:00     IN-1     22
    1/2/2009 01:00     IN-1     28
    1/3/2009 03:00     IN-2     25
    1/3/2009 04:00     IN-2     46
    1/4/2009 00:00     IN-3     28
    1/4/2009 10:00     IN-3     34
    1/5/2009 08:00     IN-4     31
    1/5/2009 09:00     IN-4     55
    1/5/2009 11:00     IN-4     77
    1/6/2009 00:00     IN-5     34
    Now want to build a report with following columns:
    Site     Count     KWH
    IN-1     2     6 (ex.-28-22)
    IN-2     2     21
    IN-3     2     6
    IN-4     3     46 (ex.-77-31)
    IN-5     2     34
    SITE- distinct site name.
    COUNT-count is number of repetitions of site id between min and max date.
    KWH -(Delta between the min and max date)
    To get the above result I have created 3 report from different queries since not able to get these al in a single report viz Count, Max Value and Min value. Well I have all these 3 reports or table on a single page.
    Count-this report will give the count between the dates
    Max Value-this report will give me the values of kwh for max dates for each site id
    Min Value-this report will give me the values of kwh for min dates for each site id
    Now want to create a single report based on these 3 reports which contains the column
    Site|Count|KWH
    IS IT POSSIBLE?
    Or
    Is it possible to build such report in a single one with all the required column which I mentioned?
    The variables which I created to get the max & min dates,
    Mx_dt= =Max([Query 2].[Hourly]) In ([Query 2].[SITE_ID])
    Mn_dt= =Min([Query 3 (12)].[Hourly]) In ([Query 3 (12)].[SITE_ID])
    For filtering on report used following variables:
    if_st_mn=If([mn_dt])=[Hourly] Then "ok" Else "no"
    if_st_mx =If([mx_dt])=[Hourly] Then "ok" Else "no"
    will filter on "ok" to get the max and min date values.
    rest of the variable in the snap are not usable.

    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

  • 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

  • QoS - Min and Max Thresholds

    Hello Everyone,
    I'm studying QoS and I'm wondering how does a Cisco Engineer find out what the best Minimum and Maximum Threshold rates are when using WRED?
    Where would one find these values?
    I'm under the impression that it requires a study that's based on the size of the queues, is that correct?
    But then, I come to the conclusion that even if the queues are big enough, application critical data like (VOIP) would suffer from delay..
    So, how do you calculate the min and max threshold values..
    Thanks ahead of time..
    PR

    Disclaimer
    The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.
    Liability Disclaimer
    In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.
    Posting
    Setting WRED parameters, for optimal performance, is (IMO) very tedious.  Lots of variables involved.
    For starters, it shouldn't normally be applied to traffic that's not rate-adaptive, such as VoIP.
    It works best for multiple large bulk data transfer TCP streams that are using dropped packets for their principle flow control.  Then it can be optimized to maximize their "goodput".
    To answer your question, you might study RED literature, and its many variants, found on the Internet.
    You also want to study, if you're not already very familiar, with how adaptive flow rate protocols, such as TCP, behave when packets are dropped.  (With TCP also be mindful of the different "flavors", i.e. Tahoe, Reno, New-Reno, etc.)
    If you have specific questions, post again to this thread, and I might be able to help.

  • Find min and max from a bunch of numbers

    hi,
    i have a bunch of numbers, and i need to find the min and max.
    so i have a arraylist which contains objects....whats the best way to find the min number and max number of all these objects?
    thanks

    You're close, but you can do them all at the same time without temp variables..
    double maximumX = 0;
    double minimumX = 0;
    double maximumY = 0;
    double minimumY = 0;
    for (int i = 0; i < myobjects.size(); i++) {
         mything d2d = (mything) myobjects.get(i);
         maximumX = Math.max(d2d.getBounds().getMaxX(), maximumX);
         minimumX= Math.min(d2d.getBounds().getMinX(), minimumX);
         maximumY = Math.max(d2d.getBounds().getMaxY(), maximumY);
         minimumY = Math.min(d2d.getBounds().getMinY(), minimumY);
    }Since you are dealing with rectangles, you could add them all to an Area and get the bounds of the Area, but that's probably slower.

  • Bonsoir,  J'ai moi aussi un problème pour me connecter à l'Icloud car mon identifiant est une adresse mail qui n'est plus utilisable

    Bonsoir,
    J'ai moi aussi un problème pour me connecter à l'Icloud sur mon Iphone car mon identifiant est une adresse mail qui n'est plus utilisable & je ne me souviens absolument pas du mot de passe.. De ce fait, je ne peux supprimer mon compte Icloud. Par contre, mon identifiant Itunes quant à lui, se base sur une adresse mail tout à fait correcte!
    Que puis-je faire?
    Merci d'avance!

    essaie de faire un simple reset. Tiens le bouton home et le bouton on/off ensemble jusqu'à ce que la pomme apparaisse sur l'écran. Relâche les deux boutons et laisse le iphone repartir

  • Min and MAx Value in a SELECT Statement

    Hi,
    I have a scenario where I am Selecting the values BETWEEN MIN and MAX values:
    SELECT * FROM ABC WHERE CODE BETWEEN MIN(CODE) AND MAX(CODE)
    ITS GETTING Error as:ORA-00934: group function is not allowed here
    Any help will be needful for me.

    select substr(no,1,3)||to_char(substr(no,4,1)+1) "first missing number"
    from
    with t as
    (select 'ABC1' no from dual
    union select 'ABC2' from dual
    union select 'ABC3' from dual
    union select 'ABC5' from dual
    union select 'ABC6' from dual
    union select 'ABC8' from dual
    select no, lead(no,1,0) over (order by no) next_no from t
    where substr(next_no,4,1) - substr(no,4,1) > 1
    and rownum = 1;

  • 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 !

  • Performance Issue using min() and max() in one SQL statement

    I have a simple query that selects min() and max() from one column in a table in one sql statment.
    The table has about 9 Million rows and the selected column has a non unique index. The query takes 10 secs. When i select min() and max() in separate statements, each takes only 10 msecs:
    This statement takes 10 secs:
    select min(date_key) , max(date_key)
    from CAPS_KPIC_BG_Fact_0_A
    where date_key != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD'))
    This statement takes 10 msecs:
    select min(date_key)
    from MYTABLE
    where date_key != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD'))
    union all
    select max(date_key) from MYTABLE
    Because the first statement is part of an autmatic generated SQL of an application, i can't change it and i have to optimize the data model. How can i speed up the first statement?

    I've ran similar query on a table that has 10 milliion rows, with an index on the date column
    This is what I have found:
    SQL> set timing on
      1  SELECT MIN(ID_DATE) MIN_DATE, MAX(ID_DATE) MAX_DATE
      2      FROM MY_DATE
      3*     WHERE ID_DATE != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD'))
    SQL> /
    MIN_DATE  MAX_DATE
    03-APR-76 06-JAN-02
    real: 43383
    SQL> SELECT MIN(ID_DATE) MIN_DATE FROM MY_DATE
      2   WHERE ID_DATE != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD'))
      3  UNION ALL
      4  SELECT MAX(ID_DATE) MAX_DATE FROM MY_DATE
      5   WHERE ID_DATE != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD'))
      6  /
    MIN_DATE
    03-APR-76
    06-JAN-02
    real: 20
    SQL> SELECT MIN_DATE, MAX_DATE FROM
      2  (SELECT MAX(ID_DATE) MAX_DATE FROM MY_DATE
      3  WHERE ID_DATE != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD')) ) A,
      4  (SELECT MIN(ID_DATE) MIN_DATE FROM MY_DATE
      5  WHERE ID_DATE != TO_DATE(('1900-1-1' ),( 'YYYY-MM-DD')) ) B
      6  /
    MIN_DATE  MAX_DATE
    03-APR-76 06-JAN-02
    real: 10
    SQL> My conculsion, there is nothing you can do to the tables that will improve that particular statement.
    Why can't you modify the application?

Maybe you are looking for

  • Drag Drop List to List

    I have a source list and a destination list. I want to submit the contents of the destination list via my sendformdata function along with the other formitems. Here are my source/dest lists. <mx:VBox dropShadowEnabled="true"> <mx:Label text="Availabl

  • Mencoder H.264 20 times faster than Compressor 2

    I tested mencoder with compressor running with 5 G5s. the H.264 implementation of mencoder was four times faster than the 5 dual core quads clustered with compressor two and queermaster . my single computer alone with just a dual 2 ghz processor enco

  • Getting 500 - Internal Server Error Intermittently  durin WS calls

    We are Oracle partners and built an integration using COD Integration Events and Web Services. We currently make calls to following Crm On Demand web services: 1) Account - Query 2) Opportunity - Query & Update 3) Revenue - Query & Update 4) Product

  • No RE: in Apple Mail?

    Hello guys! I don't know if this question fits in this thread. But my question is pretty simple. Is there are a way, in Apple Mail, to make it so that there is no "re:" when you reply to an email thread? I ask this, because when using gmail, if you k

  • How to read data and load into a table

    Hi, I have a client requirement as below. Client will send the xmlpayload, based on this xml I want to read the data and store it into a database table. Could you please let me know how to achieve this functionality. sample xmlpayload: <gesws:localeA