Comparison between two inputs

Hello

I am a beginner absolut for LabView and I learned LV tutorials, but I have a question and need your help.

I have two digital inputs and one digital output and I want to output for example as many entries. What I need is how to compare two entry and decide for one of them.

When I use a comparison operator as equal or smaller, I get a Boolean result but not a numeric. How can I use this to get for example the bigger or smaller?

Thank you

Oliver

For example, you can use your superior decide who is actually higher then select this one through a structure of matter or a Select who will send you one to forward more great.

That functionality is already attached to the Min/Max function, check it out.

/Y

Tags: NI Software

Similar Questions

  • Comparison between two tables

    Hello

    I have two tables USERS and LISTS:

    And I want that there is a comparison between these two tables executed when user table USERS connect to the application.

    They must compare the columns between the SEXES and AGE and if some users have the same attributes in its ranks as in a line in the table LISTS (here is unique each line) so that the user gets in his line in the column 'LIST_ID' the ID of the line with which attributes between GENDER and AGE.

    Example:

    USERS TABLE: exampleuser | Boby | McGrahem | Male | 18. -------

    LISTS OF TABLE: 28 | examplelist | Male | 18

    Once the Login of the user Boby gets in its ranks the ID = 28 because the SEX and AGE corresponds to the row of table LIST:

    Result:

    USERS TABLE: exampleuser | Boby | McGrahem | Male | 18. 28

    
    CREATE TABLE  "USERS" 
       (    "USERNAME" VARCHAR2(15) NOT NULL ENABLE, 
            "FORRNAME" VARCHAR2(15) NOT NULL ENABLE,                  
            "SURNAME" VARCHAR2(15) NOT NULL ENABLE, 
            "GENDER" VARCHAR2(10) NOT NULL ENABLE,   
            "AGE" NUMBER, 
            "LIST_ID" NUMBER, 
             CONSTRAINT " USERS_PK" PRIMARY KEY ("USERNAME")
      USING INDEX  ENABLE
    
    

    CREATE TABLE  "LISTS" 
       (    " LIST_ID" NUMBER NOT NULL ENABLE, 
            " LISTNAME" VARCHAR2(50) NOT NULL ENABLE, 
            "GENDER" VARCHAR2(10) NOT NULL ENABLE, 
            "AGE" VARCHAR2(3) NOT NULL ENABLE,  
             CONSTRAINT " LISTS_PK" PRIMARY KEY ("LIST_ID")
      USING INDEX  ENABLE
       
    

    I need help for coding this, if someone be so good.

    This is my essay:


    DECLARE  
        v_listid varchar2(100);   
        BEGIN  
          
        SELECT  LIST_ID into v_listgid
         FROM LISTS
         WHERE GENDER = (SELECT GENDER
                              FROM USERS 
                            WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER)))
         AND AGE = (SELECT AGE
                              FROM USERS  
                            WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER)));
    
         UPDATE USERS   
        SET LIST_ID =  v_listid   WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER));  
      
        END;
    

    I'd like to REALLY shy away using the USER name as the primary key, because the fact that users can create duplicate user names... YOU should NEVER base a PK on the entry of user, the better to let the database create and maintain this element of date...

    FIX:

    UPDATE to users U

    SET List_Id = (SELECT List_Id OF lists L WHERE L.Gender = U.Gender and L.SOMENUMBER = U.SOMENUMBER) AND

    Upper (U.UserName) = UPPER(:APP_USER);

    Don't really want to cut the strings, Oracle which will do since they are of type varchar2 columns...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Is it possible to route signals of relaxation between two chassis PXI-1002 with the PXI-8335?

    Hello

    as the subject says, I am interested in the delivery of a signal to trigger between two chassis PXI-1002. At present, these two chassis are connected by a MXI - 3 system using maps PXI-8335. The software is Labview 2010 sp1 and 380 NIScope drivers.

    We want to keep (a PXI-5122 by chassis) scanners supply separated due to the requirements of our measure! The chassis are connected via cable to fiber optic. This explains why I can not just use the shutter release in Star, or connect via 'Trigger' or 'clk' cards (the inputs / outputs to the front of the cards).

    I found a few examples, but they seem to all be designed for use with a chassis only, I'll call later to the examples that inspired me to this point. Each guide explaining the synchronization of several chassis systems seems to use another material or VI is not accesible to me. This makes me wonder if my hardware has the capacibilities I need.

    The first picture shows approximately where I started from (sorry I can't post VI, confidential...):

    Only the middle part is interesting. Two sessions are initialized and manipulated parallel, trigger too. This has led to delays in the signals and should now be fixed. This apart from the VI works fine.

    Goal is to trigger only on one channel but both devices! If possible, the device will trigger must be chooseable.

    I started to rebuild the VI using the "EX Synchronization.vi 5xxx niScope' seeming spontaneity. The result is shown in the following image:

    I tried different RTSI lines, but had no positive results. only the main channel has triggered.

    After this first approach, I looked in the "niScope EX .vi multi-Device configured Acquisition (TClk)" and other examples of TClk which seem to work for similar problems. The VI of reconstruction can be seen in the following images:

    (Sorry, I had to use two photos..)

    In this case, I didn't have no choice for trigger lines, it would automatically set the VI TClk. I tried to trigger on both devices, though. This second approach seemed promising to me, but it was an error:

    "niTClk Synchronize.vi:1".

    Index (starting at zero) of the session: 1

    The error reported by the pilot of the instrument:

    No registered trigger could be found between the
    devices on the route.

    If you have a PXI chassis, the chassis correctly identify in
    MAX and make sure that it has been configured correctly. If you use PCI
    devices, make sure they are connected with a RTSI cable and that the cable RTSI
    is saved to the MAX. Otherwise, make sure that there is an available trigger line
    the trigger bus shared between devices.

    Source device: PXI1Slot4

    Target unit: PXI2Slot4

    Status code:-89125niTClk Synchronize.vi:1

    Index (starting at zero) of the session: 1

    The error reported by the pilot of the instrument:

    No registered trigger could be found between the
    devices on the route.

    If you have a PXI chassis, the chassis correctly identify in
    MAX and make sure that it has been configured correctly. If you use PCI
    devices, make sure they are connected with a RTSI cable and that the cable RTSI
    is saved to the MAX. Otherwise, make sure that there is an available trigger line
    the trigger bus shared between devices.

    Source device: PXI1Slot4

    Target unit: PXI2Slot4

    "Status code:-89125"

    This error came back even after I've identified this drug as possible to the MAX, as shown in the screenshot:

    In some of the textbooks, they showed how to get the MAX trigger lines, but as you can see, there is only booking options in my MAX. Whatever I do, I can't find options to define how to get my trigger signals...

    In principle, it is possible to trigger instruments in different chassis, which is indicated in this Guide and others... the question that remains is can it be done with my set of components?

    I understand that the use of multichassis compromised the integrity of the lines very adjusted as trigger in Star etc., so the configuration should be taken into account in some way, that my approach does not, I knew... But there must be a way to do this? And to start: to get just any signal from one device to the other trigger!

    For any advice on this issue, I would be very thanfull!

    Concerning

    Max1744

    Hi Max,.

    Thanks for the detailed post and explanations of your application and requirements. You're right using TClk, because this is the optimal method to synchronize the 5122 digitizers. The original VI you worked with is unique for some of the legacy scanners and does not directly work with scanners based on the most recent CMS (for example the 5122). The good news is that you can synchronize these cards to separate chassis, but it will use the calendar 66xx and synchronization (T & S) cards in the chassis of the master and the slave, as indicated in the guide that you have accessed. These are needed because a common reference clock must be shared between them as well as a couple of tripping. MXI itself can not handle export triggers and clocks, so there is no way to do this without physically wiring between the chassis with cards T & S. Unfortunately, regardless of what specific method, you use for synchronization, it will take a material extra beyond what you currently have.

    As one of your needs looks like it is necessary to retain wiring between the chassis directly, you may need to consider to synchronize using 1588 or GPS protocols. 1588 Protocol is a system for synchronization on the network while GPS course use antennas and locks for a common wireless signal. Although these synchronization methods may allow you to keep your chassis isolated, they will also require some manual configuration because you would be able to use the TClk synchronization and so the level of synchronization you can get between the cards may not be as good that can physically wire signals between the chassis using T & S cards.

    Hope this helps,

  • How to find the time between two channels of entry in the data acquisition card or pci 6036

    Hello

    I read a lot-related posts on the simultaneous measurement of two input voltage of similar channels in map data acquisition. I know that the best material is "simultaneous measurments of the Series DAQ cards" but I only pci data acquisition card 6036 and I try to understand what is the time between the reading of the two channels . This period is always constant? (must it rely on a voltage (amplitude, frequency, waveform..). I send the sine wave (s) to the two channels and read the values of V, if they read the same value, the difference should always be zero but I get-0,002 to 0.002 Volt difference (I must find a way to convert it in time). A screenshot of my VI is attached. I wonder how I can accurately measure the time delay between the channel.

    I am open to any suggestion, my final goal to read exactly two channels at the same time ((ou connaître le délai exact donc je peux correspondre les données correspondantes étant donné le temps de retard))

    Hi spinup,

    better you should post your question in the forum of LabVIEW, LabWindows/CVI is used

    Good luck.

  • Synchronization of two inputs frequency meter with several analog inputs

    Hi all

    I'm relatively new to LabVIEW and I'm trying to collect data from multiple sources with calendar sync on the acquisition, but I can't understand. My problem is that I have two inputs frequency meter, an optical tachometer reading one pulse per revolution and a max flow meter machines with a 12000 k coefficient. I can't find a way to synchronize the calendar with my multiple analog inputs. I tried to first get the speedometer to synchronize with the analog inputs following the example linked here. (https://decibel.ni.com/content/docs/DOC-10785) So far every time I run it I get an error on the DAQmx read timeout or an error "several sample clock pulses have been detected" (see image).  It seems if I slow the way to down to say 10 hz and make sampling rate ensure that the tachometer signal is more than 800-1000 rpm (13-17 Hz) before starting the VI then the program will run without error until the ROTATION speed is below this threshold, then the "sample Multiple clock pulses" error occurs.  The code is attached below.

    Does anyone know of a better way to synchronize the entries of frequency of the counter with analog inputs?  I would like to have a VI that can display 0 RPM (and possibly 0 flow as well, but I think I need to understand the timing of a meter before I have add another, because it seems that I can't have two counters to the same task). Any help on this would be greatly appreciated.

    LabVIEW version 13.0

    Chassis cDAQ-9178 with NI 9401 for both counter inputs and NI 9205 for the analog inputs.

    Thank you!

    Richard

    I know the error requires to restart the task at least (this particular error puts the material in a State that cannot be recovered from during execution of the task - I've been down this road before) but I'm surprised that you would have to delete and re-create the task altogether.  And then I had to do this to workaround other questions in the past.  It is awkward and should be considered a bug, if this is indeed the behavior.

    Honestly, regardless of this bug, the way the material dealing with the situation of several sample clock edges makes measures of sampling frequency clocked essentially unusable for purposes of synchronization (in my opinion anyway) If you encounter a more slow than your sample clock rate.  You are supposed to be "synchronization" of the measure, but it really no longer applies if you have to restart the task over and over again (if you must delete it or not).

    Workarounds can get kind of creation (which isn't really a good thing).  For example, you can configure a measure of implicit frequency to keep a buffer of frequencies and use a leader board task (source is the frequency signal, sample clock is the sample clock HAVE) to establish a correlation between the index of your buffer of frequency for singing HAVE sample clock.

    Best regards

  • Measure the time between two digital pulse

    Hello

    For a non-critical calendar application, I need to measure the time interval between consecutive TTL pulses, ranging from the order of 0.5 s for a few seconds, with a low accuracy of +/-10-50ms. The interval being measured varies between the rising edge of the first pulse and the front of the next and so on.

    I have several input lines I need to deal with. Because it's a critical machination low cost, I don't want to use digital counters for each line, so I work with an acquisition of data USB6008 and have connected the input rows TTL on the digital inputs of the device. Avoiding will be sufficient.

    I found a good example of VI on discussion forums that does almost the same thing, only it uses instead of the DAQ Assistant user input. The VI works including the time the program going on in a while loop. I replaced with the DAQ Assistant output (a channel) user input in the hope that it is still work.

    When I run the program in "run once" mode, it seems to work perfectly. However, in "continuous run" it measures only a very small interval, probably just the time between two samples.  I think it has something to do with the help of a while loop in combination with the DAQ Assistant. Anyone who has any suggestions how to solve this problem?

    Thank you!

    OK... first of all, you should never use the button "run continuously.  I wish that NEITHER would be to eliminate it, but told me that it is sometimes useful for debugging.  If you want your program to run over and over again, use a while loop with a stop"" button.

    If I'm reading your code correctly, you make your initial moment, and then collect data from data acquisition.  When one of the channels is "T", you stop your loop and the end time of capture.  (By the way, why you convert your table to a cluster?  Why not just index the appropriate channel in the table directly?)

    Since you want to capture the time between two consecutive pulses, you need to know when a transition has occurred... i. e when your digital line went from F (no pulse) to T (pulse start).  This will give you your forehead.  Right now, all you're doing is looking for a value T - so you have no way of knowing if you are looking for to the previous impulse again, or a new impetus.  You also burn 100% of your processor with the way you have your programme in place.

    You need a small loop delay so that your VI is not 100% of your hogs CPU time.  Given that you can live with an accuracy of 50msec, what I suggest that you use.

    See attached picture for you give an idea of how to implement.  He will probably need some refining operations, but it should point you in the right direction.

    I hope this helps.

  • How to switch between two keyboards (Japanese keyboards have the double function of "direct entry"

    I have a laptop with keys 'English' and 'Japanese' on the same key board.  For example "A" key is also 'CHI' in Japanese, 'B' is also "KO" in Japanese.  How to switch between the two.  It changes itself.  This seems to happen after the mail in Hotmail changed in Outlook.

    Thank you

    Tomoko

    Hello

    Please go to the Microsoft Community Forums.

    From the description of the question, we understand that you want to switch between two keyboards entries.

    Let me go ahead and help you with the issue.

    Here are some steps you can follow to resolve the problem:

    Step 1:

    To change the default language, follow these steps:

    a. Click Start and then click Control Panel.
    b. double-click regional and Language Options.
    c. click on the languages tab, click details and then click Add.
    d. under input language, add the language that you want to use.
    e. under Configuration keyboard/IME, click the keyboard layout that you want, and then click OK.
    Note: Only users who have permissions on the local computer can configure the following options on the languages tab in the regional and Language Options.

    Step 2:

    To resolve this problem, change the hot key settings in your computer system. To do this, follow these steps:

    a. right click on the language bar and then click settings.
    b. in the Text Services and input languages window, click the Advanced Settings button select an action and then click Change Key Sequence.
    c. set keys and then save the settings.

    Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you further.

  • How to send and receive text messages between two simulators?

    I launched the first Simulator by inputing D:\Program Files\Eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16 «»
    ents\simulator > 8300.bat/sms-source-port = 5000/sms-destination-port = 5001 "cmd

    tnen second Simulator by inputing E:\simulator>8300.bat/sms-source-port = 5001/sms-destination-port = 5000 in cmd

    but I can't not Simulator send and receive sms

    I assume that you have followed all of these steps?

    How - send SMS text messages between two BlackBerry Smartphone simulators

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To _...

    Can you elaborate on what does not work?  You see errors?  When missing to?

  • How to remove spaces between two separators

    Hi all

    How to remove the spaces between two separators, but space is required between the characters.

    I have an input as string below

    "# ABC DEF GHI # JKLMN.

    Expected string as below. Here the space between DEF GHI is required, but other spaces must remove.

    "ABC #DEF #JKLMN GHI".

    I tried with REPLACE it but it removes all spaces and this is a mistake.

    REPLACE ('ABC # DEF GHI # JKLMN', ' ')

    Please guide me. Thank you.

    For example, if the hash/pound symbol may not have a space before and after, then you need to change the regular expression to use ' * ' instead of ' + '...

    SQL > ed
    A written file afiedt.buf

    1 Select trim (regexp_replace ('ABC # DEF GHI #JKLMN',' (* # *) ',' #'))
    2 * of the double
    SQL > /.

    (REGEXP_REPLA TRIM
    -----------------
    ABC #DEF #JKLMN GHI

    Always be clear in your requirements.

    Re: 2. How can I ask a question in the forums?

  • difference between two timestamps

    Hi gurus,

    I have a procedure which has 2 input parameters of type timestamp. I need to find the difference between these two stamps and be converted to a timestamp and return. Help, please

    Diifernce between two timestamps is interval. You can not convert the difference between two timestamp timestamp and it makes no sense. What you expect:

    25/06/2014 11:25:37.524000 - 13:07:22.987654 20/06/2014

    SY.

  • Number of occurrences of a day between two dates

    Hello

    I have a requirement in my code to count the number of times per day occurs between two dates. So, for example if

    start date = January 1, 2014

    end date = March 31, 2014

    The number of times that happens day 1 is three times. That's why I want the result to be 3. My three input parameters are the number of the day, start and end dates. I know that this can be done by parsing through the days and incrementing a counter of sorts, but can it be done without any loop etc?

    Looking for options of

    Thank you

    Birdy

    SELECT COUNT (TO_CHAR (DAYS, 'DD')) IN)

    SELECT DAYS START_DATE + LEVEL 1

    FROM T1

    CONNECT BY LEVEL<=>

    WHERE TO_CHAR (DAYS, 'DD') ='&01';

    Post edited by: Parth272025

  • How the control number of the minorticks between two tick marks of the axis?

    Hi guys,.

    I want to draw a number of minor ticks between two graduations of the vertical axis of the column chart based on user input.

    ex: If user provides 2 there are two minor ticks between two tick marks on the axis.

    Thanks in advance.

    From what I can tell with sleeping with her, minorInterval value divides the vertical County to get the appropriate number of ticks between each interval.

    
    
    

    In the example above, I have the interval to 10 and when I put the minorInterval at 2, then I get 5 ticks.  The first tick is the interval and then followed by 4 more ticks.

    In your example, in order for me to see 2 ticks between intervals, then, I must assign the minorInterval 3.5 .

    10 / 3.5 = 3 (2 ticks)

    The forumla should be something like:

    ViewableTicks = interval / (selected ticks + 1);

    So, if I created a drop down list with 1-9 ticks (because 0 does not work if you are showing minor ticks), then when the option is changed, I calculate the value for minor ticks and set the component LinearAxis (countAxis) this new value.

    protected function tickViewList_changeHandler(event:IndexChangeEvent):void
    {
     var tickCount:int = tickViewList.selectedItem;
     var tickView:Number = countAxis.interval / (tickCount + 1);
     countAxis.minorInterval = tickView;
    }
    

    I created a blog post showing my example.

    Post edited by: DeanLoganBH - add link post blog with photos of example

  • Comparison between instances report

    Pls help on how to generate the comparison report between instances. We are on 11.5.10 and I observed that the comparison report takes input which is part of the same instance. In 11.5.10, is it possible to compare source and target instance configuration data.

    Thank you
    Shilpa

    Hi Shilpa,

    No, not at all. It does not matter whence came the extract. Primary/secondary Data Source LOV would show all extracts regardless of the instance.

    I hope that your question is all about when you have no mapping between the source and target, how to compare configurations? Yes, it is possible.

    Download extract the target instance and upload it to the source instance. Now, you can find the excerpt in the primary/secondary data Source LOV.

  • ADF BC: Choose between two identical DB schemas on the application startup

    Hello
    We want to provide users the ability to choose between two identical db schemas.
    Anu idea how?

    Cvele wrote:

    -No, my idea is to just drop-down list (selectOneChoice) with available data sources

    Then it would be quite similar to my example, except that in the JSP page you have an input field, but the drop down menu. The underlying values of the different choices in the drop-down list would be different JDBC data source names (or alternately a string that your middle-tier code would then become so JDBC data source names you don't want the JDBC data source names to appear in the 'View Source' in your HTML page) for example).

    -Aaa, I think I understand now, correct me if this evil: in the app, my data controls is currently configured to use an App module even Configuration with data source connection.

    However, at the level application server, at deployment time, I have to define two distinct dataSources and map to point to the my two diagrams separate db, correct?

    Fix.

    And on the login page, I fall to the bottom of the list with two options, one for each db schema. True values for options is a names of data source that is set to the name of the application server.

    Or with a level of abstraction as I mentioned above, if you don't want to "View Source" in your HTML page to contain the JNDI names themselves. The list can contain logical names such as the 'db1' and 'db2' which, inside your classes of dynamic authentication information, you could turn the 'db1' string in some "jdbc/DatasourceNameForDB1" and similarly to turn the 'db2' string in the datasource JNDI name.

  • sharing between two apple ID

    How can I share contacts and calendars between two Apple ID?  Also my wife and share our music iTunes between our IDs?

    See the following topics:

    http://www.Apple.com/icloud/family-sharing/

    Family shares - Apple Support

    Implement the family sharing - Apple Support

Maybe you are looking for

  • WebGL doesn't work do not

    I noticed recently that WebGL does more for me in Firefox, even though she has worked in the past. I am currently in Firefox 14.0a1 nightly on Window 7 64-bit (although I also tried in FF11). When I opened up on: supports, he says 'Blocked for your g

  • HP Pavilion 500-326na: Fix fan GPU Desktop?

    After doing some research and trying to find what was wrong with my desktop computer and why he was doing this noise, I used AMD Catayst Control Center and a program called SpeedFan and when I lowered the speed of the GPU fan is quiet and stopped mak

  • the voicemail icon won't go away...

    I tried to reboot, battery pull, reset the phone to default, swear and denigrate and nothing seems to work, someone else has this problem?

  • Help: DV4-2160us, error at startup

    error message starting / / / noncompliance of invalid information programmed into the System Board following product information is missing or invalid Help, please

  • do not do Windows Update

    I use windows 7 and since July of this year my windows are not getting updated. tried manual and automatic update, no work please advise. Thanks & regards, Francis Santos