Por que razon se utiliza type cast en comunicaci​on tcp ip

Deceo saber por que razon se utiliza la funcion  type cast en la comunicacion TCP IP y por que razon cuando se reciben los segun los ejemplos de aparecen en labview se coloca el numero 4 como constante.
se agradeceria responder a esta consultas.
Attachments:
pregunta.JPG ‏34 KB

duplicated post
Abel Souza
Engenheiro de Aplicações
National Instruments Brasil

Similar Messages

  • Por que razon se borran las llamadas mas antiguas ?

    Quien me puede responder por q razon se borra el registro de llamadas pero las mas antiguas ?

    Duplicate Post.

  • Si instalo CS6 standard en una mac pro, Es imperativo tener 8GB en RAM? Por que?

    Actualmente tengo 3 GB y pienso subir solo a 6GB en RAM. Me pueden dar un argumento valido para poner los 8 GB que dice adobe en su página oficial para CS6.
    Gracias a todos

    Nadie te obliga, ni te limita o impide la instalación si no los tienes.
    Seguramente ya habrás comprobado que lo puedes instalar sin problemas!
    Incluso si abres una aplicación también funcionará con poco más de 1GB de RAM.
    Ahora bien, qué ocurre cuando los trabajos son varios y muy grandes, que necesitan más RAM, si necesita usar mucho tiempo y muchas veces como memoria virtual el disco duro, irá despacio.
    Qué ocurrira cuando además abras varias aplicaciones a la vez, que necesita mas RAM?
    Por esas razones Adobe recomienda o sugiere disponer de 6GB de RAM, y posiblemente, a no mucho tardar, lo subirá a 8 GB.
    (Las aplicaciones de forma individual seguirán funcionando con más o menos la misma cantidad de memoria necesaria actualmente.)
    El precio de la memoria RAM, es actualmente muy bajo, aunque para tipos de memoria antiguos quizás no tanto, existen marcas/fabricantes de memoria totalmente compatibles con los sistemas de Apple, no tienes que comprarla en las tiendas o servicios técnicos de la marca.
    Cuando se adquiere un ordenador nuevo, o no mucho después conviene instalar toda la memoria que pudiendose pagar creas vayas a necesitar ahora y en un futuro próximo.
    Los MacBook Pro, salvo el modelo más pequeño, traen de serie 8GB de RAM.
    Cúal es la diferencia de comprar 3 ó 5GB?
    Quizás es por que tienes 3 módulos de 1GB, en una placa con 4 sockets?, y o bien pones uno más de 1GB, o quitas 1 de 1GB y colocas 2 de 2GB, porque si no tendrías que poner 4 de 2GB y "tirar" los 3 de 1GB?
    Mi consejo es que compres (si puedes) 2 de 4GB y te olvides de los que tienes (aunque aún puedes incluir 2 de GB para tener 10GB en total).
    Acuerdate de tener en cada uno de los 2 bancos la misma cantidad de memora para que trabaje en modo dual.

  • Could not type cast in java embedding

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    org.xml.sax.InputSource in = (org.xml.sax.InputSource) getVariableData("Invoke_1_getRoutingAndFrameJumpers_OutputVariable","getRoutingAndFrameJumpersResponse");
    Document doc = db.parse(in);
    In the above code I am trying to type cast the variable getRoutingAndFrameJumpersResponse into org.xml.sax.InputSource so that i can parse.
    I am not getting any error during compilation
    but I am unable to type cast some run time error is coming in the line were I am type casting but I am not able to see the runtime error.
    How can I see the runtime error in java embedding, how to type cast a variable into xml so that I can parse it.

    Hi Arun,
    Could you try using the bpelx:rename extension in an assign activity enables a BPEL process to rename an element through use of XSD type casting.
    <bpel:assign>
    <bpelx:rename elementTo="QName1"? typeCastTo="QName2"?>
    <bpelx:target variable="ncname" part="ncname"? query="xpath_str" />
    </bpelx:rename>
    </bpel:assign>
    Cheers
    A

  • Por que o IPAD-APPLE não tem portas USB e um programa gerenciador de arquivos (igual ao Windows Explorer)? Um puxão de orelhas no mais puro estilo Steve Jobs!

    Prezados Diretores da Apple:
    Perdoe-me por ser direto: por que os senhores não disponibilizam portas USB e um programa gerenciador de arquivos no IPAD?
    Como consumidor acho isto muito arrogante.  Alguns chamam essa arrogância de estratégia de mercado. É um imenso engano. O nome correto disto é “surdez corporativa”!
    Os senhores provavelmente ouviram falar da matriz BCG. Enquanto o ciclo de vida do IPAD encontra-se na fase das “vacas leiteiras”, nada é feito para ouvir seus consumidores. Isso é realmente uma idiotice muito grande.
    E estão dormindo no ponto, ou talvez sejam muito convencidos a ponto de não ouvir os seus clientes.
    Por isso, não vou trocar meu IPAD1 pelo IPAD3, pois nenhuma mudança realmente significativa foi adotada. Comprarei um tabblet com plataforma Android, que tem porta USB e Gerenciador de Arquivos.
    Por favor, quero usar meu IPAD também como um flash drive! Não quero ser obrigado a conectar no Itunes! Por favor, quero gerenciar meus arquivos de forma simples e inteligente!
    O seu desafio é provar que o IPAD é um produto realmente democrático, que atende o desejo democrático dos seus clientes.
    Finalmente gostaria de falar que estou arrependido de ter adquirido um IPHONE 4GS, porque a bateria não dura tempo suficiente. Isso é vergonhoso! Como os senhores tiveram coragem de lançar um aparelho com problemas de bateria?
    Será que resta alguma humildade aos senhores diretores para entender uma lição tão básica de marketing? Não pisem na bola com o seu consumidor. A paciência acabou!
    Isso não é contra-propaganda. Iphone serial number DNPH25NBDT9Y e IPAD serial number V503287EETV.
    De seu consumidor furioso: Carlos Alexandre (Brazil) – [email protected]

    Oi, obrigada por responder!
    Em inglês, só se eu transformar pelo Google Tradutor rsrs mas mesmo assim seguirei seu conselho!
    Apagar a conta e recriá-la é a última coisa eu não poderia fazer, porque é um e-mail que uso para trabalho e preciso das cópias dos e-mails enviados e recebidos para que eu possa inclusive fazer cobranças do meu trabalho, me resguardar, fazer provas e etc... Por isso, não posso nem pensar em fazer isso, enquanto eu não imprimir pelo menos. O problema é que são mais de 3000 e-mails...
    No gmail a conta fnciona normalmente...
    Preciso muito de ajuda e não sei mais o que fazer ou aonde procurar ajuda!

  • Is there a way to type cast an array of strings to numbers and back again?

    I'm working on an application where I want to type cast a string like "power supply" into an array of existing numbers. Then sort the existing numbers, and finally convert the casted numbers back into a string so it can be read by the user. In the attachment, you can see my latest attempt with flatten/unflatten data and the 'convert string to byte array'. I can't seem to make this work. Any ideas?
    Thanks - Paul
    Attachments:
    Paul's Temp scan for components.vi ‏56 KB

    OK, here's a quickie (LabVIEW 7.0).
    Simply get the sort key from the 1D array, then build the table.
    Message Edited by altenbach on 10-27-2006 01:34 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SortedTable.png ‏4 KB
    SortedTable.vi ‏37 KB

  • Dynamic [Runtime] type casting in Java

    Hello,
    This is my requirement.
    I have a method that takes class name as a parameter.
    Ex:
    Object myMethod(String classname){
    Object xyz = getObject(); //userdefine method which returns some object
    /*<b>I need to typecast above object with the class name passed as the method parameter</b>*/
    /*<b>How can i type cast this object</b>*/
    Object obj = (classname) xyz;
    return obj;
    In the above example, how can i dynamically typecast the object with class whose name is passed as the method parameter?

    Hello,
    This is my requirement.
    I have a method that takes class name as a parameter.
    Ex:
    Object myMethod(String classname){
    Object xyz = getObject(); //userdefine method which
    returns some object
    /*<b>I need to typecast above object with the class
    name passed as the method parameter</b>*/
    /*<b>How can i type cast this object</b>*/
    Object obj = (classname) xyz;
    return obj;
    In the above example, how can i dynamically typecast
    the object with class whose name is passed as the
    method parameter?Perhaps a little more background on the project (what you are trying to do) will help the experts here answer?
    /*with a class that takes a noarg constructor*/
    public Object getObject(String classname) throws Exception
      //might want to get a bit more specific with which exceptions it will throw
      return Class.forName(classname).newInstance();
    }Do I think this sometimes is indicative (perhaps even more often than not), of a possible design flaw? Yes..
    It gets a little trickier if you have constructors (you have to create a Class object representing the string with the .forName(..) ..and then use some reflection to determine constructors and then a bit of logic to determine which of those to use...)
    ~Dave

  • Is it possible to make a type cast in TestStand?

    I've got the following problem.
    I use a receive function which waits for an undefined package. (struct package).
    The problem is i can't specify the module with the exaxt package.
    Generally in C i define a Pointer and create enough buffer for it. Is it the same in TestStand?
    Is it possible to make a type cast?
    for example:
    i've got these packages
    struct packet;
    struct  data;
    the function does not know which structure to receive.
    err = receive(buffer,maxlen);
    how do i specify the buffer variable?
    can i create a type "void" with a String to have enough buffer.
    and then to make a type cast, for example "Locals.dataobject = ((data)Locals.buffer)"
    any ideas?
    thx for help

    Unfortunately there is no way to do type-casts in TestStand. What you could do is write a wrapper-dll in C, that has for example two parameters for both possible structs. The dll then takes one of the parameters, does the typecast and passes it on to your original dll.
    From TestStand you can pass the struct(or better container in the "TestStand language") you want to use to the accoridng parameter of the wrapper-dll, leaving the other parameter empty or with some default-value.
    Hope this helps!
    André

  • Error : oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.icx.por.schema.server.XXTBPoRequisitionLineEO of type Entity Definition not found

    Hi, while extending EO, we are getting error "oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.icx.por.schema.server.XXTBPoRequisitionLineEO of type Entity Definition not found". We have placed class and xml files in respective folder, imported customization and bounced the system but still error did not go. Kindly help to trace the issue.

    Can you elaborate how you deployed your custom code, were steps documented here followed ? Did you create a ADF library jar and copy it over to the application lib directory ? Please provide the exact steps done for deployment.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Help needed in data type casting

    I have a java program which will receive data and its type in the String format. During program execution, the data in the String data has to be converted into the respective data type and assigned to a variable of that data type so that it could be used in the program. Programmer may not know the type of data that the value has to be converted into.
    I really got struck up with this. This is a RMI application and one process node is sending the data to another node in the String format and the type of data it should get converted into so that it can be converted into the respective type and used for computation.
    Can you understand what I am asking for ....if you can pls help and it is highly appreciated

    I dont know whether i ahve expressed it correctly
    look at this code
    dataPacket sendtoNode = send.senDatatoNode(inputReq);
    String recnodnum = sendtoNode.nodeNum;
    String recvarnum = sendtoNode.varNum;
    String recvartype = sendtoNode.dataType;
    String recvalvalue     = sendtoNode.dataVal;
    int num;     int type;
    double result;
    // here in this case the result variable type is double
    if (recvartype.equals("int")){
              type = 1;
         result = Integer.parseInt(recvalvalue); will pose problem
         else
         if (recvartype.equals("double")){
              type = 2;
              result = Double.parseDouble(recvalvalue);
         else
         if(recvartype.equals("float")){
              type =3;
              result = Float.parseFloat(recvalvalue); will pose problem
         else
         if(recvartype.equals("Boolean")){
              if ((recvalvalue.equals("true")) || (recvalvalue.equals("TRUE")))
              type = 4;
              result = Boolean.parseBoolean(recvalvalue); will pose problem
         else
         if(recvartype.equals("char")){
              type = 5;
              result = (char)recvalvalue; will pose problem
    else
    if(recvartype.equals("String")){
         type = 6;
              result = recvalvalue; will pose problem
         else
         if(recvartype.equals("byte")){
              type = 7;
              result = Byte.parseByte(recvalvalue); will pose problem
         else
         if(recvartype.equals("long")){
              type = 8;
              result = Long.parseLong(recvalvalue); will pose problem
         else
         if(recvartype.equals("short")){
              type = 9;
              result = Short.parseShort(recvalvalue); will pose problem
         //forvarval varvalue = new forvarval();
         //varvalue.forvarval(recvartype, recvalvalue);
    // this has to be done after sorting the problem of type casting string result = recvalvalue;
    //result = value; //<this will surely give me a problem as i m assigning string to double>??
    send.host(result);
    System.out.println("result received and the result is " +recvalvalue );
    now i need to assign the converted string in to a variable and use in the compuation ..thts where the challenge n not in teh conversion process...

  • Al ejecutar adobe photoshop cs6 extended me aparece un mensaje de no se ha podido abrir un archivo de memoria virtual por que el archivo esta bloqueado y no se ejecuta la aplicacion

    Al ejecutar adobe photoshop cs6 extended me aparece un mensaje de no se ha podido abrir un archivo de memoria virtual por que el archivo esta bloqueado y no se ejecuta la aplicacion

    Are you able to get to the Performance preferences?  If so, check to make sure your Scratch Disk settings are valid for your current system configuration.
    It's possible you may need to reset your Photoshop preferences to defaults to restore operation.  This is how:
    Press and hold Control - Shift - Alt simultaneously (or Command - Shift - Option if on a Mac) immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be really quick - it will prompt you to confirm deletion of your current preferences, which will lead to the establishment of a fresh default set. If it does not prompt you, you haven't been quick enough to get the keys down.
    -Noel

  • Splitting and type casting huge string into arrays

    Hello,
    I'm developing an application which is supposed to read measurement files. Files contain I16 and SGL data which is type casted into string. I16 data is data from analog input and SGL is from CAN-bus data in channel form. CAN and analog data is recorded using same scan rate.
    For example, if we have 6 analog channels and 2 CAN channels string will be (A represents analog and C represents CAN):
    A1 A2 A3 A4 A5 A6 C1 C2 A1 A2 A3 A4 A5 A6 C1 C2 A1 A2 .... and so on
    Anyway, I have problems reading this data fast enough into arrays. Most obvious solution to me was to use shift registers and split string in for loop. I created a for loop with two inner for loops. Number of scans to read from string is wired to N terminal of the outermost loop. Shift register is initialized with string read from file.
    First of the inner loops reads analog input data. Number of analog channels is wired to its N terminal. It's using split string to read 2 bytes at a time and then type casts data to I16. Rest of the string is wired to shift register. When every I16 channel from scan is read, rest of the string is passed to shift register of the second for loop.
    Second loop is for reading CAN channels. It's similar to first loop except data is read 4 bytes at a time and type casted to SGL. When every CAN channel from scan is read, rest of the string is passed to shift register of the outermost loop. Outputs of type cast functions are tunneled out of loops to produce 2D arrays.
    This way reading about 500 KB of data can take for example tens of seconds depending on PC and number of channels. That's way too long as we want to read several megabytes at a time.
    I created also an example with one inner loop and all data is type casted to I16. That is extremely fast when compared to two inner loops!
    Then I also made a test with two inner loops where I replaced shift register and split string with string subset. That's also faster than two inner loops + shift register, but still not fast enough. Any improvement ideas are highly appreciated. Shift register example attached (LV 7.1)
    Thanks in advance,
    Jakke Palonen
    Attachments:
    String to I16 and SGL arrays.vi ‏39 KB

    OK, there is clearly room for improvement. I did some timing and my two above suggestions are already about 100x faster than yours. A few teeaks led to a version that is now over 500x faster than the original code.
    A few timings on my rather slow computer (1GHz PIII Laptop) are shown on the front panel. For example with 10000 scans (~160kB data as 6+2) my new fastest version (Reshape II) takes 14 ms versus the original 7200ms! It can do 100000 scans (1.6MB data) in under 200 ms and 1000000 scans (15MB data) in under 2 seconds.
    I am sure the code could be further improved. I recommend the Reshape II algoritm. It is fastest and can deal with variable channel counts. Modify as needed.
    Attached is a LabVIEW 7.1 version of the benchmarking code, containing all algorithms. I have verified that all algorithms produce the same result (with the limitation that the cluster version only works for 6*I16+2*SGL data, of course). Remember that the reshape function is extremely efficient, because it does not move the data in memory. I have some ideas for further improvements, but this should get you going.
    Message Edited by altenbach on 08-05-2005 03:06 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StringI16SGLCastingTimer.png ‏48 KB
    StringtoI16andSGLArraysMODTimer.vi ‏120 KB

  • Dynamic Type casting

    Can we dynamically type-cast an object reference passed to Object Clss to that specific class?
    Here is what I want to do.
    I am going to pass an object reference to a method, which has Object class as parameter to it, as shown below. Using getClass() or some other way, I want to dynamically typecast this reference to the original Class and call some method of this Class.
    void test (Object ref1){
    ((ref1.getClass())ref1).writeLog();
    By doing this, am I violating the basic Object Orineted rules?

    I mean, consider an hypothetical case (which is wrong
    from OO point of view) that there are suppose 10
    classes in my system. None of them related to each
    other, all are independent classes. But each one has a
    method called, writeLog(). Now I want to write one
    method which will be called by each of these classes
    (in some 11th class), which will have "Object" as a
    parameter. Now using the actual reference I want to
    call the corresponding writeLog() method.
    1 - Point out to management that the design is now officially broken.
    2 - Point out that if the design is not fixed then any solution that impliments the changes will cost more to maintain in the future and will likely lead to instabilities in the system (due to complexity.)
    3 - Implement one of the suggested solutions and make sure that you put in a lot of error checking and logging in the hacked solution.
    4 - Produce extensive documentation about the impact of changing any of the objects that you are relying on. Push it to anyone and everyone that might ever touch or even suggest changes to the code.
    Doing all of the above allows you to live stress free when the next revision breaks because someone didn't understand the implications of your hacked solution. You will be able to find the problem quickly and point out that it had nothing to do with your code but rather because someone else did not follow the complete documentation that you produced. And then when they complain that your solution was a hack you can point out that you explained that previously as well.

  • USE OF Type cast function ?

    can any one explain the use of type cast function with help of example please i am not able to understand the explaination given in ni.com site

    LabVIEW provides a function called Type Cast, which allows data to pass through it unchanged while the type of the wire changes. Please refer to the given link which elaborates on the type cast function with required instances.
    http://zone.ni.com/reference/en-XX/help/371361H-01​/glang/type_cast/
    In case of any clarifications needed, do revert.
    Regards,
    Sahil Singla
    Applications Engineer | National Instruments
    (Give Kudos to good Answers and Mark it as a Solution if your problem is Solved)

  • Latitude & Longitude string to number through type cast

    In my application i am saving the data ( 78°20.54 E )coming from gps in tdms format in the pc.
    There are many such strings to save , so as this takes more memory to save the data in pc i want to type case in floating  and save .
    I am typecasting But i am not able to retrive the same data 78°20.54 E while again type casting .
    Please see the attached vi.
    Regards
    Naga
    Attachments:
    TYPE CAST.vi ‏8 KB

    Nagaa,
    You might want to better explain exactly what you want.
    Do you want "78°20.54" to be 78.3423 (I'm assuming after the ° is minutes)?  Then have E be positive and W be negative?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Unable to import the user certificate into the Oracle Wallet Manager

    Hi, I am configuring the External Authentication plugin using the password filters. i am using the version 10.1.0.5.0 version of Oracle Wallet manager inorder to do that i am enabling the SSL mode. to enable the SSL mode i followed the some steps in

  • WBS Issue

    Dear Experts, We have created Project PO with following taxes(VAT 5%, Excise Duty 10.3% and Freight)and simultaneously done the GRN for the same,but the issue is that when we are checking the budget in CJ33 only BasicExcise dutyFreight value is assig

  • ANN Half-hour webinars (free): Hypertext in FM Generated Files (Apr 4)+Popup menus in PDFs (Apr 11)

    (free; no fluff, no hype, no nonsense; starting 9am PT) Hypertext in FrameMaker Generated Files (TOC/IX) -- Thursday, April 4 For more info or to register: https://www3.gotomeeting.com/register/474393614 Popup menus in PDFs (with FrameMaker-to-Acroba

  • Source System changes from SAP System to BI Warehouse on ECC activation

    We are in the process of building a new development environment from an existing development environment. After copying from system backup in the new development environment we performed BDLS to map to new source systems. At this point of time the so

  • Oracle Express Edition, newer versions?

    Hello, I believe there is only one verion of the Oracle 10g Express edition? Is there going to be also an 11g Express Edition coming out? Or is this the one and only version and after that there is nothing coming anymore?