Can you add how many "trues" have ocurred?

I have a vi that generates a "pass" of "fail" indication of a measurement. Can I incrementally add how many times "true" or "false" has been generated? I have the vi in a 'while' loop but I don't exit it until I shut the program down and the rest is in a flat sequence structure.
Tay

OK, place the shift register in the outer while loop, there is no need to have the inner loops.  (see image below)
Use the array method and initialize the shift register with a 3-element I32 array outside the big loop. Now you don't even need the "first run?" primitive.
Delete the two "toEXT", they make no sense at all!
Keep the representations consistent (e.g. you convert DBL to EXT, then use a SGL indicator!)
Replace the case structure with an event structure and place the bulk of your code in it. Make the event "take a meaurement: value change". Rremove all waits, they are no longer needed.
Add an empty event for "stop: value change" containing only the stop terminal wired to the loop condition.
Note that if you expect to count more than 2^16 counts, you should convert to I32 after the "boolean to 0,1" or you'll overflow. If you can guarantee that the counts wil remain below that, you can leave the "to I32" out and initialize the array with U16.
Your sequence structure has no purpose, delete it! There is no reason to delay the analysis by 1000ms.
Message Edited by altenbach on 12-12-2007 09:24 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
TRUE-counters2.png ‏12 KB

Similar Messages

  • Hello, I formatted without disabling. Can I know how many copies have running Photoshop?

    Hello, I formatted without disabling. Can I know how many copies have running Photoshop?
    I reinstalled without problems but if I could install it on a second computer

    Cloud License allows 2 activations http://www.adobe.com/legal/licenses-terms.html
    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each
    Remove license on a computer http://forums.adobe.com/thread/1442423?tstart=0 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

  • Can I see how many people have visisted my MobileMe Personal Domain

    I've set up a website using iWeb and it's been published in my personal domain using MobileMe, is there anyway of checking how many people have visited it?

    http://www.statcounter.com/iweb/
    Joe

  • Can you see how many calls are waiting in a queue using Supervisor.

    Is there a way to see how many calls are sitting in a particular queue using supervisor or is there and additional software or hardware i need to use or purchase?
    I am using  Contact Center - 5.0(2)SR01_Build053

    Do you see any CSQs listed in the upper left box in the Supervisor?
    If so, when you click on one or the top-level tree item you should see stats relating to CSQs to the right. You may have to scroll that window accross so see some stats.
    Regards
    Aaron

  • Can you see how many people is using your iTunes account?

    I want to know if anyone that I don't know is using my account. I wish I can see how many people is using it.

    The answer to "How many people are using my iTunes account?" should be --- one!
    If you suspect the answer is anything other than one, simply change your password and do not share it.

  • HT2486 Where and how can you see how many members in a group?

    I wish to know how many members I have in my group. In the old address book I just clicked on the group and it told me but now it doesnt. PLease help

    Scroll to the bottom of the list. If the contacts inside a group are just a few, there is no counter.

  • How can you find how many MB or GB is your video

    Before I sign on to Vimeo, I want to find out how many MB my video took? Vimeo only allows 500MB

    Hi,
    Several components of Windows Server 2008 and 2012 use Windows Internal Database for their data storage: Active Directory Rights Management Services, Windows System Resource Manager, UDDI Services, Active Directory Federation Services 2.0, IPAM and Windows
    SharePoint Services.
    Which role did you setup or what is the error message did you received?
    Regards.
    Vivian Wang

  • How many computers can you connect, how many computers can you connect

    Hi Folks I have just purchase Apple TV and was wondering if you can connect more than one computer/iTunes libarary to Apple TV. My reasoning for asking is we have a few Itunes accounts in our home so thought there was potential for others to connect their Powerbooks to the TV or is it restricted to me only.
    I look forward to your responses.
    Jim

    See These Support Articles for Home Sharing
    Understanding
    http://support.apple.com/kb/HT3819
    How to
    http://support.apple.com/kb/HT2688
    Troubleshooting
    http://support.apple.com/kb/TS2972

  • HT201272 how do you find how many people have downladed your app?

    Any ideas wher apple Hides their analytics for apps that have been downloaded?

    You get sales statistics and other information through your iTunes Connect account.
    Regards.

  • How many devices can you add to icloud?

    How many devices can you add to your icloud account? 

    How many devices can you add to your account? 

  • How many cards can you add to passbook

    how many cards can you add to apple pay passbook

    Hi ...
    Eight >  Apple Pay is limited to 8 credit cards at any one time

  • I have an ipod touch and the contacts icon is missing.  How can you add it to the home screen?

    I can't find the contacts icon... How can you add this to the home screen

    Every iPod touch has a contacts icon. It might be hiding. You can try Settings > General > Reset > Reset Home Screen Layout.

  • How large of an Ethernet Switch can you add to an Airport Extreme gigabit router?

    I have a gigabit Airport Extreme router. I like using the Airport Utility to control my network. I want to convert a large number of wireless connections to wired ethernet devices, about 24. The reason is that I just get too many wireless dropouts, and I need a more reliable network. I am looking for the best way to design this. It seems like adding a gigabit Ethernet switch is the easiset and best way to accomplish this. My questions are:
    1. How large of a gigabit switch can you add to the LAN port of an Airport Extreme: 24-port, 48-port?
    2. How far down can you cascade switches? In other words, can I connect three 5-port switches (level 1 switches) to the three LAN ports on the Airport Extreme, and then connect more 5-port switches to the level 1 switches?
    3. What are the performance implications for either design. Can you achieve gigabit performance with these designs?
    Thanks for the help.

    I have a network with an Extreme base station, 3 Extreme wired extenders and 1 express wired extender - in the mix are four 24 port gigabit switches and two 8 port gigabit switches - so you can add as much as you want within the limits of the internal IP address range which is controling the number of devices on the network.

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

Maybe you are looking for

  • Crystal Reports performance is too slow

    Dear SDNers, I have designed a crystal report which is fetching data from a Z developed function module. From crystal report side, used filters.But while executing report, it is calling the function module multiple times. due to this performance is v

  • Using Schedule Manager (FMDM) to manage budget carry forward for commitment

    Greetings, Using ECC 5.0,  we have a business requirement to carry forward (FMJ2) some open commitments with budget and some open commitments without budget to the new fiscal year. We have attempted to use Schedule Manager (FMDM)  to change the setti

  • Check for mat transfer in thro 541 to SC Vendor if it exeeds the PO qty

    Dear Friends, user is able to transfer material to sub contractor through 541 movementwith reference to PO  if the qty exceeds the PO qty. How can it be stopped ? Is there any error message to be set ? Pl provide me the solution. Regards, ASK

  • ISE web portal problem

    Dear Friends, I configured my 5508(in sso) and i made authentication through 802.1x on our software ISE,  i spent time to enable WEB portal authentication for guest users(guest wlan), so many guides for web portal authentication, my ACL on WLC shows

  • PXI-6251 Phase Angle

    Good Day, I am currently using a PXI-6251 module and I need to measure Phase Angle between two sinusoidal waveforms. I have done a lot of searching and can not find much. If anyone is able to help I would appreciate it. TIA, TomJr