Marshall and Re-Marshall in FML32 buffer

Hi,
Can anyone tell me how to Marshall and Re-marshall a structure in an FML32 buffer.
Thanks in advance
Krishna

You can use tusc to show you the actual msgsnd/msgrcv system calls, so
that you can see the actual message sizes. You will also be able to see
the file I/O, if file transfer is being used.
Tuxedo does not write to the ULOG every time it uses file transfer, just
when it thinks it could have sent it as a message, but that fails for
some reason.
Fused() will show you the amount of data that will be transmitted. Add
an extra 360 bytes for the Tuxedo header. If you are sending to a
different machine type, the buffer will be encoded, and be much larger.
     Scott Orshan
Per Lindström wrote:
Hello everyone,
I'm currently trying to figure out how to configure the [IPC] queues and kernel
parameters regarding MSG* for a high-volume application. As one of the steps I'm
trying to identify the size of the input message for a certain service. I know
it's a rather big message, but I could use some more specific information.
Using TMTRACE I get the impression that a certain message is 95960 bytes:
TRACE:at: { tpservice({"MY_SERVICE", 0x0, 0x401a6278, 95960, 0, -1, {0, -2, -1}})
and there's also a call to tptypes() (checking for FML32 buffer type) that's also
returning 95960.
However, if this message is larger than 64K (msgmax, msgmnb), wouldn't I be getting
the fearsome message "will try file transfer" in the ULOG?
My question is if what TMTRACE shows is the size AFTER re-indexing of the FML32
buffer, and, in that case, if there is any way of seeing the "transmitted size"
(which I believe is unindexed) of the message? There are some ia trace messages
regarding tpalloc() of rpcrqst buffers - are they of any use in this situation?
This is running Tuxedo 6.5 on HP-UX 11.00.
Any input on this welcome!
Best regards,
/Per

Similar Messages

  • Creating a Java content tree from scratch and then marshal it to XML data

    Hi,
    After binding a schema using JAXB binding, I wrote a class to create a Java content tree from scratch and then marshal it to create an XML document. To see if the resulting xml document is correct, I opened it in XMLSpy and tried to validate it against the original schema.... I got the following error:
    "Unable to locate a reference to a supported schema kind (DTD, DCD, W3C Schema, XML-Data, Biz Talk) within this document instance"
    Then I realized that the generated xml document didnot contain the following for the root element:
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xsi:schemaLocation="....."
    i.e, the XML Schema Instance namespace and the schema location.
    How do I get these attributes incorporated into the XML document generated during the marshal process.
    Thanks.

    How do I get these attributes incorporated into the XML document generated during the marshal process.
    Add xmlns:xsi and xsi:schemaLocation attributes to the root element in the schema.
    <xsd:attribute name="xmlns:xsi"  fixed="http://www.w3.org/2001/XMLSchema-instance"/>

  • Marshalling and Unmarshalling on xml

    is this the one of the way of parsing xml??

    If by "marshalling and Unmarshalling on xml" you mean converting between XML and Java, then yes, JAXB can be a viable alternative to SAX or DOM, depending on your requirements.
    It is a simpler solution if it's the binding that you actually need.
    If Java representation of XML isn't relevant and you're only concerned about firing events when a particular XML artifact is detected, then SAX would be more indicated.
    Take the good habit of listing your actual requirements before considering a range of options.

  • Jabx xsd to classes and xml marshalling issues due to two namespaces

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

  • Marshaling and xml generation

    Hi
    Can any one pls tell for generating an xml file from fetching data from database do i have to use marshalling.
    Why exactly marshalling is being used.?How is DomBuilder useful and diferent from marshaller?
    Thanks
    Swaroopa

    Thanks for ur reply.
    Let me make myself clear ...
    I have to generate a flat xml file by pulling the data from db.
    Now i want to use a dom builder where as one if my collegue who is fresher wants to use castor's marshalling process to generate xml.
    I know the concept of marshalling which is used for serilaizing the object graph so that it is unmarshalled on the other end.But iam unable to convince her.
    It would be great if u can give me 2 lines answer which is convincing enough to make her understand.
    Thanks

  • JAXB marshaling and unmarshaling

    I used JAXB to generate nine classes (one is simply a type-safe enum) to correspond to my XML DTD. I then wrote the code to instantiate the root and some child elements which are all added to the root content. Then I am able to call validate() and marshal() on the root element and produce the desired XML. Great!
    The trouble is that I'm having difficulty using these classes to unmarshal the XML that they validated and wrote. Has anyone else seen this? In some cases, the call to unmarshal() returns the root element with no content (e.g., "<myRoot/>"). In other cases, I get an InvalidContentException on a nested element that repeats (e.g., "Expected an end tag for a "fooList" element, but found a start tag for a "foo" element").
    Has anyone else seen this? I've been through the bug parade and didn't catch this mentioned there.
    Thanks!
    Mark

    Here's the code for the problem I'm running into. Is anyone able to reproduce the problem and diagnose it? I must be doing something wrong because the Checkbook example works just fine for me. Please help!
    The obvious trouble here is that Test4.java does not correctly unmarshal the XML that it writes to temp.xml. Where have I gone wrong?
    Thanks,
    Mark
    -------- begin cut (xyz.dtd) --------
    <!ELEMENT Id ( #PCDATA ) >
    <!ELEMENT Name ( #PCDATA ) >
    <!ELEMENT Amt ( #PCDATA ) >
    <!ELEMENT Transaction ( Id, Name, Amt ) >
    <!ELEMENT Transactions ( Transaction+ ) >
    <!ATTLIST Transactions count NMTOKEN #IMPLIED >
    --------- end cut (xyz.dtd) ---------
    -------- begin cut (xyz.xjs) --------
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xml-java-binding-schema version="1.0-ea">
    <options package="xyz"/>
    <element name="Transactions" type="class" root="true">
    <attribute name="count" convert="int"/>
    <content>
    <element-ref name="Transaction"/>
    </content>
    </element>
    <element name="Name" type="value"/>
    <element name="Amt" type="value" convert="int"/>
    <element name="Id" type="value" convert="int"/>
    <element name="Transaction" type="class">
    <content>
    <element-ref name="Id"/>
    <element-ref name="Name"/>
    <element-ref name="Amt"/>
    </content>
    </element>
    </xml-java-binding-schema>
    --------- end cut (xyz.xjs) ---------
    -------- begin cut (Test4.java) --------
    import xyz.*;
    import javax.xml.bind.*;
    import javax.xml.marshal.*;
    import java.io.*;
    import java.util.Date;
    import java.util.Random;
    public class Test4 {
    private static Random rand = new Random();
    public static void main(String[] args) {
    // need file to work with...
    try {
    File f = new File( "temp.xml" );
    FileOutputStream fout =
    new FileOutputStream( f );
    // make some transactions
    int TransCt = 1;
    Transactions txns = new Transactions();
    java.util.List transactions = txns.getTransaction();
    for (int i=0; i < TransCt; i++) {
    Transaction t = makeBogus();
    transactions.add( t );
    txns.setCount( TransCt );
    txns.validate();
    txns.marshal( fout );
    fout.flush();
    fout.close();
    FileInputStream fin = new FileInputStream( f );
    Transactions t = new Transactions();
    t.unmarshal( fin );
    t.validate();
    t.marshal( System.out );
    catch (Exception e) {
    e.printStackTrace();
    private static Transaction makeBogus() {
    String[] names =
    { "Bob", "Larry", "Tom", "Ted", "Bill",
    "Gail", "Louise", "Sam", "Erin", "Wilma" };
    Transaction transaction = new Transaction();
    // calculate transaction id...
    int range = Integer.MAX_VALUE / 3 * 2;
    int Id = rand.nextInt(range);
    transaction.setId( Id );
    // pick a name
    transaction.setName( names[rand.nextInt(10)] );
    transaction.setAmt( rand.nextInt( 100 ) );
    return transaction;
    --------- end cut (Test4.java) ---------

  • JAXB marshal and unmarshal

    hello,
    i have written some code to retrieve data from an XML file and mapped the data and display the mapped data in a new XML file, but i am able to display the mapped data in an MSdos window by running ANT, after this i am unable to write the displayed data in to XML file.
    Input XML file holds --- Firstname(Hello) and
    Lastname(World)
    my MSdos display data ----------- Hello World
    is in this way
    I want the above out put in to XML file
    if any body know this help me.
    Thank you.

    IMHO these classes are not meant to be serialised, the XML produced is the medium that is tranmitted between programs. The XMLB classes are available at both ends to do the marshalling/unmarshalling.I dissagree, xml is just an interface to the outside world, so to speak. I'm working with a project that uses jini and rmi, I really don't need the extra hasle of writting custom serialization classes.

  • CORBA MARSHAL and DATA_CONVERSION errors

    Hi,
    I'm developing a CORBA application and everything was well till now. I have to bring a lot of information from a database. When I run the method local (without ORB) everything goes well but when I do it through ORB it fails. I get two errors:
    org.omg.CORBA.MARSHAL: Unmarshaller requested more data after end of stream vmcid: SUN minor code: 207 completed: No
    org.omg.CORBA.DATA_CONVERSION: vmcid: OMG minor code: 1 completed: No
    I can bring all kind of information except this. Does JDK's ORB have problems transporting huge sequences of structs? What`s the reason for this? How can I solve it? I'm currently using 1.4.
    Any comentary can be useful
    Thanks

    I got it,
    I changed "string" for "wstring" in the IDL file.

  • Marshall and Serialization

    Hello There:
    Can any one please educate me the difference between marshaling an object and serialize an object. They looked the same to me. they both flat the object to a readable format and maintain the state of the object. What's the difference, why both terms are used. Where do I find the definition of 'marshal'? Thank you very much!
    -RM

    Please search the web for general questions. But we'll let you slide this time. Here's what my search turned up:
    http://forum.java.sun.com/thread.jspa?threadID=616673&messageID=3436144
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=009261
    ...if you want more just google:
    http://www.google.com/search?q=marshalling+vs.+serialization

  • 2 RMI Questions:"RMI and Marshalling" and...........

    Hi,
    Its not a programming Q. but its a conceptual Q. In all most all the websites related to RMI, I have seen refrence of Marshalling in the context of data encoding. In socket programming, we also do data transfer but there is no Marshalling? What is the reason of Marshalling in RMI? Is it because of Java to Java communication and for socket we use TCP/IP so we leave the Marshalling to the Network Interface Card??
    Zulfi.

    Thanks for your reply. Ok Marshalling is clear but I have to run a program and then we will discuss more about Marshalling. However after reading the doc specially about stubs
    The caller invokes a method on the local stub which is responsible for carrying out the method call on the remote object.
    In one other doc, I read the samething about dispatcher. Each machine has a local dispatcher . The client communicates with local dispatcher which then communicates with remote dispatcher and then returns a communication channel back to client via local dispatcher. So is it that these stubs and skeletons are basically the dispatcher component?
    In one other doc., http://cs.gmu.edu/~setia/cs571/slides/rmi-proj.pdf , I found that there is no dispatcher component on the client side? Which is correct?
    Zulfi.

  • File marshalling and unmarshalling exception

    Hello All,
    I just want to know that if I have an object which is serialized and another object which is not serialized then it is mandatory to serialize that object in the current example
    For example
    ArrayList is serialized by default.
    So can this particular example run.
    class ABC {
    void go(){
    ArrayList a = new ArrayList();
    a.add(new ABC());
    Do I need to serialize ABC also ?.
    Thanks and regards,
    Sachin

    Why it has to be serialize. If ArrayList is
    serializable then can't it hold the ABC object with
    it ?. It can hold it but it can't serialize it.
    The concept is dead simple really. If you want to Serialize a class then it must implement Serializable. It doesn't matter what the class is inside of or how many classes you have or anything else. Each and every class you want to serialize must implement Serializable.
    Means seems I am confused with serialization.
    Does anyone have a good tutorial on serialization ?.I don't think you really need a tutorial for a straightforward concept like this but http://java.sun.com/docs/books/tutorial/essential/io/providing.html

  • Sychronize AO/AI buffered data graph and measure data more than buffer size

    I am trying to measure the response time (around 1ms) of the pressure drop indicated by AI channel 0 when the AO channel 0 gives a negetive single pulse to the unit under test (valve). DAQ board: Keithley KPCI-3108, LabView Version: 6.1, OS system: Win2000 professional.
    My problem is I am getting different timed graph between the AI and AO channels every time I run my program, except the first time I can get real time graph. I tried to decrease the buffer size less than the max buffer size of the DAQ board (2048 samples), but it still does unreal time graph from AI channel, seems it was still reading from old data in the buffer when AO writes the new buffer data, that is my guessing. In my p
    rogram, the AO and AI part is seperated, AO Write buffer is in a while loop while AI read is not. Would that be a problem? Or it's something else?
    Also, I am trying to measure data much larger than the board buffer size limit. Is it possible to make the measurement by modifying the program?
    I really appreciate any of your help. Thank you very much!
    Best,
    Jenna

    Jenna,
    You can modify the X-axis of a chart/graph in LabVIEW to display real-time. I have included a link below to an example program that illustrates how to do this.
    If you are doing a finite, buffered acquisition make sure that you are always reading everything from the buffer for each run. In other words, If you set a buffer size of 5000, then make sure you are reading 5000 scans (set number of scans to read to 5000). This will assure you are reading new data every time you run you program. You could always put the AI Read VI within a loop and read a smaller number from the buffer until the buffer is empty (monitor the scan backlog output of the AI Read VI to see how many scans are left in the buffer).
    You can set a buffer size larger than the FIFO
    buffer of the hardware. The buffer size you set in LabVIEW is actually a software buffer size within your computer's memory. The data is acquired with the hardware, stored temporarily within the on-board FIFO, transferred to the software buffer, and then read in LabVIEW.
    Are you trying to create a TTL square wave with the analog output of the DAQ device? If so, the DAQ device has counters that can generate a highly accurate digital pulse as well. Just a suggestion. LabVIEW has a variety of shipping examples that are geared toward using counters (find examples>>DAQ>>counters). I hope this helps.
    Real-Time Chart Example
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E95556A4E034080020E74861&p_node=DZ52038&p_submitted=N&p_rank=&p_answer=&p_source=Internal
    Regards,
    Todd D.
    National Instruments
    Applications Engineer

  • Quicktime and itunes will not open - buffer overrun in quicktime

    I cannot open Itunes. It says it needs quicktime. quicktime will not open. says buffer overrun. reinstalled both itunes and quicktime. both used to run prior to updates. Help.

    Quicktime was working on my Vista computer up until a short time ago. I believe one of the Microsoft updates crippled it. I have looked at several forums and read the other threads on this site and from what others have described I really believe now that Microsoft did this with one of their updates. There are many problems with Vista all due to Microsoft trying to force developers to use only their products. Unfortunately they are squeezing us customers really hard.

  • Increase UDP sending size over 64k bytes and get error -113,sending buffer not enough

    Dear all,
    I have a case that I must send a data over 64k bytes in a socket with UDP . I got a error-113 shows "A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram was smaller than the datagram itself.".I searched for this issue and got the closest answer as below:
    http://digital.ni.com/public.nsf/allkb/D5AC7E8AE545322D8625730100604F2D?OpenDocument
    It said I have to change buffer size with Wsock.dll. I used the same mathod to increaes the send buffer to 131072 bytes by choice optionname to so_sndbuf (x1001) and give it value with 131072 and it worked fine without error. However I still got an error 113 while sending data with " UDP Write.vi ". It seems UDP write.vi reset the buffer size? Are there any other things cause the error?
    I attached example code. In UDP Sender.vi you can see I change send buffer size to 131072 and send date included a 65536 bytes data.There is also a UDP receiver.vi and there is some missing VI which you can get from the LINK. But it's not necessary.
    Attachments:
    UDP Sender.vi ‏14 KB
    UDP Receiver.vi ‏16 KB
    UDP_set_send_buffer.vi ‏16 KB

    The header for a UDP packet includes a 16 bit field that defines the size of the UDP message (HEADER AND DATA)
    16 bits limits you to a total size of 65635 bytes, minus the header sizes; a minimum of 20 bytes are required to define an IP packet and 8 bytes for UDP leaving an effective data payload of 65507
     bytes.
    LabVIEW is not the issue...
    http://en.wikipedia.org/wiki/User_Datagram_Protocol#Packet_structure
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Many report columns (70+) and ORA-06502 (Small char buffer)

    Hello!
    I have a big problem with my few tables and Oracle APEX. I have 2 big tables with 75 and 108 columns and If i try to translate a column headings in report (tabular form) that appear a ORA-06502 Error (Small char buffer). If i don't change column order and headings that all ok.
    I thought that it beacuse of incorrect columns datatype but if i set column heading in report to "None" or if i set to null part of column heading (30-40%) that all be ok with report.
    This problem not appear with other more small tables
    This is message from debug mode:     
    Debug Screenshot

    TexasApexDeveloper wrote:
    You are running into an issue of having too many columns on a report.. Is there any way to reduce the # of columns you are trying to report on/display?
    Thank you,
    Tony Miller
    Ruckersville, VAYes, i can split my big tables to 2 parts, but it not best way for our application...
    There is no other problem solution?
    Thank you for fast reply.

Maybe you are looking for