Join Numbers VI, 8-bit, 16-bit, etc.

I am a "LabView beginner" and am tyring to process an array of data acquired into an array of 8-bit elements. I'm using a PCI-DIO-32HS and ports 0 and 1 make up a 16-bit word. I am successfully reading in the data and it is being written to an array of 8-bit values. Element 0 is the LSbyte, 1 is the MSbyte, 2 is the next LSbyte, etc. I then have a loop that uses the "join numbers" vi in Labview. I address element 0 and element 1 with separate vis, and then send the result the join numbers vi to create the 16-bit result (the join numbers vi performs the arithmetic shift for you).
I have a lot of data and this loop takes quite a bit of time. Is there a faster way of doing this? Is there a way to read into into an array with
the 16-bit number already available? I suspect that there may already be a convenient way to avoid this. If not, a function of this type should be added to Labview.
I have looked into the group read vi's, etc., but it seems as if this is the only way to acquire 16-bits of data.

Another and probably faster method to convert the U8 array to a U16 array is to use the Type Cast function(Function Palette>>Advanced>>Data Manipulation) in LV. Simply typecast the U8 array to U16 by passing a U16 array constant into the center input of the Type Cast function.
Christian Loew, CLA
Principal Systems Engineer, National Instruments
Please tip your answer providers with kudos.
Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
Attachments:
typecast.gif ‏3 KB

Similar Messages

  • In 10.8, the file info window's "Kind:" read "Application"/etc. for 64-bit items and "Application (32-bit)"/etc. for 32-bit items. The "(32-bit)" part seems to have been lost in Mavericks. How do I determine if an item is 32 or 64-bit in Mavericks?

    In 10.8, the file info window’s “Kind:” read “Application”/etc. for 64-bit items and “Application (32-bit)”/etc. for 32-bit items.
    The “(32-bit)” part seems to have been lost in Mavericks. How do I determine if an item is 32 or 64-bit in Mavericks?

    1. Launch System Information into its 'report' mode. (A quick way to do this is by holding down the option key while clicking on the Apple menu item, which causes "About this Mac" to change to that.)
    2. From the list on the left, under "Software" click on "Applications." (If you don't see the Applications item, click on "Show more information" from the "File" menu.)
    3. Wait a minute or so for the report to finish.
    4. The last column in the report is "64-bit (Intel)." (You may need to scroll the window to the right to see it.) Click on that heading to sort the list alphabetically. Anything with a "no" is 32 bit.

  • ERROR: jbd can only store block numbers in 32 bits.

    I am running Oracle VM Server 2.2.1. When trying to format the following partition, an error is raised.
    [root@vmserver08 ~]# cat /proc/partitions
    major minor #blocks name
    8 0 143247360 sda
    8 1 104391 sda1
    8 2 10482412 sda2
    8 3 2096482 sda3
    8 4 1 sda4
    8 5 130560223 sda5
    8 16 593755238301696 sdb
    8 17 593755238301662 sdb1
    [root@vmserver08 ~]# mkfs.ocfs2 -F -b 4k -C 32K -Tdatafiles -N10 /dev/sdb1
    mkfs.ocfs2 1.4.3
    Cluster stack: classic o2cb
    Filesystem Type of datafiles
    Filesystem label=
    Block size=4096 (bits=12)
    Cluster size=32768 (bits=15)
    Volume size=19414325854208 (592478206 clusters) (4739825648 blocks)
    18368 cluster groups (tail covers 32254 clusters, rest cover 32256 clusters)
    Journal size=33554432
    Initial number of node slots: 10
    ERROR: jbd can only store block numbers in 32 bits. /dev/sdb1 can hold 4739825648 blocks which overflows this limit. If you have a new enough Ocfs2 with JBD2 support, you can try formatting with the "-Jblock64" option to turn on support for this size block device.
    Otherwise, consider increasing the block size or decreasing the device size.
    If I add the -Jblock64 option works, but dunno how can affect the performance of the cluster disk. By the way, block Size cannot be increased since 4096 is the maximum allowed.
    [root@vmserver08 ~]# mkfs.ocfs2 -F -b 16k -Tdatafiles -N10 /dev/sdb1
    mkfs.ocfs2: Specify a blocksize between 512 and 4096 in powers of 2
    As far as I know, by default with block size = 4K you should be able to format a 16TB partition, am I wrong?
    Any ideas?
    Best regards,
    Marc Caubet

    Marc Caubet wrote:
    8 16 593755238301696 sdbYeesh. I want your storage arrays. :) The biggest I've ever managed to see on my OVM installs is 8TB for a single partition.

  • Join numeric with join numbers function

    Hi !  a small question from a guy that didnt use labview for a while !
    i need to use the join number function to join two DBL number A and B to form a new number A.B, just like the join numbers function
    in the example i would like the results after the join number function to be 1.5 
    however i understand that the function merge bytes/words together and the result is far from what i expect ....  any ways to 
    A and B are extracted from modbus READ register command and are unsigned 16 bit
    seems easy enough but i need a good refreshment on how those bits, bytes and numeric works together..   doh !
    thank for everyone involved, Kudos to all labview champions!
    Solved!
    Go to Solution.
    Attachments:
    join numbers.png ‏108 KB
    test comm.png ‏91 KB

    Hi yan,
    it seems you really need a refreshment on all those bits/bytes/numeric representations
    Typecasting floats (DBL) to U16 will probably never result in the desired value.
    Why do you convert your U16 modbus values to DBL anyway? Stick with U16 and you will have no problems using JOIN or any other bit-banging function...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • PocketPC Join Numbers Primitive bug?

    OK people whats wrong with this?  I use the join numbers primitive and it gives incorrect results.  I tried on the desktop version and I get the correct Hi.LO output of 3451263.
    I compiled on both PocketPC v8 and v8.01
    Am I crazy?
    Attachments:
    Join Numbers Pics.zip ‏10 KB

    I forgot to attach the VI in the zip file
    Attachments:
    Join Numbers Test.vi ‏11 KB

  • 32 bit, 64 bit, etc. Explain, please.

    would anyone be so kind to explain what the following from the Logic Express 8 official description means:
    "Internal audio resolution: 32-bit floating point; 64-bit precision where required"
    i mean i know of 16 and 24. but what are those above?

    When audio is recorded into computer format, it is normally recorded as 16 or 24-bit resolution. Think of these figures as representing the level of detail that can be recorded. 24-bit recording has 256 times more detail than 16-bit (though many people can't hear the difference).
    Once the material is in digital form, it's in the format that you've recorded it in. However, if the computer is going to do substantial amounts of calculation (adding effects, summing signals, applying gain etc), some of the detail is lost, even more so if your signals are too hot and you get clipping.
    To avoid this, Logic converts all your 16 or 24-bit files into 32 bits and then any lost detail when doing processing isn't significant. You can tell that Logic works in 32-bit because, if you freeze a track, the Freeze Files folder in your Logic Project folder contains 32-bit audio files. Open one in Quicktime and get the info for it.
    You might think that working with greater levels of accuracy might slow the computer down but that's not really the case. Modern chips work with either 32 or 64-bit packets of data and it's no harder or slower to do a sum on a 32-bit value than it is to do the same on a 24-bit value.
    Finally, when you bounce down your music, you choose the target bit depth (16 or 24) and the computer has to convert its 32 bit numbers into your chosen bit depth. Incidentally, this is where dithering comes in. You are automatically losing some level of detail going from 32-bit to 16-bit and dithering is a way of making sure that no artificial waveforms (called aliasing) are created when you do so.
    HTH,
    Pete

  • Upgrade media questions, clean installing, 32-bit to 64-bit, etc.

    I have a Lenovo T500 in which I installed a trial version of Windows 7 about a month ago. My trial is going to end soon, 4 days to be exact. I've got all my files in a flash drive and plan and reinstalling the trial version one more time, since the shipment for my upgrade media was delayed for months. I am going to get it when I get back home, on the 18th.
    With that said, will I have problems using the upgrade media disc, considering that I don't have a genuine windows key/license installed on the laptop right now?
    Can I clean install rather than upgrade?
    Will I be able to install 64-bit rather than 32-bit? The upgrade media sent to me is 32-bit because my original lenovo T500 was ordered with 32-bit vista (for whatever reason, when I ordered, the only upgrade option was going from home basic to home premium, with no 64-bit option). If not, is there anyway for me to use some other type of media that I can use my license key from Lenovo to clean install 64-bit?

    The upgrade is NOT for the trial version of win 7, it is for vista.
    Re-install vista, or restore to factory condition, and then
    upgrade.
    I think you MAY be able to contact Lenovo or Microsoft
    and get 64 bit disk. If it was not offered, maybe not.

  • Join numbers to one album

    All,
    Hi, my name is hoss and I am a newby for itunes and would like to organise my Itunes. In Itunes I have two the same albums of which number 1 to 6 is on one album and 7 to 13 is on the second. I would like to join them so I have only one album with all the numbers on it. Who can help me? Who knows a good site to learn all the details of itunes?
    Thanks Hoss23

    Hi, welcome to Apple Discussions.
    See my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Duplication of document numbers for Credit Memo, Inventory Transfer, etc.

    Hi folks!
    Good Day!
    We have noticed that there are credit memo numbers, inventory transfer numbers etc. that were duplicated in two different transaction in two different dates. Can you give a theory or possible reasons why this one happened? Let's refer to the credit memo first. I have searched these two credit memo in the database and I only found 1 of them... I used their names, details, codes and other info to locate the other CM but I failed.
    SCENARIO:
    A/R CREDIT MEMO NUMBER follows a pattern of  (COMPANY NAME)-(CREDIT MEMO NUMBER)-(BRANCH)
    I have created a credit memo last April 12, 2011 with the document number (ABCD-20050002-MNL) generated by the system.
    with one item (BLUE TILE) and addressed to John Scott.
    We found out that another credit memo dated April 29, 2011 having  the same document number (ABCD-20050002-MNL) making it a duplicate of the first one. This second transaction has one item also (BLACK PAINT) and was addressed to Olivia Dunham.
    We found this when they are already printed or in hard copies. I just want to ask for your opinions, theory or suggestion with regard to this situation. Is there a possibility where it was duplicated while in the printing process?
    Looking forward to hear from you....
    Thanks!
    =)

    Hi Kambadasan,
    Thanks.
    I already checked the relationship and linking of number from the document to the layout printing and everything seems to be ok.
    It follows and copy's the exact numbers.
    Thanks again

  • Getting list of all assigned numbers to Lync users, hunt groups, etc

    We ported a large number of DIDs from 1 carrier to another that we use with Lync.  I'd like to put into an excell spreadsheet all the numbers assigned to any object in Lync and compare it to the master ported number list so I can see what numbers are
    available and can be used.
    Is there a command to do such a thing?  Thank you.

    Hi,
    Here is another blog that finds available numbers in Lync deployment.
    http://msunified.net/2013/04/23/lync-20102013-script-to-find-available-numbers-in-a-lync-deployment/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found
    there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Kent Huang
    TechNet Community Support

  • Numbering 1, 1.1, 1.2 etc

    please could someone tell me if I can set up a numbering system starting at 1 then next para 1.1 and so on. It doesn't appear to be an option in styles and I cannot import the styles from a word document.
    Any answers please?
    Cheers,
    Phil

    I've opened an AppleWorks file with this outline style & Pages recognized it as a variant of Legal. I have since created a new Pages document & used the Legal list style to achieve this. Try opening a Word document that has the style you want in Pages & save it as a Pages file Then, in a new Pages document, go to Format > Import Styles... & locate this file you have saved & import the styles you want from there. I haven't had much luck with doing this from a Word document, though. So, I have saved a blank copy of my document with these styles as a template & put a copy on my iDisk. The file is named legal style.template. Put it in your Pages templates folder in HD > Users > [your account] > Library > Application Support > iWork > Pages > Templates > My Templates. If you haven't previously saved a template in Pages, you won't find these folders. The easiest way to get them in the right place, in the right order with the right names (otherwise Pages can't find them) is to save a document as a template & the folders will be created. You can always delete that first file. Or you can double-click my template & re-save it as a template.
    Peggy

  • Can Numbers automatically input every Tuesday/Wednesday, etc. of the month?

    Hi folks - I am trying to help out a friend who has built an invoice in Pages for her business. She sees clients a few times a month, typically on the same day each week. I don't have experience with Pages and Numbers...I'm guessing that Numbers has more powerful formula abilities, but then she could insert a Numbers table into Pages?
    In any case, what I'm hoping to set up for her is something like this:
    Somewhere - in the form, in a database? - she inputs the day of the week that she sees the client. This would generally be the same from month to month although could change periodically. When she opens the invoice form, the invoice date would auto-enter (that much I know how to do). Then, in the table, where it lists each date of service, the form would take the day of the week for that client, and automatically enter the dates that month. Does that make sense? So she opens a form for a Tuesday client, the form puts in today's dates, and automatically enters all the Tuesdays for this month.
    Possible?
    Thanks,
    Lisa

    lisasmitsky wrote:
    So she opens a form for a Tuesday client, the form puts in today's dates, and automatically enters all the Tuesdays for this month.
    Possible?
    Hi Lisa,
    Possible, but I think you might want to redesign the forms as a Numbers document for reasons noted below.
    Here's a table showing the results for two clients, one seen each Friday, the other each Wednesday. Days were chosen to show a four week and a five week example.
    The weekday is entered in A1, and the current date in B2 (by whatever means you wish to use).
    Cells E1:F8 constitute a lookup table where the weekday name entered in A1 is used as a search key to determine a number to be used in the formula calculating the first date in the current month falling on that weekday.
    That formula is in C2:
    =B-DAY(B)+1+MOD(LOOKUP($A$1,E,F)+7-WEEKDAY(B-DAY(B)),7)
    The first part of the formula, B-DAY(B), calculates a base date, the last day of the previous month. The rest adds the number of days necessary to get to the first Friday (or Wednesday) in the current month.
    C3, C4 and C5 contain a formula that adds seven days to the date in the cell above:
    C3: =C2+7
    C6 has the same formula, enclosed in an IF statement that checks whether the calculated date falls in the current month. If it does, the date is displayed (Wednesday, June 29); otherwise a null string is returned and the cell appears empty (Friday example).
    C6: =IF(MONTH(C5+7)=MONTH(C5),C5+7,"")
    Pages supports the same functions as Numbers, so the table could be copied and pasted directly into a Pages document.
    What Pages doesn't support, though (or supports in a manner not described in the User Guide), is the ability to Hide the columns containing the Lookup table, or to place the lookup table on a separate Table. Hence my suggestion above to consider rethinking this as a Numbers document.
    Regards,
    Barry
    The functions used are described, with examples, in the iWork Formulas and Functions User Guide. The F&F guide and the Numbers '09 User Guide may be downloaded via the Help menu in Numbers. For the Pages '09 User Guide, use the Help menu in Pages.
    B

  • Unique held Document Numbers in Tcodes like F-02 etc.,

    Hi Friends,
    While holding a doument through F-02 (say) .... it will ask for an external documnet number.... ( this number is any random number the user can give ) ...
    My requirement is:
    Iam helding a document 'A' - and the held documnet number is say 1.
    Now iam going to FB11 and posting that document.
    Again if the user is intending to held some other document 'B' ... the system will allow him to held 'B' with the documetn number 1. This should not happen........
    Expecting ur answers,
    Thanks in advance,
    Cheers,
    R.Kripa.

    Hi,
    you're wrong ,
    when i try to park 2 doc's with no. 1 i get an err.message F5 247 "Another document already exists with this number"
    under SAP-Rel. 4.6C
    Andreas

  • How join process order  and resources(packing,repacking etc) in pp

    hi
      I want to get the report by packing wise,repacking wise in PP module.
    How will get the status that it is packing or non packing in process order table

    closing thread

  • Format numbers - filesizes (kb/mb...etc)

    Are there any standardized ways to format a number into the appropriate filesize notation?
    For example, formatting the int value 10000 into 10KB, and 100 into 100B? It would be nice to handle the insertion of commas, too :)
    A solution that works on the JSP end would be preferable to one that works on the servlet end.

    *&(*&�$! formatting tags:
    package foo.bar;
    import java.io.IOException;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class CustomFormatterTag extends TagSupport {
      private CustomFormatter formatter = new CustomFormatter();
      public void setDivisor(long divisor) {
        formatter.setDivisor(divisor);
      public void setValue(long value) {
        formatter.setValue(value);
      public void setSuffix(String suffix) {
        formatter.setSuffix(suffix);
      public int doStartTag() throws JspException {
        try {
          pageContext.getOut().print(formatter.getFormattedValue());
        } catch (IOException e) {
          throw new JspException(e);
        return SKIP_BODY;
      public int doEndTag() throws JspException {
        return EVAL_PAGE;
    // tld
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
        version="2.0">
      <description>Custom Tags Library</description>
        <display-name>Custom Tags</display-name>
        <tlib-version>1.1</tlib-version>
        <short-name>my</short-name>
        <uri>http://foo.bar/my</uri>
      <tag>
        <description>
          Prints a formatted string based on the
          divisor, suffix, and value attributes
        </description>
        <name>customFormat</name>
        <tag-class>foo.bar.CustomFormatterTag</tag-class>
        <body-content>empty</body-content>
        <attribute>
          <name>divisor</name>
          <required>true</required>
          <rtexprvalue>false</rtexprvalue>
        </attribute>
        <attribute>
          <name>suffix</name>
          <required>true</required>
          <rtexprvalue>false</rtexprvalue>
        </attribute>
        <attribute>
          <name>value</name>
          <required>true</required>
          <rtexprvalue>false</rtexprvalue>
        </attribute>
      </tag>
    </taglib>
    // web.xml section
    <taglib>
      <taglib-uri>http://foo.bar/my</taglib-uri>
      <taglib-location>/WEB-INF/custom.tld</taglib-location>
    </taglib>
    // jsp usage
    <%@ taglib prefix="my" uri="http://foo.bar/my" %>
    <my:customFormat value="10000" divisor="1000" suffix="Hz"/>Cheers, Neil

Maybe you are looking for

  • Change name of open PDF file - Edit the file - Save OK

    Possibility to open a PDF file, change its name in the Finder, edit the PDF file inside (eg., using the yellow fluorescent marker) and then save it. Now you cannot do it because you get an error. Yet, that can be done virtually on any other Mac appli

  • How efficiently we use ABAP code to insert several records in database tab

    Hi All, Here I have a requirement to add several records ( approx 50 thousand) into database tables. We used hr_infotype_operation as standard function module to insert employee info in several infotypes. I'm looking for a best way that we can call d

  • [SOLVED] Lenovo X201 TrackPoint

    Hi, Sometimes when I click the "TrackPoint buttons" on my X201, the cursor suddenly jumps to another location on the screen. It doesn't happen if I use the touchpad buttons and it is not consistently happening. I've tried a live usb with ubuntu and d

  • No Serial COMM support from Command Line

    I have a JAVA App that runs fine from Forte for JAVA in Win 98SE. The App communicates with a device on the serial port. However, when I run the App from a Win 98 Dos window or with a windows shortcut, the App can't communicate with my serial port. I

  • Bt vision error

    Hi we moved to a new house 4 months ago and finally just had all our services connected (phone, bb, vision). Vision was turned on last Friday but the on demand keeps showing the v04 error, so over the last 8 days ive been ringing up, gone through the