Is there a byte swapping side effect to the type cast function?

I am developing a PC based program that reads from a TCP connection (network byte order), yet doesn't require byte swaps? There is a non-labVIEW program on the PC which receives the same byte stream and does need to swap!
Attachments:
type_cast_functionality.doc ‏112 KB
Read_GRETS_Packet.vi ‏59 KB

I guess you have to repack your string before sending it to the non Labview program(se posted picture). I think visual C uses litlle endian. As an example. In Labview the sgl number 123.123 is equal to to the hex byte array 42 F6 3E FA. Doing the same in  visual C for a float, will give  FA 3E F6 42. The same bytes but in a different order. The flatten to string function will hanlde this job for you. Use the ditailed help for pointer to examples. On this page http://www.61131.com/download.htm You will find a tool if you want to toy with number (Floating point to/from hex/binary conversion).
@grahamwebb
I think you should look at your code. Perhaps you lose or get some ekstra unwanted bytes in your programming/transmission.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Attachments:
sample.PNG ‏6 KB

Similar Messages

  • Are there any OSS notes side effects.

    Hello Everyone,
                            Can anyone tell me:
       Will there be any side effects if we implement OSS Notes in BW.
    Did anyone face this problem, i'm just asking you because we need to transfer a note from BW dev to BW prd, just wanted to be carefull about this and also
       Did anyone face any drawbacks after the implementation of the note?
       What if we apply the wrong note then how to rectify it? can any one suggest on this.please.
    Message was edited by:
            ram

    Hi,
    Advice : You should only apply notes which you have read, once applied to the SAP Dev system you should check (you should have a checklist of things to check) and systematically go through it to see that the OSS note hasn't made something else in the system not work. Once the checks have been carried out and it has solved the original bug that you had then only should you promote it to production.

  • Side effects of the /$sync transaction

    Hi!
    Does anyone know is there any side effects of using the transaction code /$sync, which is cleaning up all buffers?
    Personally I'm using it to refresh an ALV table, if it's structure was modified.
    But it is applied only for my session's buffers and it will not harm other people and will not kick out other people from the SAP system.
    Am I right?
    Thank you
    Tamá

    It will not kick out other people, but it does clear ALL buffers, and not only yours. Therefore you should not do it yourself, but rather ask some people from basis if you can and may do it or let them do it.
    help.sap.com:
    command $SYNC to reset all the SAP buffers on the application server. These commands only affect the buffers of the application server on which the commands are entered. The buffers of the other application servers in the network are not affected.
    Using the commands $TAB and $SYNC places an extremely large load on the system. In large systems, it could take up to one hour (depending on the access profile) for the buffer load to return to its original state. System performance is greatly impeded during this time.
    Edited by: Micky Oestreich on Apr 18, 2008 10:39 AM

  • Db2bak side effects on the database

    Dear All,
    I would like to know what is the impact / side effect of db2bak on the database?
    Does it lock the database while running?
    Moreover, if you can provide me with more ideas/ info about any other side effects would do me great.
    Regards,
    Scotty

    I am running a stored procedure that uses getXML. I would like to know how much memory its using up. I was told to increase the java pool, but it did not help with large query of getXML. What should I monitor for getXML?
    Thanks.

  • Is there an easy way to find out the type of an input parameter

    Hi guys, I'm writing a function that receives a large string and I have to split it in several smaller fields, some string, some date and some numeric. Is there a function similar to "isnumeric" or "isdate" that will help me check on the type of data being entered? Tks in advance.

    Hi,
    >>Is there a function similar to "isnumeric" or "isdate" that will help me check on the type of data being entered?
    Humm, like Delphi's functions? ;-) I think that 3360's solution is very interesting. By the way, check this below:
    LEGATTI@ORACLE10> create or replace function is_numeric (param_in varchar2) return boolean is
      2  n  number;
      3  begin
      4    n := to_number(param_in);
      5    return true;
      6  exception
      7    when others then return false;
      8  end is_numeric;
      9  /
    Function created.
    LEGATTI@ORACLE10> create or replace function is_date (param_in varchar2) return boolean is
      2  d  date;
      3  begin
      4    d := to_date(param_in);
      5    return true;
      6  exception
      7    when others then return false;
      8  end is_date;
      9  /
    Function created.
    LEGATTI@ORACLE10> set serveroutput on
    LEGATTI@ORACLE10> declare
      2   x boolean;
      3  begin
      4    if is_numeric('anything') then
      5      dbms_output.put_line('TRUE');
      6    else
      7      dbms_output.put_line('FALSE');
      8    end if;
      9  end;
    10  /
    FALSE
    PL/SQL procedure successfully completed.
    LEGATTI@ORACLE10> declare
      2   x boolean;
      3  begin
      4    if is_date(sysdate) then
      5      dbms_output.put_line('TRUE');
      6    else
      7      dbms_output.put_line('FALSE');
      8    end if;
      9  end;
    10  /
    TRUE
    PL/SQL procedure successfully completed.In addition, take a look at this [url http://forums.oracle.com/forums/thread.jspa?messageID=1238025&#1238025]thread
    Cheers
    Legatti

  • Why is there several seconds of black running time at the end of the videos I am producing in Final Cut Pro X? There is no gap or effect ant the end of the project.

    At the end of some of my projects the cursor runs over the end of the project for app. 3 seconds. When rendering the project Final Cut Pro X adds app. 3 seconds of black to the video. There is no effect or gap or something else at the end of the project.

    OK, wish you luck over there, seems like somebody over there should be able to help.
    If you don't get help, post back here & I'll try to find somebody in the top users that can help.

  • Is there a way to programati​cally call the LabVIEW "find" function?

    Hi,
    My situation is this. I've inherited a LabVIEW program with about 375 vi's. Now when I build this into an executable, for memory reasons, I only want the "remove panel" feature set to no for vi's that are dynamically loaded. But I don't know exactly which vi's are dynamically laoded. But if I have all of the vi's in memory, I can search text for the vi name and if I find it, then that is where the vi is being dynamically loaded. That works okay, but you still have to search for each vi. I would like to run the find command through a for loop with an array of vi names as the indexed input and get some type of reply out. Is this possible or is there a better way to determine w
    hich vi's are dynamically loaded? Thanks

    Well, that's covered in my suggestion of having a program first build a list
    of all VIs in memory, and then start logging from then and only giving you
    the VIs opened since the logger started. You load the application into
    memory with all statically linked VIs then start the logger. The logger then
    notes all the VIs in memory and ignores them. You then start the
    application, and the logger notes all the VIs that are loaded in from that
    point on, excluding itself, your application and your statically linked VIs.
    All my suggestion does is gives you a list of the VIs in memory that you
    then use to see if the panel is open using the relevant property node of the
    VI- I recall you originally mentioned wanting to just type in an array of VI
    names. There's
    nothing stopping you doing this instead and having the
    program periodically see if a reference can be opened to each VI in the
    array and, if so, seeing if the panel is open. It's just that having a
    program that does as I describe will save you having to identify and type in
    all the names in such an array.
    sal wrote in message
    news:506500000005000000091C0000-984280909000@quiq.​com...
    > Hi Craig,
    > I don't think that will work. The reason is this: If a vi is in
    > memory, how do I know if it has been statically called or dynamically
    > called? Some of my vi's that are dynamically called show their front
    > panels and some do not. Maybe I'm missing something here.

  • When ever I try to download my song it goes through the process of downloading it but when I look in my music on my phone it's not there and there is no lock or anything on the type of song so I don't know what to do.

    Whenever I try to download a couple different songs it will go through the downloading process on my phone but when I look at my song on my phone it's not there and its not the grey problem either. I've tried downloading it on my phone and iTunes. Please help!!!!!!

    Try restoring the iPod to factory defaults/new iPod. If still probem then it apears that the drop caused hardware damage to your iPod. An appointment at the Genius Bar of an apple store is in order.

  • Any bad side-effects to lengthy blocking in native code? - crosspost

    [This question was also posted on the Native Methods forum a day ago, so far no response]
    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Lastly, Is this stuff spelled out in some document? Or is there some newsgroup dedicated to the topic? I looked a comp.lang.java.machine, but there is nothing there but spam.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    [This question was also posted on the Native Methods
    forum a day ago, so far no response]
    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).No. It is common to have a "reader" thread for a blocking socket connection. This results in a block in native code for days (months). The only impact is that you may end up creating alot of threads to handle this blocking code.
    >
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).I would hope not. You may find that WIn32 will run out of threads fairly quickly (at about 1000 threads) Earlier versions of Linux create a different process per thread which can have a non-trival overhead. Solaris will probibly not care. It has a thread number limit but if you reach it you are probibly doing something wroung.
    >
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.It takes a while to start a thread, it also consumes a minimal amount of per thread memory which can add up if you have 100s of threads. f you are writing the JNI I would suggest writing it to scale such that say more connections/files etc can be handled by a small number of threads (like NIO does) and these issues are reduced.
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about native
    code, but if there are no serious side-effects to
    extended blocking, it may be a viable approach.See above.

  • Any bad side-effects to lengthy blocking in native code? (Win32,Linux,Solar

    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).As far as I know the native code is loaded dynamic when a thread will use it.
    So if the thread 1 needs the code written in the native.dll the thread 1 will use
    the first instance of native.dll. So let's say this is blocked.
    Then after 2 hours another thread called thread2 calls the native.dll code. Then
    java ask the OS to create another instance of the native.dll and so on.
    So now there are 2 threads and 2 instances of the dll in the memory.
    All these apply to the Win32 OSs.
    >
    2) Does the answer vary by platform? I'm interested
    in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.
    If your machine could suffer 100 pure java threads then it is not a problem to be some of them JNI ones.
    4) Do modern JVM's use one native thread per Java
    thread? Yes. Exactly as far as I know and experienced.
    If so, then I would guess there is really
    nothing special about blocking in native code.Exactly.
    >
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about
    native code, but if there are no serious side-effects
    to extended blocking, it may be a viable approach.Yes it is. That is actually why Native methods are existing for.

  • How to know side effects of implementing an SAP Note

    Hi All,
    Im new in implementing SAP Note.
    Kindly suggest how to analyize whether implementing an SAP Note will cause some side effect.
    How to do that ,I think just by looking at code can we assure that there will be no side effects.
    Kindly suggest.

    hello,
    the easiest way is to implement note and check the functionality manually for example execute transaction and post document or you could open the correction object (ABAP code) and analyse the correction which ll be imported and how those changes will effect your systems work. if you implemented the note and you noticed that corrections destroyed your previous functionality then you could rollback the note in your development system.
    best regards
    dez_

  • Accessing UIView.bounds has side effects?

    I'm trying to debug another CocoaTouch issue, and so I added a bit of logging to my view controller:
    NSLog(@"view size = %f,%f", self.view.bounds.size.width, self.view.bounds.size.height);
    But just adding this line of code changes the behavior, causing my lower subviews to appear about 45 pixels higher than they do without the line.
    I've read the UIView bounds documentation six times, but I can't see anything there suggesting that I should expect side-effects from the getter.
    Anybody know what's going on here?

    Hi,
    maybe it's because you're accesing self.view, wich will cause the view beeing loaded if it wasn't loaded allready.
    So, depending on where you put this line of code it could change the behavior of your app at least in theory.

  • Side effects set company code to productive on Live Production System

    Dear All,
    I have a question, are there any consequencies or side effects, if we set company code to prodcutive while the system already run for last 1 year.
    Is there any SAP note reference for this matter?
    Really appriciate for your help.
    Thanks.
    Regards,
    Endi Pratama W.

    If you do not put to productive then there is a problem.
    You must put it to productive immediately. There will not be any side effects.
    OBY6
    A company code which is working productively should be indicated here by an "X". This prevents deletion programs from resetting data in this company code by mistake

  • Path Segment Reshaping feature's unpleasant side effect

    So an apparent side effect of the new Path Segment Reshaping feature is that the direct selection tool now only selects a portion of the path you click on. This is very annoying! It makes it look like your path is non-contiguous. Is there any way to disable Path Segment Reshaping?

    It seems to only happen with curved paths that:
    are not a complete circuit
    have four or more anchor points
    I think this is a bug, though, because if your path is a closed circuit, it doesn't happen, and the path segment reshaping feature continues to work regardless.

  • What exactly are side-effects in #pragma no_side_effect?

    Which of the following qualify as side-effects for the purposes of #pragma [no_side_effect|http://docs.sun.com/app/docs/doc/819-5265/bjaby?a=view#bjacp]:
    1. dynamically allocating/deallocating memory using malloc/free or operator new/delete
    2. exiting the function by throwing a C++ exception
    3. temporarily changing the disposition for a signal (e.g., ignoring or suspending a signal)
    4. creating a thread and joining with it

    Thanks for your answers! Just to make sure I understand correctly: accessing the local state of the caller through a parameter is not a side-effect. I.e., in the following snippet the function has_no_side_effects() has no side-effects:
    int get (int *p) { return *p; }
    void set (int *p, int x) { *p = x; }
    void has_no_side_effects () {
        int x;
        int y;
        set (&x, 0);    // not a side-effect (x is local)
        y = get (&x);   // same
    }But in the following, has_side_effects() does:
    void has_side_effects () {
        static int x;
        static int y;
        set (&x, 0);    // side-effect: writing a "global"
        y = get (&x);   // side-effect: reading a "global"
    }Also, reading global const data (i.e., what might be in ROM) is not a side-effect. Correct? E.g.,
    static const int global[] = { 1, 2 };
    void has_no_side_effects () {
        int x;
        int y;
        x = global [0];   // not a side-effect, global is in ROM
        y = global [1];   // same
    }

Maybe you are looking for

  • In BC, how can I remove the large space above the product images?

    Hi, I'm having a problem with the product pages in Business Catalyst. There is a large space that appears between the breadcrumb trail and the first row of product images (small product page) and between the breadcrumb trail and the information on th

  • Problem setting up Solaris 10 Networking / Internet

    Hello, This is my first time ever setting up a linux and havent spent more than a few hours ever using one. Im looking for a step by step guide to start fresh and set up a network on a cable line running a dlink router and router ip is 192.168.0.1 li

  • OWB bugs, missing functionality and the future of OWB

    I'm working with OWB for some time now and there are a lot of rough edges to discover. Functionality and stability leave a lot to be desired. Here's a small and incomplete list of things that annoy me: Some annoying OWB bugs (OWB 10g 10.1.0.2.0): - T

  • Export of WebI reports to XML in BO4.1

    Hello, I've seen some of BO What's New presentation stating that export of WebI reports to XML is possible in BO 4.1. However, my standalone client (4.1 SP1) does not offer this function. My question thus is, whether export to XML is really possible,

  • Job Opening in Denver, CO

    Job Posting Title: IRC25919 Job Title: EngineerBrief Description: DISH Network is an innovative industry leader distinguished by its pioneering spirit.  Ever since our establishment in 1980, we’ve been the ideal workplace for people with adventurous