How can i do bitwise (binary) operations (AND, OR, XOR)

I need to do bitwise (binary) operations such as AND, OR, and XOR.  For example, how do I AND 10101000 with 11111000?

for OR, with 10101000 in A1 and 11111000 in A2, try:
  =1×SUBSTITUTE(A1+A2,2,1)
Result:  11111000
and for XOR, try:
   =1×SUBSTITUTE(A1+A2,2,0)
Result: 1010000  (missing leading 0)
You can display missing leading zeros by setting the cell's Data Format to 'Numeral System' with Base set to 10 and Places to 8, or turn the result into a string with something like this (assuming the result is in A3):
     =RIGHT("0000000"&A3,8)
SG

Similar Messages

  • How can I add three binary numbers and then convert to string (Hex format)?

    Hi All,
    I have my problem "half" resolved, but need some assistance on the final piece.  Overall, I need to take three string values (hex format), convert them to binary, add them and then convert back to a string (hex format).  If that doesn't make sense maybe this will:
    Final Result (My target) = 0xCC
     = 0x03 + 0x01 + 0x04
              = 0x03; 0011b
              = 0x01; 0001b
              = 0x04; 0100b
    For my app, we are dropping "masking" some of the bits so that we get 1 byte:
              = 0x03; 11b
              = 0x01; 001b
              = 0x04; 100b
    So...
    11001100b = 0xCC
    In my VI, I am taking each initial string [0x03,0x01 and 0x04] type casting them to U8.  Next I need to "mask" the binary values as shown above and then add them.  I am not sure how to do this in LV??
    Thanks for the help,
    Bryan

    Hi Bryan,
    there's a conversion palette in the string palette, ever looked at those functions?
    The rest is pure simple math:
    It's the straight-forward way, there are other possibilities too!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original

    Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original SIM card Verizon and I try to activate, says: (error occurred activation, if this problem happen again please call at +1................). this is the hour to use it through the R-SIM 9 pro. everything works нормальнои calls and Internet and SMS, but I want to officially unlock. beforehand thank you

    Well, you managed to find this support forum didn't you and you have an internet connection don't you?  Then if you have all these things, go and find the number by going to the Verizon website and it should not be hard to find the number.
    As for speaking English, this is not really our problem and it is surely something that you should have thought about before buying the phone in the first place.
    You also need to know that Verizon in the US is a cdma operator and if you purchased an iPhone 4s, then it should not be locked.  The Verizon 4s comes with a sim card tray that should be unlocked out of the box for use internatinoally on gsm networks, so all you should need to do is open the sim card tray and insert a sim card and you should pick up the local gsm network.
    A cdma phone does not actually use a sim card, so there would be no original sim card with the phone because when it is used in the US it will pick up the Verizon cdma network without a sim card.  The sim card is only for use on a gsm network which will not work in the US, but is designed to work outside the US.  Open the sim card tray and insert your own local sim card and the phone should work and should not be locked.
    Other than this, if you purchased the phone in the first place, it is the responsibility of the previous owner to cancel the Verizon contract.  This is nothing to do with you, so contact the seller and ask them.
    Other wise, go to the Verizon website and look up the number and call them.  As they are the phone company, ultimately, they are the only ones who can help you.

  • I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    If you bought Lion from the App Store, you can't legally or practically transfer it, because it's tied to your Apple ID. Reinstall the original software from the discs that came with the machine.

  • I erased my HD and could not install lion. if I turn on the mac now all I see is a folder with a question-mark. How can I install a new operation system?

    I erased my HD and could not install lion. if I turn on the mac now all I see is a folder with a question-mark. How can I install a new operation system?

    Install or Reinstall Mavericks, Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion, Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • How can I delete apps in iTunes and have that sync to my iPhone and iPad?

    How can I delete apps in iTunes and have that sync to my iPhone and iPad? I don't want to delete 3 separate times for each item. I just carefully chose 30-35 apps to get rid of via iTunes, hoping it would sync to my devices, only to find I have to repeat the process on my iPad, take notes, then repeat it on my iPhone. It wasn't always so tedious was it?
    Here's the "Help" I got from Apple. They even quoted my question back to me then proceeded to answer with something very different and completely missing the point.
    I understand that you would like to delete the Apps. I know how eager you are to get the required information and I will be happy to assist you.
    You can remove individual songs, audiobooks, and videos from your iPod, iPhone, or iPad. Removing an item from your device doesn't delete it from your iTunes library.
    To remove items from a device other than an iPod shuffle, first make sure that iTunes is set up to manually manage items.
    1. Connect your iPod, iPhone, or iPad to your computer.
    2. When the iPod, iPhone, or iPad icon appears in iTunes, select it.
    3. Unless your device is an iPod shuffle, click the Summary tab and make sure "Manually manage music and videos" or "Manually manage music" is selected.
    4. If the disclosure triangle to the left of your iPod, iPhone, or iPad (below Devices) is closed, click the triangle so that you can see the device's contents.
    5. Select the item you want to delete and press the Delete key.
    This was not helpful in any way and I am still unable to delete apps on my devices in a global, iTunes based way. Each device still requires its own independent process.

    Match was off.  I made all of the changes and then went through the "Turn on iTunes Match" option.  I now have deleted some tracks, edited the Metadata in CDDA, and then added it back.  This worked fine, but it is not a good solution.
    I just tried making some edits and use the "Update iTunes Match" and that seemed to work.  It looks like the real answer is that Match must be up and operational, then you can make changes and run the Update to incorporate the changes.  However, if Match has a problem then Signing Out and back in to your store account and going through the process of Turning On Match (were you get the questions, "Add this Computer to Match" will overwrite any changes. 
    Since this relies on the stability of iTunes, I won't be making a lot of changes between updates.

  • How can i find out the resolution and accuracy of PXI-6602 module?

    I have a 32 bit  8 channel PXI-6602 counter module.  PXI card is interfaced to PC with MXI-4 link. How can i find out the resolution and accuracy of this system.What is the maximum accuracy and resolution i will get from this system. Because optical signal to cmos conversion signal is given as a input to the counter.

    Hi chandhu,
    Were you referring to the accuracy of the count register or the timing clock? 
    PXI-6602 specifications can be found in the NI 660x Specifications.  The resolution of the count register is, as you’ve noted, 32 bits.  This corresponds to a maximum count value of 4,294,967,295.  As long as all of the edges are in accordance with TTL specifications, the accuracy of the count register is 100%.
    On the other hand, the PXI-6602 baseclock accuracy takes on the baseclock accuracy of the PXI CLK 10 signal.  Again, this is all found in the specifications.
    You may also want to check out the NI 660x User Manual – it contains a lot of details on the operation of these counter/timer devices.
    I hope this helps.  Please post back if you have further questions.
    Ed W.
    Applications Engineer
    National Instruments

  • My emails do not go - they exit outbox and go to recovered. How can I delete my Icloud account and just use gmail.

    My emails go from outbox into I cloud recovered section. I have gmail too. how can I delete my icloud account and just use gmail? Speed test on wifi good.
    Any ideas please.

    Sign out of iCloud (System Preferences>iCloud)

  • How can I print with the black and white cartridge only?

    I am trying to print using the black and white cartridge only because magenta is out of ink but I'm getting the following error message in HP Photosmart C7200 series print dialog:
    The printer is out of ink.
    The following ink cartridges are empty: Magenta. Replace these ink cartridges to resume printing.
    How can I print with the black and white cartridge only?
    Mac OSX 10.7.3
    HP Photosmart C7280 (7200 series)
    This question was solved.
    View Solution.

    I am absolutely disgusted by this; clearly a scam from HP to make more money by selling extra ink cartridges!!  I will make sure to never buy any products from the shoddy rip off merchants at HP ever again!!
    You should be ashamed!!

  • How can we find the most usage and lowest usage of table in Sql Server by T-SQL

    how can we find the most usage and lowest usage of table in Sql Server by T-SQL
    The table has time stamp column
    StartedOn datetime
    EndedOn datetime

    The Below query has been used , but the textdata column doesnot include the name of the table ServiceLog.
    SELECT
    FROM
    databasename,
    duration
    fn_trace_gettable('F:\Program
    Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_148.trc',
    default)
    WHERE
    DATABASENAME='ZTCFUTURE'
    AND TEXTDATA
    IS
    NOT
    NULL
    --AND TEXTDATA LIKE 'SERVICE%'
    order
    by cpu
    desc; 

  • I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    It's almost impossible.  The new iMacs have a Target Display Mode, but it's built to do that.  Without ripping your screen out, finding an acceptable power supply, frame, and whatever electronics to convert a Thunderbolt signal to the screen, the cost will be much larger than buying a cheaper HiDef monitor that runs with an HDMI to Thunderbolt cable to your MacBook 15.  In fact, you can sell your 17" MBP for a lot of money, unless it's broken or something, buying you a really sweet monitor.
    By the way, I found your answer by searching this forum.  I would suggest using the search function here in the futuere.

  • TS3280 How can i enable both paired bluetooth and ios keyboard input at the same time?

    How can i enable both paired bluetooth and ios keyboard input at the same time?
    This is needed for the app im working on. Need some user input via keypad as well as scanner input via a paired bluetooth scanner.

    You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
    I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
    https://developer.apple.com

  • I am unable to update my album art since I commenced using match (and after upgrading to Yosemite).  How can I 'unembed' old cover art and replace?

    I am unable to update my album art on my iMac since I started using Match (and after upgrading to Yosemite 10.10.3).  A message advises that it's not possible to removed old artwork if it's embedded.  How can I 'unembed' old cover art and replace?

    Normally artwork recovered with iTunes is stored as a separate artwork file and iTunes refers to that file to display artwork when you click on a track.  However, if you then copy the file to another player the artwork file is left behind and the track will not display the artwork on the other player.  To get around this it is possible to embed the artwork in the music file itself so it always travels with the file.  Artwork can be embedded by you or files from third party sources may arrive with embedded artwork.  iTunes apparently now won't replace artwork for such files.  You can accomplish this by completely deleting artwork for a file or set of files in Get Info, then getting iTunes to fetch artwork which will then be set as a reference file rather than being embedded.
    I use an old iTunes so unless you are using an ancient iTunes it won't help for me to give you great details.  To erase artwork I simply get info on a series of files and check the box next to the artwork box without adding any artwork and close.  To do it for  single file I Get Info, go to the artwork display tab and click delete.  Here's a Windows reference for a newer iTunes (but the "old Get Info" reference is for early iTunes 12 and no longer works with newer):I cannot delete embedded album artwork in iTunes 12

  • How can I set BPEL server enviorment and create BPEL domain?

    Without use the http console, how can I set BPEL server enviorment and create BPEL domain?
    When I try to use API like below
    import com.oracle.bpel.client.Server;
    Server s = new Server(ServerAuthFactory.authenticate("oracle","localhost"));
    But I always got four exceptions and one warning like below:
    java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
    java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\ejb.properties (The system cannot find the path specified)
    Warning: unable to read transaction.interoperability config property
    java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
    java.lang.Exception: Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.CommunicationException: Can't find SerialContextProvider
    Is it right to use com.oracle.bpel.client.Server like this, please help me.
    Best regards,
    Vita

    Anyone can help me? Because I need deploy BPEL process on production server, so I need the Java funtion to create domain. Thank you very much if you can tell me the correct method of using com.oracle.bpel.client.Server API.

  • How can i update data in okc_k_items and csi_item_instances tables?

    How can i update data in okc_k_items and csi_item_instances tables?
    by EBS .
    Thanks.

    For csi_item_instances table, you can use the following API:
    CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE
    For okc_k_items, try using the following API:
    OKC_CONTRACT_ITEM_PUB.UPDATE_CONTRACT_ITEM
    Hope this helps!

Maybe you are looking for

  • How do I save emails?

    Hi, I'm just about to upgrade to Leopard and going to erase and install. I'm not sure how to save my (1200) work emails though in a quick and easy way without doing them individually. I'd like to fill up my inbox again once I've installed Leopard....

  • LR3 not retaining attributes after trip thru ext. editor

    Unless I'm missing some setting somewhere, LR3 does not retain the image attributes (color label, star rating) on a new file created as a result of a trip thru an external editor, ie PS. LR2 did. workflow: in LR3, filter down to your (for example) 4

  • B&W wedding picture and need to know how to make only the flowers in color. TY

    I have seen B&W pictures with a splash of color in them, I would love to learn how to do this?

  • Creating inspection lot  in REM

    Hi In REM(Repetitive Manufactruing) Scenario:  Is their any possibility to create an inspection lot. 1) At the first GR and no more at subsequent GR or;   2) at each GR? Thanks in advance Saravana

  • Files of "other" file type filling my iPad

    I have a 64G iPad 2. When I look at the files that are filling it up, the largest type is "Other", taking 38G  I've turned off music and podcast syncing, Apps are about 12G. Photos. 1.85G. What could possibly be in the "other" category and how do I r