Odd even number and Boolean indicator

Hi all,
For example, I have these numbers from 0 to 112233. It will start counting from 0 and shown it on an output indicator. When it is even number (0,2 or 4,...) the Boolean indicator will become false, but when it is odd number (1,3 or,...) the Boolean indicator will become true.
I'd like to ask if it is possible to detect the values changing in output indicator when it start counting numbers from 0, and then the Boolean indicator will become false or true depending on even or odd number shown on an output indicator? How can I do that?
Thank you!

johnsold wrote:
It may not be that much faster. In the little test VI Q&R takes 581 ms for 10^8 iterations while AND takes 503 ms. That is 78 ps difference. Hardly enough time for a coffee break. Unless you drink really fast.
Yes, both are "fast enough" for all practical purpose. Even thought they are nealy identical in speed, the Q&R shows more variability in execution time (10% variability), while the AND is singificantly more stable (>1% variability).
(Make sure you disable debugging for a 10x speedup overall)
It also seems that the AND code folds better. If we change the control to a diagram constant, the AND version speeds up by a factor of two, even though no folding is shown anywhere inside the sequence structure. I have no idea what that means.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Missing cap, number and scroll indicator on monitor

    Help does anyone know how to get the Caps, number and scroll locks display back on to my monitor as for some reason it has disappeared and is a pain as I am not aware whether any have been selected. My computer is HP  P6675UK AND RUNS ON WINDOWS 7 aPPRECIATE ANY HELP THANKS
    This question was solved.
    View Solution.

    Hello Ouzat,
    Try these drivers to see if they provide the On Screen display
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=12...
    There is also free alternatives such as this one
    http://keyboard-leds.com/
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Digital Input VI boolean indicator

    I am using the Example VI Digital Input as part of Fieldpoint.
    It works fine on its own.
    That is, I can place a voltage across the terminals of the DI module and the respective Boolean LED lights up on the front panel.
    I'd like to use the VI as a subVI for another program.
    I wired the connectors of Digital Input.VI connector pane such that the Fieldpoint IO Input and Boolean indicator array have connectors.
    I placed the Digital Input.VI in the block diagram of another VI and created an indicator on that VI to see the status of the array within the Digital Input.VI.
    Running the higher level VI and the boolean array on it is disabled (greyed out) but the boolean array on the Digital Input.VI is working properly.
    Any ideas?
    I'm just looking for a way to obtain a status bit type response to be used elsewhere.
    If one of the DI module channels is set high then the bit would be set (LED on) in my higher level VI.

    Alright, found that if I just take out the guts (Fieldpoint IO, FP Read, Type, Boolean indicator) and use that in my VI all works well.
    Now all I need to do is determine what bits are set and act on set bits.

  • Odd/even, normal/reverse

    Why does Mac OS X printing dialogue have two separate screens for choosing options such as odd/even pages and normal/reverse order? These options are under "Copies and Pages" and under "Paper Handling". Which one takes precedent if something different is chosen on either screen?
    Kenton

    Kenton and Heike Eidse wrote:
    In "Copies and Pages", you can choose odd/even and reverse/normal. The problem is that in "Paper Handling", you can also choose odd/even and reverse/normal. So, the problem comes when I can choose to print odd pages in a normal order in the "copies and pages" section, and I can choose exactly the opposite, even pages and reverse order in the the "paper handling" section, all for the same print job. Which one will take precendent. One will have to override the other. I find it ridiculous that they double up like that.
    In general, where the options appear in the main print window with Copies & Pages showing, I would tend to use those options rather than the the ones under Paper Handling. The reason I would make that choice is that it is the application or the printer driver that is placing these choices in the main print window. I believe it is the application's responsibility to paginate the file and send it to the printing software. If the application, therefore, is asking me to make the choice, I would defer to the application. Whether this is correct behavior or not is debatable.
    I am not sure that there is one definitive answer as to whether the options in the main print window (Copies & Pages) will conflict with those under Paper Handling. It would depend on how the application paginates and sends the data to be printed. You can, of course, try various settings and click on Preview to see what is likely to happen.
    Matt

  • How to find the largest odd number and smallest even number from an array

    Hello All
    I want to find out largest odd number and the smallest even number from an arry numbers? What is the best method to achieve this.
    Thanks
    Sravz

    You need to sit down and figure out an algo on how you would do it if you had to do the same thing from a blind container perspective:
    1 - collect all the items you want to look at
    2 - look at an item
    3 - is it odd?
    4 - if it is odd then check if it is larger than previously largest number
    5 - save it if it is larger
    6 - return back to 2 unless no more items
    7 - item is not odd so it must be even--is it smaller than previous
    8 - save it if it is smaller
    9 - return back to 2 unless no more items
    Now you just need to know how to check if something is even or odd: to do this you will need the modulous operator--integer division.
    Note: this all assumes that your needs are for integer type of numbers, otherwise there is not enough information to define an answer. For instance, if you are using floats at 0.5--it that even or odd? Do you consider an err factor when dealing with floats? etc...

  • MAXDOP Setting with an EVEN number will outperform ODD number. Is there anything that proves this?

    Hi All,
    MAXDOP Setting with an EVEN number will outperform ODD number. If any of you have any data points, please share.
    NASTY RUMORS ABOUT MAXDOP

    I do not think there is any relations between specifying even and odd numbers in MAXDOP... What are you trying to achieve?
    http://sqlblog.com/blogs/adam_machanic/archive/2010/05/28/sql-university-parallelism-week-part-3-settings-and-options.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Odd or even number comparison?

    Anyone know how to compare an incoming number and tell whether it is odd or even? How about if it is whole or fractional? Thanks
    Kirk

    fabb wrote:
    Anyone know how to compare an incoming number and tell whether it is odd or even? How about if it is whole or fractional? Thanks
    You need to be very careful applying odd/even to floating point numbers. It is only defined for intergers. Especially, if the value is a result of some computations, it could actually be 2.000000001 instead of 2.
    Same with whole vs. fractional. You probably need additional code to ignore small differences from whole numbers. Where does the data come from?
    ODD/EVEN: If you have an integer datatype, do a bitwise AND with "1" and check if the result is zero (even) or not (odd).
    Message Edited by altenbach on 05-27-2008 09:17 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    OddEven.png ‏3 KB

  • [MSI Z97 Xpower AC] Confusion about odd/even Sata port number sides

    So newb here, performing his first computer build.
    Problem is that I don't see any numbers on my motherboard's sata ports.
    My manual is a little confusing, as the diagram and video shows the odd/even numbers on different sides.
    Due to the large number of drives & cable management concerns...I'd like to know the exact SATA port numbers before connecting & running computer.
    Can anyone tell me what side the odd/even Sata ports are located on?
    Are the odd numbers located on the motherboard side (while even are on case side)?
    Or, are the even numbers located on the motherboard side (while odd are on case side)?

    Thanks HenryW! 

  • I purchased Adobe Acrobat XI Pro - Student and Teacher Edition but cannot activate it even after it has deactivated and replaced my old Acrobat 8. How do I get a serial number and activate the product?

    I purchased Adobe Acrobat XI Pro - Student and Teacher Edition but cannot activate it even after it has deactivated and replaced my old Acrobat 8. How do I get a serial number and activate the product?

    I have the same  problem. Have paid. Messages say I have downloaded it but the file is inaccessible apparently download is somewhere on my hard disk. How do I find it?? Is there not help at an Adobe phone service. If so what is the number to call??
    Roger Broughton

  • I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account. why is this?

    I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account.
    How can I change the setup so on the email only the iPad rings and on the phone number only the phone rings?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • Create function for ODD or EVEN(NUMBER)  in pls sql

    create function for ODD or EVEN(NUMBER) also
    if number is odd multiply by 5
    if number is even multiply by 10;

    865253 wrote:
    create function for ODD or EVEN(NUMBER) also
    if number is odd multiply by 5
    if number is even multiply by 10;
    create function fn_get_no (n_in in number) return number is
    o_num number;
    begin
    if mod(n_in,2) = 0 then
    o_num := n_in*10;
    else
    o_num := n_in*5;
    end if;
    return o_num;
    end;
    select fn_get_no(5) odd, fn_get_no(4) even from dual;
    ODD EVEN
    25 40 Vivek L

  • I wanted to know why they call me when I do not show the number but I get the words private number, and even when I call out to another private number.

    I wanted to know why they call me when I do not show the number but I get the words private number, and even when I call out to another private number.I tried it in the settings to activate id shows but nothing has changed. I hope you can help me.

    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Some general information for a Cloud subscription
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page

  • IMesssage has stopped using my cell phone number and is only showing email addresses -- in other words, when I text, it is showing up as coming from an email address, even when i use my phone.   Laptop

    iMesssage has stopped using my cell phone number and is only showing email addresses -- in other words, when I text, it is showing up as coming from an email address, even when i use my phone.   The laptop and phone are still synchronized and messages are showing on both devices.
    I've seen this before and was able to fix in Settings, but that is not working now.
    Please help.  Thanks.

    Did you replace your iPhone with some other kind of phone? If your phone number is no longer connected to an active iPhone, you can't use it to message from your Mac.

  • When I attempt to access my IRA account on line, I get a message saying that the web site requires a client certificate. The certificates listed in the drop down dialog box don't get accepted, even though one is indicated as valid and good until 10/2014.

    When I attempt to access my IRA account on line, I get a message saying that the web site requires a client certificate. The certificates listed in the drop down dialog box don't get accepted, even though one is indicated as valid and good until October 2014. I contacted the IRA account managment company and they sais it's an Apple issue. Any ideas?

    Some websites require a special client certficate for access. If you don't have that certficate, you'll have to contact the site operator to find out how to get one.
    Sometimes the problem is caused by a web server that is configured to request an optional client certificate. Safari treats the request as mandatory. In that case, other browsers such as Firefox and Chrome may be able to connect to the site, because they ignore the request.
    The first time you were prompted for a certificate, you may have clicked through a dialog that requested access to the Apple certificate in your keychain that is used to secure the iMessage service. In that case, you may be able to regain access to the site in Safari by doing as follows.
    Back up all data.
    Double-click anywhere in the line below on this page to select it:
    com.apple.idms.appleid.prd
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Paste into the search field in the Keychain Access window by clicking in it and pressing the key combination command-V. An item may appear in the list of keychain items. The Name will begin with string you searched for, and the Kind will be "certificate."
    Delete the item by selecting it and pressing the delete key. It will be recreated automatically the next time you launch the Messages or FaceTime application.
    The next time you visit a site that prompts for an optional client certificate, cancel out of the prompt. You may have to do this several times before the server stops asking.
    Credit for this idea to Christian Braukmueller of SAP.

  • Lenovo G510 - power and battery indicator light is always on and fan is working even if it is off

    Battery and Power indicator light is always on even if my laptop is turned off and no charger is plugged in please help me I do not know what to do about this, I had a problem before too about this laptop, it restarts automatically when I shut it down but I already fixed this one, but the power and battery indicator light won't go off. And the fan is working. Hope you can help me. These are my laptop's specs  Mod's Edit: System model added to Subject line to improve visibility / clarity

    Hi Lenovo4g510i5,
    Try to reinstall the energy management and check for the issue,
    Click here for energy management for windows 7.
    Click here for energy management for windows 8.
    Best regards,         
    Ashwin. S

Maybe you are looking for

  • Cloning Issue RC-00118: Error occurred during creation of database

    Friends, I execute following scripts on source system preclone.pl dbTier  &perl adpreclone.pl appsTier then take the cold source backup and transfer on another machine for cloning but when i am executing cloning script on db tier i am getting below m

  • Photoshop CS5 unrecoverable error on opening

    Photoshop CS5 pops up a an unrecoverable error, program must close error box when it opens.  If I uninstall and run in demo mode this doesn't happen, photoshop runs fine.  I put in my serial number (yes, it is a valid SN right off of my disc box) and

  • Display is too big

    When I came in the plug on my monitor was loose and the screen was getting no power. I got the plug to power the monitor, but now the display is larger than before. Whereas a website used to fit on the screen, now it is too big and I have to scroll o

  • Windows Live Messenger Loggin

    ok, so i can't sign into windows live messenger on my 9860. Had the same problem with my 9780 and it's quite frustrating now. I can sign into my account from a desktop or mobile site, but not where i want it most. i've changed my password to an alpha

  • Accounting doc.

    hi,   when i release billing to accounting and when items are open(still not settled by customer) which in RED in fbln. thats fine but when cacel the invoice i get both acounting doc. (one for cancelled invoice)are shown as open. i think there should