How to change raw char string to 16-bit 2's complement integer?

Hi,
Please see the following raw char sting
óèóóóóþþóèþóóóþóþóóèþóóóó​óóóóóþóóóóóèóóóóóþóóþþóóó​þóèóóþóèþóèóþóóþóóèþóóóþè​óóþóþóþóóóþóóóþóèóþþèþóþó
How could I converter it to 16-bit short signed integer 2's complement?
Thanks,
Ott
Solved!
Go to Solution.

What do you expect for the output?  Something like this?
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
To I16 Array.png ‏20 KB

Similar Messages

  • How to change one character string to char

    hi all
    i got string but only one character
    i got 1,2,3,E
    since i got 'E' here..........
    i need to convert to it to character....
    but how to change it.... i only know String to integer using Integer.parseInt() method....
    but i don't know about char...................

    You should really check the API first:
    http://java.sun.com/j2se/1.4.2/docs/api/index.html
    Take a look at String.charAt(int index) method.
    /Kaj

  • How to replace mixed chars string

    Hi All,
    I want to replace mixed chars string from each row and want to replace with new string.
    Ex : The existing string might be in different cases like "Abc string", "abc string", "aBC string". I want to search for all these string types and want to replace with new string "Abc string".
    Could anyone give suggestions on this.
    Thanks,
    Prakash

    [url http://download.oracle.com/docs/cd/E11882_01/server.112/e26088/functions149.htm#i1305521]REGEXP_REPLACE supports case insensitive replacing.
    REGEXP_REPLACE(source_string,'abc string','Abc string',1,0,'i')The *'i'* specifies case insensitive replacing, so it will find all of "Abc string", "abc string", "aBC string" :-)

  • How to change default HDR toning with 32 bit smart object - 16 bit, when not merging

    Suppose I have just done this:
    Opened a RAW file as a 16-bit smart object through camera raw, so I can easily go back and change raw parameters if needed
    Converted the document to 32 bit mode
    Set 32-bit preview mode to Highlight Compression
    Added a Curves layer and fiddled with the sliders until satisfied
    So far so good.
    Now what I would like to do is envelope/convert these two layers into a smart object, and then change the mode to 16 bit with a Highlight compression method, but WITHOUT merging the smart object. Merging leaves me with one flattened non-smart layer. Obviously I don't want to merge, because all the smartness of the previous (32 bit) smart object, and I cannot go back to the equally smart raw file.
    For a demonstration: http://tv.adobe.com/watch/russell-brown-at-photoshop-world-2011-orlando/smart-object-32-bi t-hdr-editing-techniques/
    After chosing "merge layers", an impressive dialog box is displayed with 4 toning methods. When NOT merging, nothing is displayed, and Exposure/Gamma seems to be silently used. Fine in some cases, but not now. It seems one cannot change that, or choose another one of the 4 methods. But perhaps someone has figured out a way to "will" it in another direction?
    Thanks for your help!

    Yes sorry about that, I may have been a bit brief indeed:
    I'm using Photoshop CS5, x64, latest patch (12.0.4). And ACR 6.4.1 to open a Raw file as a smart object in Photoshop.
    Step 2: correct, I used Image->Mode->32bit
    Step 3: I set the 32bit preview mode by clicking View->32-bit Preview Options->Highlight Compession
    Setp 4: I'm mistaken here, I added a Levels layer, because Curves are indeed unavailable in 32 bit mode.
    While I'm at it:
    Step 5: Then, I would select these 2 layers in the layers pane and convert them to a smart object (right click in layers pane -> convert to smart object)
    Step 6: Next step would be Image->Mode->16-bit. It would then ask to have the layers merged or not before changing bit depth. Only if you choose merge, the HDR toning dialog box would appear, from which you can select Exposure&Gamma, Highlight Compession, Local Adaptation and so on.
    I don't want to merge, because it will destroy the smart object containing the Levels layer and the original raw file (in a smart object)
    So I select "Don't merge". It doesn't show the HDR toning dialog, and goes straight in 16-bit mode. But what toning mode did it choose? By comparing the result you get when not merging, to the result when one does merge, it appears a default toning mode of Exposure&gamma is chosen. That's not what I want, because I would like to have Highlight Compression.
    But where can I change this behaviour?

  • How to change RAW to JPEG without editing

    Normally, when I import RAW files into iphoto, edit them, and click Done, iphoto will convert those RAW files to JPEG.
    The problem is printer cannot print RAW files, but it can print files in JPEG format.
    However, there are many times that I don't want to edit my RAW files, but I want them to be JPEG so that I can make a card, calendar, or album (in iphoto) and print it.
    I have tried to click Done without editing images, but it failed to convert to JPEG.
    Please help.

    Guys,
    I find the same issue to be true. Any image that was rotated by iPhoto (even though the 20d settings tell it to auto-rotate), iPhoto considers this image edited, and therefore will have created a jpg copy. Now my issue is not how to retain the raw image, but I export mass amounts of photos to batch directories where I watermark and put on my website. I would like to actually just be able to drag my images to a desktop folder and deal with them as jpgs. Problem is, only the ones which were rotated are considered jpgs since they've been modified. I found if I select all the landscape images, rotate them and then rotate back, then I'm good. But I would rather not have to do that. Any ideas how I can just copy a bunch of images without having to trick iPhoto, and have them end up as jpgs???

  • Changing a char-string into decimal

    i have a problem:
    over my serial connection i just get strings in char but i need decimal numbers!
    can you help me!
    thx wiesi

    What do you mean "a normal number"? This is a number, 97, and it's inside an array. What do you expect this number to be? To extract it from the array you have various options, from using an index array function to using an auto indexed for loop.
    If your problem is with using the array, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here is one you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    Try to take over the world!

  • How to change RAW processing options?

    Currently editing and processing a large number of soccer images, and am having an issue with both Lift & Stamp, and the RAW Fine Tuning part of the adjustments HUD.
    The problem is that I don't want Aperture to perform the edge sharpening routings (I think it looks bad), and I want to use just the normal 'Sharpening' panel. I've figured that last part out, but cannot for the life of me figure out how to turn off the Edge sharpening within the RAW Fine Tuning panel(where the 'Boost' setting is, etc.). I want to use the settings on a whole folder of images, but no matter what I do, the RAW settings keep reverting back to the 'Apple' settings, which don't show up in the 'Manage Presets' window. It's like it is globally performing the RAW window edits based upon the camera model, and there is no way to turn it off.
    When I try to use Lift & Stamp, even thought the target image has been altered appropriately, the 'default' settings are applied once stamped onto the folder of images. In the Lift & Stamp window (next to the checkbox), it reads "1D MkIII Camera Default-Apple" or something like that. The only way I can turn off edge sharpening is image-by-image, and I refuse to go that route!
    Hope that makes sense, but HELP!
    Jeff

    If I understand you right, it seems to be working fine here.
    I selected one image. Turned RAW sharpening off (unchecked) , saved it as a preset 'no raw sharpening'. Then I selected a group of images, then the lift and stamp tool. 'Lifted' off the 'no raw sharpening' image, checked just the raw fine tuning option in the lift and stamp window, then pressed stamp selected images and volla, no RAW sharpening on any of the selected images.
    I believe you can also select an image that has been set to 'no RAW sharpening' and then pick use as camera default and this may keep sharpening off on future imports for that camera, but I have not tried it myself.

  • Eliminating ###'s after hex reconversion to char string

    This is interesting.
    I was originally required to pass a segment to my subroutine. I had to do so using text literals. The   symbol is not recognizable by text literals. Therefore, I had to convert the entire string to hex.
    I then passed the hex segment to the subroutine, and reconverted it back to char string.
    After this I found a ton of unexpected # symbols in my segment. I tried doing a
    REPLACE '###' WITH '' INTO CHARSTRING.
    , but unsuccessfully. There is not much documentation on hex_to_char conversion, there are 2 FMs on 46, but I cannot get them to work. If anyone knows how to eliminate these unexpected # symbols please let me know.

    DATA: HEXSTRINGER(6000) TYPE 'X'.
    DATA: STRINGER(3000) TYPE 'C'.
    FIELD-SYMBOLS: <FSHEX>, <RECONVERT2>.
    CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'
                   EXPORTING
                         ARCHIVE_HANDLE       = READ_HANDLE
                   IMPORTING
                         RECORD               = ARC_BUFFER-SEGMENT
                         RECORD_STRUCTURE     = ARC_BUFFER-RNAME
               MOVE ARC_BUFFER-SEGMENT TO SEGSTER.
               assign SEGSTER to <fsHEX> type 'X'.
               MOVE <fsHEX> to HEXSTRINGER.
    APPEND 'REPORT ZSUBR.' TO CODE.
    APPEND 'FORM DYN1 USING HEXSTRINGER.' TO CODE.
    APPEND 'DATA: SEGSTER2(3000) TYPE ''C''.' TO CODE.
    APPEND 'ASSIGN HEXSTRINGER TO <RECONVERT2> TYPE ''C'' .' TO CODE.
    APPEND 'MOVE <RECONVERT2> TO SEGSTER2.' TO CODE.
    APPEND 'WRITE:/ SEGSTER2.' TO CODE.
    APPEND 'ENDFORM.' TO CODE.
    I write out Segster2 and compare it to segster.
    I've done some variations of this where after I change the char string to hex string I replace 'C' with '7C' into hexstringer and then re-replace it in the subroutine, and then reconvert it to a char string- but actually I don't think that was a necessary step. I believe I can just convert it to hex, and then reconvert it back to hex in the subroutine.

  • Changing the Host String in Oracle 10.2.0.4

    Hi,
    Can you please let me know how to change the Host String from ORCL to "production".
    I login now using the details below,
    UN: system
    PWD: production
    Host String: orcl
    Any help would be highly appreciated.

    Pravin wrote:
    Hi,
    I tried it but doesnt seem to work. Anyhow, i created a new database with my requirements and thus issue got resolved.
    Maybe you should have provided a bit of detail to "doesn't seem to work".
    I hope you didn't build a whole new house just because you couldn't get the key fit the front door . . .
    Thanks for your response. Appreciate it.Edited by: EdStevens on Sep 27, 2010 3:43 PM

  • How can I cast a String to a char array?

    My code is:
    char []sender = new char[48];
    String senderStr = "event_router_send";
    sender=senderStr.toCharArray();The sender array's size will be changed to the String senderStr's length. Is there a better way to fill a array from a String object and keep the array's size.

    youhaodiyi wrote:
    My code is:
    char []sender = new char[48];
    String senderStr = "event_router_send";
    sender=senderStr.toCharArray();The sender array's size will be changed to the String senderStr's length. Is there a better way to fill a array from a String object and keep the array's size.Here's how:
    int index = 0;
    for(char c: senderStr.toCharArray()) {
        sender[index++] = c;
    }But why do you want to keep the array size in tact? What if the String has more characters in it than the array's size?

  • How can I get an unsigned char string with nulls from a dll into LabVIEW 6i?

    The following ethernet packet data is contained in an unsigned char * string returned from my dll (it's formatted on printing):
    Received A 230 Packet On Adapter 0x008F0070
    Ethernet Dest: 01.E0.BB.00.00.15 Src: 00.E0.BB.00.DD.CC Type: 0x8868
    000000: 01 E0 BB 00 00 15 00 E0 : BB 00 DD CC 88 68 48 41 .............hHA
    000010: 00 E0 BB 00 DD CC 80 B3 : 00 00 FF FF 00 02 00 01 ................
    000020: 01 00 F0 18 FF 7F 7F FF : FF 7F 7F FF FF 7F 7F FF ................etc., etc.
    However, when I read this string into LabVIEW 6i, I only get the following:
    01E0 BB
    Which is the data before the first NULL or 00 information. I found a "Remove Unprintable Chars.vi" but it
    just sees more data before the above string, nothing after, as seen here: 5C30 31E0 BB.
    Anybody have any suggestions for how to get the rest of the string? Is there something I can do to further reformat my dll? The dll I'm using is already a wrapper around another dll so I have some flexibility, but the bottom line is, the data I want is in the format of an unsigned char *.

    Excellent advice, this mostly works so I have some further questions:
    I am just reading network traffic off my ethernet card right now, but here is what I get using my C program to test:
    000000: 01 E0 BB 00 00 15 00 E0 : BB 00 DD CC 88 68 48 41 .............hHA
    000010: 00 E0 BB 00 DD CC 80 B3 : 00 00 FF FF 00 02 00 01 ................
    000020: 01 00 38 3C FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7F FF ..8<............
    000030: FF 7F 7F FF FF 7F 7F FF : 7F 7F 7F FF FF FF FF FE ................
    000040: FE FF FF FF FF 7F 7F 7F : 7F 7E 7E 7F 7F 7E 7E FF .........~~..~~.
    000050: 7F 7F 7F 7F FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7E 7F ..............~.
    000060: 7F 7F 7E 7F 7F 7E 7F FF : FF 7F FF FF FE FF FF FE ..~..~..........
    000070: FF FF FF FF FF 7F 7F FF : FF 7F 7F FF FF FF FF FF ................
    000080: FF 7F 7F FF FF 7F 7F FF : FF 7F 7F FF FF 7F 7F FF ................
    000090: FF 7F 7F 7F FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7F FF ................
    0000A0: FF 7F 7F 7F 7F 7E 7E 7F : 7F 7F FF FF FF FF FF FF .....~~.........
    0000B0: FF FF 7F FF FF 7F 7F FF : 7F 7F 7F FF FF 7E 7F FF .............~..
    0000C0: FF FF 7F FF FF 7F 7F FF : 7F 7F 7F FF FF 7F 7F FF ................
    0000D0: FF 7F 7F FF FF 7F 7F 7F : 7F 7F 7F FF FF FF FF FE ................
    0000E0: FE FF FF FF 00 01 : ................
    And here is what I get using LabVIEW to call the dll:
    0015 00E0 BB00 DDCC 8868 4841 00E0 BB00 DDCC 80B3 0000 FFFF 0002 0001 0100 9600 7F7F 7F7E 7F7F 7F7F 7F7F 7F7F 7F7F 7F00 B405 4300 3300 0000 0000 0000 01E0 BB00 0015 00E0 BB00 DDCC 8868 4841 00E0 BB00 DDCC 80B3 0000 FFFF 0002 0001 0100 9600 7F7F 7F7E 7F7F 7F7F 7F7F 7F7F 7F7F 7F00 F405 1B04 0C04 0000 0000 0000 8000 0000 0000 0000 0800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
    The first thing I notice is that the first 4 bytes are chopped off, and after about 50 bytes, the data is corrupted until the sequence starts to repeat, but this time it starts with the missing 4 bytes and still corrupts after about 55 bytes.
    I am expecting the data in LabVIEW to look very similar to the C data because the network packets I am grabbing are pretty consistant, only a couple bytes will vary between them, not the number I am seeing in LabVIEW.
    Another side effect I'm seeing is that I can only run my labVIEW code once, if I try running it again it crashes with failures such as:
    memory could not be "read"
    For reference, I am opening and closing the network adapter inside the read function of my dll, but the pointer seems like it should be intact...
    Attachments:
    zListAdapters.vi ‏30 KB
    listAdapters.dll ‏201 KB
    Reading.dll ‏213 KB

  • How to change connection string for a form created with b1de

    Hi all
    i've created a form using the Code Generator tool ob B1DE
    My question is how can i set the connection string to a different server and database. doing so after the creation wizard has finished?

    Hi,
    Why do you need to change the connection string? What are you calling "connection string for a form"???
    The only connection string I now about is the one used to connect to the UI API... and this one is fixed for all apps in debug mode and given as parameter when your addon is registered in B1.
    The connection string is filled in the code of your generated addon.
    Please go to the main class of your addon, in the main method you have the following code where the connection string is filled either with the command line parameters (release mode) or with the fixed value given by SAP. This code doesn't need to be changed...
            public static void Main()
                int retCode = 0;
                string connStr = "";
                bool diRequired = true;
                // CHANGE ADDON IDENTIFIER BEFORE RELEASING TO CUSTOMER (Solution Identifier)
                string addOnIdentifierStr = "";
                if ((System.Environment.GetCommandLineArgs().Length == 1)) {
                    connStr = B1Connections.connStr;
                else {
                    connStr = System.Environment.GetCommandLineArgs().GetValue(1).ToString();
                try {
                    // INIT CONNECTIONS
                    retCode = B1Connections.Init(connStr, addOnIdentifierStr, diRequired);
    Regards
    Trinidad.

  • How to change the long in to string

    Hi
    In my program i get the long value as input.
    Then i send this long value to one method for testing which accepts the argument as String.So i have to change my long in to string then i pass it to the method.
    can anybody tell me how to change my long in to string?
    Thank you so much

    There's probably a method java.lang.Long.toString.
    If not, there's probably something a lot like it in either the Long or String classes.
    I'll leave you the pleasure of looking it up in the API docs.

  • How to change String to double ?

    I want to change String to double in Applet program, but for the run time, error is occurred.
    It can not find the method parseDouble.
    Error -> Double.parseDouble("7.5");
    I try to test String to Integer, it works fine.
    OK -> Integer.parseInt("7");
    How to change String to double in Applet ?

    Yea, the Double.parseDouble method came in a later release (first time in 1.2).

  • How can I change RAW and Tiff files to jpeg in Aperture 3

    How can I change RAW & Tiff to jpeg in Aperture3

    The purpose of Aperture is storing and managing image files including RAW and TIFF, generally users don't change the image format once it is in the library, there is no need.
    If you want a jpeg version of an image for use elsewhere, you simply export it from Aperture, there are numerous ways of getting images out of APerture depending on what you plan to do with them, e.g. File>Export>Version gives you a lot of choices as to the format and quality of your exported file.

Maybe you are looking for

  • Pages won't "save as"

    Hello, I have looked through this forum and can't find my exact problem so am hoping to get some help.  I intalled the pages app on my iMac at school where I teach elementary math.  I made a graphing document for my fourth graders and tried to "save

  • 7.0 data flow to 3.x dataflow :(

    I'm curious to see if there are others who are in my situation and want to know how they are coping with it, I have been on 7.0 dataflow from 2005 as part of a ramp up customer and have been on it since then. Now I moved to a new project and this cus

  • Ipod mini keeps turning on  and off all the time. Help

    I got this ipod mini in may, it worked great, but then all of a sudden it started to turn on and off once in a while mostly now it happens once a day..i checked if maybe the timer was set but it wasnt at all, can i fix it by myself or do i have to se

  • Adding another resource on process order level

    In certain cases our client has to stop it's production if a machine breaks down. The solution of this problem is to post confirmation of all operation teco the process order, create one time recipe one time bom and a production version to create ord

  • OBIEE where to start

    Hi i recently completed pl/sql OCA , and was interested in learning about OBIEE , can anybody suggest me a godd place to start learning it. The oracle documentation for OBIEE was not much helpful