Counter problem

Hello

I'm doing a counter, where I compare the acquisition of data values to a predefined value. My problem is how I put it up right now the counter continues counting without interruption until the values are not the same. I want to be there only once for each time that the values are the same, no matter how long the equality of values changed.

Any ideas?

First of all, I recommend you work through the tutoriasl online to help you get started with LabVIEW. This will save you a lot of time and starting with the mistakes.

The image you posted shows two of them. This code will be executed only once and then quit. You don't have anything to compare. It suggests that you can use the button run continuously.  For various reasons, this is not a good practice.  Place some time a loop around your code and add a stop button to the Panel before you stop your program and the loop.

The other is the use of a local variable.  In LabVIEW, the wires are "variables" and the controls and indicators are the only places for the user to access the data. The local variable is related to the indicator and is not a medium for data.

Lynn

Tags: NI Software

Similar Questions

  • A counting problem

    Hi, I was wondering if anyone can help me with the following County problem, I have the following query that takes hold of test_code and test_num in a table of test that if it detects certain values of the test table in table2:

    Select t1.test_code, t1.test_num
    from t1 t2 on t1.test_value = t2.actual_value left join
    WHERE t1.test_num in (select actual_num from t2 where actual_code ('x', 'y'))
    t1.a DESC order;

    It gives me the following result

    T1.test_code t1.test_num
    ABC 3
    ABC 4
    MNO 1
    MNO 3
    MNO 3
    XYZ 2

    I want to add a 3rd column with the count of each of the values in the first column (i.e. t1.test_code)

    Expected result:

    T1.test_code t1.test_num count (test_id)
    3 2 ABC
    ABC 4 2
    1 3 MNO
    MNO 3 3
    MNO 3 3
    2 1 XYZ

    There are 2 abc, 3 mno and 1 xyz

    Thanks in advance

    Count (*) over (partition t1.test_code)

  • The Segment count problem

    Hi guys,.

    I have a problem with the segment count.

    For example I want to count the customer on the fact table to ANSWER, one answer per channel and answer MAIL dates > 2009-03-11.

    On the segmentation module, I create a segment:

    Start with RESPONSE_METOD = "E-MAIL address" (customer account 107)
    Keep the RESPONSE DATE > 11/03/2009 (customer count 12)

    TOTAL SEGMENT 12 customer. It is wrong because the correct answer is 7 client.

    Instead

    If I create one "level of segmentation", as follows, it is working:

    Start with RESPONSE_METOD = "E-MAIL address" and the RESPONSE DATE > 11/03/2009 (TOTAL 7 customer COUNT)

    How is possible? I'm trying to generate the log file to find the query but I get the error "no paper found" (SPR file I updated logging level 2 for the user)

    Direct them best for a few suggestion

    Good bye

    Hello user.

    Try to set the log level = 7 for the user to the RPD, then save the RPD, clear cache in the RPD and the presentation of the services and run the query again. This should allow that you go to see the log in "settings > Administration > manage Sessions.

    Once you do that, maybe you can paste the log in your next post and we can better address the question?

    I hope this helps and please give points if you found it useful!

    Kind regards
    Jason

  • REUNITIALISATION CARD PCI-6624 COUNTER PROBLEM

    Hello

    I have an app with maps CAN, digital, analog and media cards. So as soon as I have my application error (error CAN or other) which forces me to stop it, I have my card PCI-6624 counters who don't get réunitialisent not and so I have the following error at the next launch of my application:

    I point out that I have this error since I updated my app (LabVIEW 8.5-online LabVIEW 2011) and plug-in DAQ 9.3.5.

    I edited my code and checked that I was doing well clear United Nations of my tasks and a reunitialisation of my media card pour itself out of my app in case error.

    I can even stop and close the application and once in MAX can't réunitialiser media cards after a crash, I always have to turn them off and turn them back on in the peripheries windows or restart my computer.

    Please inform me if you had already encountered a problem like this or help me solve this problem if you have an ideas for me.  Thank you in advance.

    Hello Jr_Marlet,

    This problem is known and has been resolved with the release of DAQmx 9.4. I therefore invite you to retrieve this version (or even 9.5) on ni.com/download.

    Feel free to get back to us if the problem persists.

    CDT,

    Eric

  • AF:menu count problem

    I need to change the color of the text of af: menubar

    I'm trying

    AF | menuBar
    {
    / * background-image: url("..) ("/ Imagenes/Plantilla/Fondo_Menu.png"); */
    background-color: #f5f5f5;
    color: Red;
    text-transform: uppercase;
    make-weight: bold;

    }


    The text is uppercase, but the color is not red... I try to set the color of the text in different switch but nothing seemms to work? What is the selector to change the color of the text?

    Hello

    you don't have to set the color on the menu items?

    Frank

  • Index off counting problem

    java.sql.SQLException: ORA-20001: Napaka: - 6533 - ERROR - ORA-06533: Subscript beyond County
    ORA-06512: at "TESTOD. VRNI_PODATKE', line 66
    ORA-06512: at "TESTOD. VRNI_PODATKE', line 111
    ORA-06512: at "TESTOD. VRNI_PODATKE', line 111
    ORA-06512: at "TESTOD. VRNI_PODATKE', line 111
    ORA-06512: at "TESTOD. DOKUMENTACIJA", line 448
    ORA-06512: at line 1

    line: 66:
    ---------------------
    O1: = ob (stevec, ref_tabela, pk_tabele, tab_obj);

    Start

    IF o1 IS NOT NULL, THEN
    v_table (St): = o1; -HERE IS ERROR
    END IF;

    EXCEPTION
    WHILE OTHERS THEN
    raise_application_error (-20001, ' Napaka:-' |) SQLCODE |' - ERROR - ' | SQLERRM);
    end;

    v_table is the setting of IN OUT nocopy varray_data

    varray_data is of type pl/sql:

    create or replace TYPE varray_data AS VARRAY (1000) to ob1

    Ob1 is pl/sql type:

    create or replace TYPE AS OBJECT (indeks NUMBER ob1,
    name_table VARCHAR2 (200),
    name_column VARCHAR2 (200),
    ob image)

    create or replace TYPE IS VARRAY ob (100) of ob2

    create or replace TYPE ob2 AS OBJECT (column VARCHAR2 (200),)
    imp_column VARCHAR2 (200),
    ref_indeks NUMBER)

    line 111:

    st_m: = v_table (st) .table. COUNTY;
    FOR j IN 1... st_m LOOP
    IF v_table (st) .table (j) .imp_column IS NULL THEN
    uk_table: = v_table (st) .table (j) .column.
    pk_table: = poisci_pk_tabele (table_reference);

    inner_st: = v_table (st) .table (j) .ref_indeks; -HERE IS ERROR (line 111)
    inner_table: = vrni_podatke_r (v_table, table_reference, uk_table, inneri_st, st);
    END IF;
    END LOOP;


    Thanks for all the help.

    Hello!

    Sorry for my late reply!

    You see 'extend' in space for a single item varray, you must then makes a measurement for each item before inserting it.
    This error is now produced when st is higher then 1000 in your case

    T

  • Use the OID and counter in DIAdem

    Dear Sir

    I can perform a task I and medium AO DIAdem DAC and my DAQ hardware. But when I try a task of DI and entry (for the measurement of the frequency) counter, problem, whenever I start the CAD module, anything happen but a snap short, it stops just before there is no measurement data. The DI and the entry of the virtual channels counter works very well in DAQmx, and I can see them in DIAdem. I missed something?

    Concerning

    Somewei

    ... other images

  • Kindle keyboard Windows 7 BSOD

    Hello

    I run a WIN7 x 64
    HP elitebook 8760w.
    I saw this thread here, http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/kindle-keyboard-causes-windows-7-blue-screen-error/e886ffab-6275-4f78-b891-c764a86ba974
    but I have not installed Acronis.
    When I plug my kindle keyboard, I have a blue screen with a memory dumping with partmgr.sys counting problem.
    I have VMware workstation and I think that when even. It does not work it could be the problem.
    If anyone can help with this. I'd be happy.
    Thank you
    NCXA

    Still have Kaspersky and still need to win 7 Service Pack 1

    Run (SURT) system update readiness tool and then update to Service Pack 1

    32 bit
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=3132

    64 bit
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=20858

    Now updated for Service Pack 1

    http://Windows.Microsoft.com/installwindows7sp1

    Learn how to install Windows 7 Service Pack 1 (SP1) http://windows.microsoft.com/en-US/windows7/learn-how-to-install-windows-7-service-pack-1-sp1

    Additional resources:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-SP1
    http://Windows.Microsoft.com/troubleshootwindows7sp1

  • Freecell statistics does not

    Freecell statistics have stopped incrementing.

    I have reset statistics, uninstalled and reinstalled the application.

    And the meter remains at 1 after a victory.

    How to bring back the statistics?

    Hi MSpencer,

    Thank you for your question on this forum. I apologize for the delay in responding to this topic.

    About this problem with the games of Freecell, Microsoft is aware of it and the development team is working on a fix. Please see the XBOX given thread below for more information:

    Free cell counter problem

    Hope it will be useful.

  • Double post of form data in Eloqua and SFDC

    Our SFDC admin wants to move to display all form both Eloqua and SFDC data, and to make the list of all imports in SFDC. His team has already found the 3rd party systems to counter problems of duplication in SFDC de-duplication. As Eloqua user, I find the process of taking a step backwards in our marketing automation process. Any of you have experience with dual signage? Reasons for or against it?

    Although it is possible with a re-post form I would advise against. I had similar discussions where people are not familiar with the benefits of an integrated between Eloqua and SFDC flow.

    The biggest limitation for me is that Web-to-lead in SFDC cannot accept as 500 prospects in a 24 hour period (out of the box he used to 500 per day, you can increase but at a cost)

    I would try to understand the concerns importance than what does Eloqua is just a call API with SFDC (pretty standard stuff and more robust than the Web-to-lead). Looks like they care about duplicates. Watching the process today - are you creating a new every delay of performance, or you are only creating a lead when a contact does not exist (this will reduce dupes, but can give you others challenges in terms of visibility of these contacts - depends on the appearance of your sales team in call lists.) If they use only lead views, could be a problem).

    List of imports - this should be good. Many SFDC admins using tools such as PeopleImport to handle the loads list and can manage settings to avoid duplication, do not create a lead when a contact already exists, etc.

  • Query for a chart

    I have this request:
    select null link, creationdate  label, COUNT(PROBLEM) BER from INCIDENTS where PROBLEM=:p10_id AND SOURCE = 'BER' and creationdate between (select (min(creationdate)) from  INCIDENTS where PROBLEM=:p10_id) and SYSDATE
    group by creationdate, PROBLEM
    order by creationdate asc
    and I got this

    LINK LABEL ASR
    -1 27/08/2012
    -1 27/08/2012
    -1 27/08/2012
    -1 27/08/2012
    -1 27/08/2012
    -1 27/08/2012
    -1 28/08/2012
    -1 28/08/2012
    -1 28/08/2012
    -1 28/08/2012

    I want to count the amount on each date. For example the query returned 6 Articles for 27/08/2012 how I see it like this:

    LINK LABEL ASR
    -6 27/08/2012
    -4 28/08/2012

    Hi, you should probably be truncate your date of creation

    select null link, trunc(creationdate)  label, COUNT(PROBLEM) BER from INCIDENTS where PROBLEM=:p10_id AND SOURCE = 'BER' and creationdate between (select (min(creationdate)) from  INCIDENTS where PROBLEM=:p10_id) and SYSDATE
    group by trunc(creationdate), PROBLEM
    order by trunc(creationdate) asc
    

    Kofi

  • Satellite A300-15 b - graphic problem Counter Strike game

    Hello

    I have a laptop Satellite A300-15 b, but in Windows 7, I have a problem with the graphics in some game.
    Not much true game problem requiring a cut, I don't know what the problem is, I tried the latest drivers, but the problem is always the same.
    I'm playing counter-strike: Source (which is not a demanding game), but this game with me this driver does not work... Help

    Post edited by: jevic989

    Hello

    Personally, I don't play game at all. About your problem, maybe you need to install x 11 Direct:

    http://www.Microsoft.com/games/en-us/aboutGFW/pages/DirectX.aspx

    Check if the version of counter-strike you are playing is compatible with Windows 7,

  • Photon counting using the FPGA of the series R. problem generation TTL signals

    Greetings,

    I try to use the R series FPGA to read and count the pulses TTL of a discriminator (count of photons of the Hamamatsu C9744 unit) connected to a PMT (Hamamatsu-H7422P-40). The release of PMT looks fine (signal.png H7422P-40) but the discriminator wasn't able to generate corresponding TTL 5V pulse. There was some scattered and random spikes, but nothing significant. Instead, the only stable the PMT signal is a single + 5V pulse no matter how, I adjusted the PMT (C9744 output.png) control voltage. The PMT and the discriminator is connected by an ordinary BNC cable 50 ohms.

    I am really confused because it was supposed to be a really simple installation. Anyone have a similar question or have similar Instrumentation (but no problem) configuration? Comments/suggestions are greatly appreciated.

    Thank you very much in advance!

    Hi Kelli,

    Thanks for your help. Sorry it took so long to get back to you.

    I actually found the question. The discrimination of the Hamamatsu unit level is set too high that all signals got filtered. After adjustment of the threshold of manuallyt, I was able to get the camera TTL pulses. And 7842R worked correctly for count impulses. Everything works fine now. Thanks again for the input.

  • Problem with signals TTL metering: confused with counting

    Hello

    I use a TTL of 0.2 Hz signal to synchronize two devices. I use a Usb-6210 card to count the pulses TTL. The meter goes off when it detects the edges increase. In my case, the meter was sometimes triggered at low altitude, which causes wrong results (see attached pictures, the TTL signal is sampled at 20 Hz and the dots represent an increment of the counter). How can I solve this problem?

    In addition, the cable that connects the TTL output was welded by myself, would that be a problem of bad contact?

    Thank you very much

    K-X

    What is the nature of the device producing the TTL trigger signal?  Is it possible, for example, that it could produce a 1 microsecond pulse (which might not be visible on your signal ground) that would trigger the meter?  You really produce a digital pulse (i.e. your something circuit which is 'on' or 'off' as opposed to 'product analog voltage in the range of 0 to 5 volts')?  Are there any other devices around that could produce the impulses that are "picked up" by your meter?  The cable connecting the TTL is armored pulse for the meter?  The shield is based at one end?

    These questions (and the previous) suggest that the problem may be 'electronic' rather than 'LabVIEW '...

  • Windows 7: installing Counter Strike problem

    When I put the cd in an alert appears

    Windows/system32/MsiExec.exe

    statings some bs can't find the extention I just bought a new comp so im new on PC

    Hi Purple3rkel,

    -You are able to install other programs outside strike cs?

    First of all, check if the windows service install is set to automatic and started. To do this follow the steps below:

    1. Click Start.
    2. In the start search box type services.msc and press enter
    3. In the services window, do scroll down to Windows install.
    4. Right-click on it and click Properties.
    5. Check if the startup type is set to automatic, otherwise it is set to automatic.
    6. Click the Start button, this will start the installation of windows services.
    7. Click on apply and Ok.

    Check if you can install Counter Strike on the computer.

    If it fails after following the steps above, you can try to access the counter strike CD and try to do a right-click on the installation and configuration icon and select run as administrator and check if it helps you install the game with any questions.

    If the problem persists, open Event Viewer and check if there are other important messages/error codes generated during the time where the installation failed and post it back.

    See the link below for more details:

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    I hope this helps. Previous post: the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • notifications of the ipad-> imac?

    I have a two part question. Both are perhaps related, maybe not. First of all, is it possible for an ipad of notification is displayed on my mac? The question is if I have a reminder application "drink your water", or a timer pomodoro on my ipad (whi

  • Need to update firmware for Mat * one years UJ-840 on Qosmio F-series

    Hi all the friend,.I have the problem with the CD and DVD Burners(firmware 1.0) I always broke my blank CD/DVDs when burning.I don't know why, but when I checked a few web site they sugguest update me the firmware, but I counld not found firmware sup

  • HP Pavilion dv6 Notebook: abnormal noise out of the body of the laptop

    HP Pavilion dv6 Notebook (bought year 2009 I was working in Qingdao in China as corporate PC) has started making a noise when using, it started about a month there is early December. I tried restarting several times but its abnormal continues and I a

  • a critical security update problem

    Sunday, I searched until a later date on my calendar (under the clock) and forgot to get back to the current date. In the middle of the night my MSE updated, and it now shows the last date of update in the future. It shows the last update 8/31/2112 A

  • Marshmallow if OTA update out of warranty

    My camera is out of warranty.  I always update OTA Marshmallow?