a question little endian

Hi, I am looking to convert decimal number in little endian hexadecimal to write to the serial port string. I tried the method type cast, but it does not give me the right output. for example, I have a decimal 2350 which in hex is 2nd 09 (HEX), but when I type up the double 2350 for hex string, I have 40A 2 5 00 0000 0000, which isn't fair. then I tried to flatten the string function to change the endian order, which has not worked for me either.can someone help me please? Thank you very much.

(1) FIRST ISSUE OF 2 BITS, BIT TO SEND NUMBER MANAGEMENT

STATION 1--> 12

STATION 2--> 22

STATION 3--> 32

STATION 4--> 42

(2) CHOICE OF THE SECTION

70--> LF
7A--> HF

(3) POSITION

23.5 %--> 2350 IN DECIMAL--> 09 2ND (HEX)
REVERSE THE BIT (HEX)--> 2ND 09

(4) CHECKSUM OF

12 70 2ND 09--> 45 XOR XOR XOR

THE COMMAND TO MOVE THE STATION 1 LF TO 23.5%

12 2ND 70 09 45


Tags: NI Software

Similar Questions

  • Impossible to export H.264 with audio integer (little endian)

    Hello world

    Searched all topics and do not find the answer so hope someone here can point me in the right direction. I'm running Prem Pro CS5 on an i7 PC with 12 GB of Ram, GTX 570 and it works well for Prem Pro

    Original movie: Canon 7 d

    Audio Format: 48000 Hz - 16-bit - stereo (Audio of my XHA1)
    Project Audio Format: 48000 Hz - 32 bit floating point - stereo

    Question

    I have a project requires a MOV with the following:

    Video

    H.264 720 x 576 (PAL)

    Audio

    Format: Integer (little endian)

    Sampling frequency: 48 kHz

    Sample size: 16 bit

    Bitrate: 156 Kbps

    Stereo

    Video I can do as well, but I don't see a way to change the audio (no options for Big Endian or Little Endian), I tried to export, but I can't find the settings there and were also considered in Media Coder, but cannot find the settings for that and clip of MPEG streams which I find the settings for , but for some reason any freezes everytime I try to export the video.

    Any ideas?

    You can't adjust the bitrate. You probably don't need to adjust the transmission speed. If the specs you received say "156 kbps", it's a typo. With almost 100% certainty, which should say "1536 kbps." That's what you will get when you export as uncompressed audio with QuickTime.

    If you need a lower bitrate, export as shown above and then process the audio again in MPEG Streamclip or QuickTime Pro. But I'm willing to bet that you don't need that.

  • Big against little endian - how will this affect my Performance of read/write PDM

    Hello

    I read that LABVIEW intrinsically stores data in big endian format, but the read/write of the VIs DDHN have the little-endian as a default. Simply, you wonder what is recommended for these screws TDMS and if these options affect writing / reading performance somehow?

    Hello

    The endian of data does not affect the performance of the read/write of the DDHN screw the primacy of the format is just down to personal preference when working low level with data.

    If you do not read or write the bits in a personalized way, then I would recommend leaving the endian as it is by default when reading or writing. Otherwise, use any kind you like or prefer to go through.

  • sqlplus: error while loading shared libraries: /opt/oracle/lib/libclntsh.so.11.1: ELF file data encoding not little-endian not

    Hello

    I get the error message below.

    We have made the correction but the suite spot not be able to start the database.

    sqlplus: error while loading shared libraries: /opt/oracle/u01/app/oracle/product/11.2.0.3/lib/libclntsh.so.11.1: ELF file data encoding not little-endian not

    Need your help in resolving this issue.

    Thank you

    Srinivasan R wrote:

    Hello

    FYI,.

    We have applied the fix for database only and there's OS patching.

    Thank you

    Srinivasan R

    Realize that Oracle provides the PATCH of the DATABASE for different versions of the OS & if you apply the patch to the database for the version of Solaris on a HP version.

    then the problems will result.

    If sqlplus worked without error before applying the patch & now ENDIAN error reports, problem exists between keyboard and Chair!

  • Any need for big endian and little endian conversation?

    Hello

    I intend to migrate an Oracle Server 9i on AIX 5.3 to Oracle 11 g R2 Windows 2008 and plan to use the transportable tablespace. But before this task is the conversation of big-endian and little endian with RMAN?

    Welcome suggestions, comments, and advice

    Thank you

    Hello

    Check V$ TRANSPORTABLE_PLATFORM, it shows the end of each platform supported. Given the results on my 11 g, I suspect that you will have to convert storage...

    SYSTEM@oracle11 SQL>select *
      2   from V$TRANSPORTABLE_PLATFORM
      3  ;
    
    PLATFORM_ID PLATFORM_NAME                                                                                         ENDIAN_FORMAT
    ----------- ----------------------------------------------------------------------------------------------------- --------------
              7 Microsoft Windows IA (32-bit)                                                                         Little
              6 AIX-Based Systems (64-bit)                                                                            Big
              8 Microsoft Windows IA (64-bit)                                                                         Little
             12 Microsoft Windows x86 64-bit                                                                          Little
    

    HtH
    Johan

  • Convert the hexadecimal string of Little Endian floating-point single precision

    I made a lot of tinkering and research, but despite all the very similar examples, I found, I think that I am limited by my lack of knowledge in programming. I gives me values such as 0000c 641 I need to convert to 41C60000 who must convert single precision IEEE754 to 24.75 as a standard 32-bit float. I saw very similar examples with boxing and unboxing conversions, but I simply can't understand it. Thank you.

    OK, so if you have actual letters coming, there are a few ways that you can do. You can basically change the string in order to get in order waiting for LabVIEW. Otherwise, you can do the same using data manipulation functions:

  • Littlen entire endian of playing file

    I know that Java uses big endian format. How do you read integers from little endian 2 bytes of a file generated by a program running on a PC? I can read a byte at a time and swap them and make a whole, but it's bad coding. You guys have way.

    What about net.rim.device.api.util.DataBuffer? Or you can write your own wrapper more effective.

  • The external table, question of double data type

    Hello

    We are the migration of 11g CL8MSWIN1251 to 12 c UTF8.

    Now, we test the exteranl tables and that we've met the problem below.

    We have a binary file (little endian) with fields of type double.

    In 11g, it is very well analyzed, but in 12 c obtained ' ORA-29913: error in the execution of legend ODCIEXTTABLEFETCH"" "".

    In the Oracle docs, I found this paragraph, the last sentence of worries.

    The DOUBLE clause indicates that the field is the same format that the C language, data type DOUBLE on the platform where the access driver is running. Use of the DATA IS {BIG |} LITTLE ENDIAN clause} can cause data to byte - swap before it is stored. Such data may not be portable between certain platforms.

    Here is an example of a test that works on 11g, Oracle Enterprise linux 6.5. And get the error above 12 c 7.1 OEL

    create ext_test table (balancing act)

    Organization external

    (type oracle_loader

    the default directory dir_test

    Access settings

    ( fixed 8 documents

    data is little endian

    string sizes are in bytes

    language American

    The territory America

    nobadfile

    nologfile

    fields)

    doublebalance)

    )

    location (dir_test:'1.bin'));

    Select * of ext_test

    BALANCE

    ----------

    8960,07

    773792,92

    5000

    3 . selected lines.

    I don't know how to attach a file, here is the binary content of tray 1.

    02.07.png

    The problem is located.

    Select * ext_test was made 11.2 customer connected to the database of 12 c.

    When selecting using all the 12 client works very well.

  • Questions of the ON24 cloud connector

    You have some questions, little that can actually be applicable and able to answer by people using connectors of cloud by other Webinar providers too...

    (1) by using the register cloud connector, I notice more often, he can send that ON24 data once a day. Anyone know what time of the day it does this?

    (2) associated with #1, what happens to people who register at the last minute? They are not if is going to be in the system at the time where the stats Webinar, won't be able to connect.  I remember when I saw a demo of ReadyTalk cloud connectors, they talked about this question and said they send a different email to these people, with a direct link to the webinar, without having them to connect.  Other people do it too, or is it better to maually run the connector cloud just before the start of the event, to push these people of last minute?

    (3) I'm not the admin of On24, so this question may be basic and I hope easy to answer - the landing page on On24 standard where the connection of people and you register has the form of ON24. Obviously, I don't want to replace this form with form Eloqua? Or so people otherways to go about this?

    Thank you

    Eytan

    Cloudfeeder really does not fit in your use case. It is used when someone wants to transfer those who are not registered channel Eloqua in the system.

    It seems that On24 CloudConnector registry has a single drop further down to the amount of time that should not be in step. We feel that deleted. For now, just leave it at once a day. He will speak in the regular time.

  • quick question on vcenter license

    quick question - Little confussion here on the version of vcenter.  Is there a version of vcenter company?  Or just vcenter license as 'standard vcenter' which then manages your esxi host with essential/standard/enterprise or company more licenses?

    There are a few versions. standard, Foundation and essentials.

    http://www.VMware.com/products/vCenter-Server/buy.html

  • Some questions and Performance issue

    Hi all

    I'm trying to make an application using berkeley DB.
    But I came across a really bad performance (insert 439 / sec) and I also try to go to "DB_QUEUE", but I have a
    "size illegal record number" when the power of the record in my db.

    # length. / prog 10000
    made in 22766,2 ms (updates 439.248/s)

    Real 0m22.807s
    user 0m0.320s
    sys 0m0.580s


    And when I call "db-> set_re_len (1024)" and replace "DB_TREE" "DB_QUEUE" (to the db-> open line).
    I got this:

    illegal record number size
    terminate called after throwing an instance of 'DbException.
    What(): Db::put: invalid argument
    Aborted (core dumped)



    Could someone explain to me what I'm doing wrong here?
    Thanks a lot for any help

    Laurent


    Here is the program:


    ========================================================
    #include < db_cxx.h >
    #include < sys/time.h >



    char buffer [1024];
    #define get_timeval (timeval) gettimeofday (& (timeval), 0)
    struct timeval start, end;


    Sub
    usage()
    {
    std::CERR < < "you should give a number such as ARG1." \n » ;
    exit (1);
    }


    int
    main (int argc, char * argv)
    {
    If (argc! = 2)
    usage();
    DbEnv * env;
    DB * db;
    DbSequence * ff.;
    DB * dbSeq;
    DBT seqKey;
    DBT key;
    DBT data;

    env = new DbEnv (0);
    env-> set_flags (DB_AUTO_COMMIT, 1);
    env-> set_flags (DB_TXN_WRITE_NOSYNC, 1);

    Key.SET_DATA (new db_seq_t);
    Key.set_Size (sizeof (db_seq_t));
    Data.SET_DATA (new char [1024]);
    Data.set_Size (1024);

    u_int32_t flags = DB_CREATE
    | DB_PRIVATE
    | DB_INIT_LOCK
    | DB_INIT_LOG
    | DB_INIT_TXN
    | DB_INIT_MPOOL;
    env-> open("/files/lauma/test/PONG",flags,0);

    dbSeq = new Db(env,0);
    dbSeq-> open(0,"sequences.db",0,DB_BTREE,DB_CREATE,0640);

    DB = new Db (env, 0);
    DB-> set_pagesize (65536);
    DB-> set_re_len (1024);
    DB-> open (0, "mytables.db", NULL, DB_BTREE, DB_CREATE, 0640);

    SEQ = new DbSequence (dbSeq, 0);
    seqKey.set_data (const_cast < char * >("mytables.db"));
    seqKey.set_size (strlen ("mytables.db") + 1);
    SEQ-> open (0, & key, DB_CREATE);

    int count = atoi(argv[1]);
    get_timeval (Start);
    for (int i = 0; I < Count; ++ I)
    {
    If ((i % 1000) == 0) std::cout < < I < < 'Save... \n ";
    DbTxn * txn;
    env-> txn_begin (0, & txn, 0);
    dbid db_seq_t;
    SEQ-> get (txn, 1, & dbid, 0);
    memmove (key.get_data (), & dbid, sizeof (db_seq_t));
    memmove (data.get_data (), buffer, 1024);
    DB-> put (txn, & keys and data, 0);
    TXN-> commit (0);
    }
    get_timeval (end);
    double d = ((end.tv_sec*1000.0 + end.tv_usec/1000.0) - (start.tv_sec * 1000.0 + start.tv_usec/1000.0));
    std::cout < < 'fact' < < d < < "ms (" < < (d? ")" (County) * 1000.0 / d): - 1) < < "updates/s)" < < std::endl;

    SEQ-> close (0);
    dbSeq-> close (0);
    DB-> close (0);
    env-> close (0);
    remove the seq;
    Remove dbSeq;
    delete db;
    Remove env;
    }

    Hello.

    If you are on a little endian machine, you will need to specify a custom key comparison function to ensure that the entire keys are sorted correctly. Without this feature, your random insertions, instead of sequential access, will give you.

    The DB-> set_bt_compare to set the comparison function:
    http://www.Oracle.com/technology/documentation/Berkeley-DB/DB/api_c/db_set_bt_compare.html

    The Getting Started Guide goes further in detail on this subject:
    http://www.Oracle.com/technology/documentation/Berkeley-DB/DB/GSG/C/btree.html#comparators

    Ben Schmeckpeper

  • FileToArray or readline to read a file and displays the information in a textbox control

    CVI, I am a beginner and I have a few basic questions.
    I am currently using CVI 2009th

    I want to open a file and transform it into another format. The most important information to be included on the GUI.

    The text display, I use the text box.

    With readline, everything has worked, but for my rows of data is rather impractical.

    That's why I tried the same thing with FileToArray. But the table does not appear in the text box.

    I don't know exactly how works the text box. Is - that the textbox is a page break after a certain number of characters? Or I can write a text in succession away?

    Here are a few lines of my code.

    FileToArray

    FileToArray (road access, & fcsLine, VAL_CHAR, fcsfile_numberofelements, 1, VAL_GROUPS_TOGETHER, VAL_GROUPS_AS_ROWS, VAL_ASCII);

    What is the proper way to display text with filetoarray?

    SetCtrlVal (tabPanelINFO, TABINFO_FCS_VERSION, fcsLine);

    InsertTextBoxLine (tabPanelFCS, TABFCS_FCSBOX,-1, fcsLine);

    ReadLine

    While ((fcsfile_open, fcsLine, fcsfile_numberofelements) ReadLine > = 0)
    {

    InsertTextBoxLine (tabPanelFCS, TABFCS_FCSBOX,-1, fcsLine);

    }

    OK I found documentation on the format of your data, and it seems at the first glance not so difficult to decode.

    A few answers to your questions:

    1. opening a file in ASCII mode allows the system to recognize and welcome the correct new line character (the one that allows to ReadLine to interrupt playback) sequence. As you treat binary data may be ASCII option is not the best, you can use

    2. using a data structure or by analysing the single lines in significant variables is somewhat equivalent: in my opinion, the structure is more immediate, she may not need any extra data setting to use correct variables populated by vales (depends on data format and packaging data: little - endian or big-endian and so on)

    3. as much as I've seen in the part of the file that you have posted, the hexadecimal bytes you observe are not in the file: they are only a means of your Viewer uses to represent unprintable binary data

  • Table of Boolean to the number

    I don't know if this has never been worn before, but if so, it's here once again.  Lets say I have a Boolean chart shown with 8 elements willing horizontally.  When I read it, I usually read it left to right, which means that the MSB is on the left and the LSB is on the right.  However, if I use the Boolean to number funtion table, this function read right to left.  Ditto for the number of Boolean function Array, it will form the table from right to left.  This goes against normal Boolean reading habits.  I know that this isn't a bug because it was probably intended to be run as such.  The VI below illustrates what I mean.  Three questions:

    Why is it done this way?

    Why not make the configurable functions to read in both directions?

    The term big-endian to Little Endian applies to the order of the bytes in a word of 16 bits, divided in two bytes.  Worth also on the ILO agenda in a U8?

    The VI are:

    Type again casting man escapes from his cage!

    I always use 4.x mode when I want to "readable" little tables.

  • TestStand for color selection

    Hello

    I created a VI to display a dialog box to the user at a test TestStand sequence.  Among other attributes, I brought color controls (color sorry!) to TestStand to change the font and background of façade etc. for flexibility and reuse.

    My question is, given that the color controls appear in settings TestStand as simply U32 numerics is any facility in TestStand to have a selector of color instead of having to know what number equal to color?

    The alternative is to use lists listed to specify the color 'names' but it is a bit painful and limited.

    Kind regards

    Hey WiMAX_Eng!

    You asked a great question here - one that left me speechless for awhile! I work with TestStand 4.2, and I saw the same question. However, exactly as you mentioned, the color (sorry, color - ha) formats TestStand and LabVIEW are different endians.  This is discussed below.

    The color values are usually four whole bytes and commonly use the little-endian and big-endian format. Windows and ActiveX using the little-endian format, which stores the color red, green, and blue components in the 0x00BBGGRR byte position. LabVIEW and LabWindows/CVI use the big-endian format, which stores the color components in the positions of 0x00RRGGBB bytes.

    ... in fact, this behavior is expected.

    Fortunately, there is a very simple way to work around this problem. There is a function in TestStand to convert between 2 different color formats. If sending the following expression in a LabVIEW code module...

    ConvertColor (tsRed)

    .. .will pass the red color in LabVIEW LabVIEW will correctly interpret format.

    Indeed, the function ConvertColor() implements the same functionality as this piece of LabVIEW code.

    I hope this has been helpful.
    Best wishes

  • dll byte order

    Hi all

    I have a very general question regarding the order of byte to a dll.

    I have a dll that was compiled on a little endian machine. I want to use this dll in my application and my machine is big endian. So, in my application, before sending the data to the dll, I need to convert these data in little endian?

    Thank you!

    Do you know what types of outputs from the typical entries exepcted?

    Even without the overthinking things, you have a 50% chance to get directly on the first trial and 100% chance to get directly on the second try. Why not just try both? Probably you get a result that is faster than the time it took to wait for answers here.

Maybe you are looking for

  • CD/DVD does not read discs on Pavilion G6 2293SA laptop computer running Windows 8 :(

    Hey there I would be very grateful if someone could help me with this. I bought the G6 Pavilion in November last year. When I got home I went to a recognize (as recommended) recovery disks but the laptop there is a blank disc in the drive. I tried a

  • Software FPGA with LabVIEW 2013

    I have a system with a rotating computer "development" under Windows 7 and an NI PXI-1036 chassis with a PXI-8101 controller as well as a card FPGA PXI-7853R. Recently, I upgraded to LabVIEW 2011-2013 of LabVIEW. I kept LabVIEW 2011 installed just to

  • Driver required: Win 7 driver for HP Pavilion g7-2298nr USB controller

    I went down my HP Pavilion g7-2298nr portable 8 victory for windows 7 Ultimate edition... the works of usb 3.0 port, but the 2 usb 2.0 ports (does not provide food, that's all) (usb controllers a exclamtion point in Device Manager) I can't find drive

  • WARNING if USB xHCI USB Host Controller

    Hello I have a warning on the Device Manager with Intel WiUSB (USB - IF USB Host Controller xHCI). My OS is Windows 8 x 64 and my model ThinkPad Edge E3300 Could you help me? Thank you

  • Supported SIP URI characters

    Hello I'm currently setting up interoperability between Cisco control VCS X7.1 and CUCM V7.1.3. The IPT dial plan consists of site prefixes and area codes that make up the full DN phones, this unique name is also starts with a #. For example #0044014