Axis DIME attachments

Hi everybody...
I'm sending a PDF file as response from an axis (1.3) web service using SOAP with attachments, however *.NET* clients won't be able to read it.
So i was wondering if there is a way to send the attachments as DIME (supported by microsoft), then I could add an input parameter to my web service; the clients would indicate whether they wish either DIME or MIME attachment through that parameter.
Thanks.

hi sergio
i hat a very similar problem today with axis running on jetty
2 suggestions which may help you:
use activation.jar and mail.jar provided by sun appserver SUNWappserver/lib (those jar-files are bigger than those you get if you follow the download instructions on axis happiness page)
place them in the webapps/axis/WEB-INF/lib directory
(i hat them in jetty/ext first)

Similar Messages

  • Handling SOAP DIME attachments with Flex

    Hi,
    Is possible to get SOAP DIME attachments with Flex?
    I'm trying to get thumbnails of pages returned in jpeg by a
    WebService request that has that thumbnail as DIME attachment on
    its response, but don't know how to handle it with Flex.
    Thanks
    Aleix

    Please,
    Is anybody able to answer this question?
    Thank you so much.
    Aleix

  • Java Web Service that accepts DIME attachments?

    Hi guys here's my situation..
    I am required to build a Java webservice that can take a file attachment and various other parameters(I have the parameters bit sorted, and can access them fine using .net's WSE). I need to access this webservice and send the file attachment via a .Net web application. Can anyone please help me by pointing me in the right direction? I've spent hours now trying to google examples, but I cant' really find anything that gives me a clear example on how to create a web service in Java that integrates well with .net when dealing with file attachments. I see things such as Axis (JAX-RPC), SOAP with Attachments, etc.. which one is recommended for this situation?
    for what its worth, I'm using Tomcat 5.5, Eclipse 3.1 with the lomboz plug in and jdk 1.5.5.
    would appreciate some code samples, tutorials, etc..
    Also.. .net is more my comfort zone at present, although I did do some J2EE work for a while about 2 yrs ago, so apologies for not being entirely up to scratch with current java WS technologies.
    Thanks in advance!!..

    CF doesn't support DIME "natively", but Apache Axis does, and that's the library that CF uses. So, you'll have to drop to Java to do this.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Changing axis in waveform chart

    How can I set the x-axis to be something other than time. I want to measure all of my inputs vs. a cycle count. Is there a way to change the axis?
    Attachments:
    boolean count.vi ‏12 KB

    Sorry, I posted the one from yesterday. If I change the name in the property node, will it just change the name? I need it to not be time, and instead be another input, the cycle count. Now that the correct vi is posted, you can see what I'm talking about. Thanks
    Attachments:
    boolean count.vi ‏66 KB

  • Plot Secondary Y-Axis in Excel

    I have two series of data and am trying to plot them to a primary Y-Axis and a secondary Y-Axis in Excel using ActiveX.  Right now I have a file in Excel that I am using to test my code that has the values 1 through 20 in the first three columns and is saved as test.xlsx in the filepath C:\Templates\test.xlsx.  I am able to open this file and plot the data in an XY scatter chart and name the primary x and y axes, but cannot figure out how to plot one of the data series against the secondary y-axis.
    I created a macro in Excel and viewed the code it created to make a secondary y-axis.  This is the code:
    Sub Macro1()
    ' Macro1 Macro
        ActiveSheet.ChartObjects("Chart 1").Activate
        ActiveChart.SeriesCollection(2).Select
        ActiveSheet.ChartObjects("Chart 1").Activate
        ActiveChart.SeriesCollection(2).AxisGroup = 2
        ActiveSheet.ChartObjects("Chart 1").Activate
        ActiveChart.SeriesCollection(2).Select
    End Sub
    When I try to do this with ActiveX, I can select SeriesCollection(2), but when I choose AxisGroup, it is only a read function and I cannot write a 2 to it.
    Is there another way to plot one of these data series against a secondary y-axis.
    Attachments:
    test.vi ‏31 KB

    The attached image was the way that I would have thought I was supposed to create the secondary axis by writing a 2 or xlSecondary to the AxisGroup, but it does not work because AxisGroup is Read Only and I cannot write to it.
    http://msdn.microsoft.com/en-us/library/aa141701%28office.10%29.aspx
    If I create a secondary axis using a macro, I can act upon that axis.  However, I am not able to create the secondary axis without a macro, which is what I would really like to do.
    Ryan
    Attachments:
    ActiveX.jpg ‏9 KB

  • DIME on J2EE

    It seems that WLS does not by itself support DIME attachments. Unfortunately
    we find ourself in the position to implement SOAP with a DIME attachment
    according to a given WSDL, as we wil be one of several parties offering the
    same standardized prescribed webservice. (And yes: most of the other parties
    are hooked on .NET, which is one of the reasons why this approach has been
    adopted in the first place...)
    What are the options open to us, if we wish to implement this Webservice on
    WLS? (We value ease of use, but do not wish to spend much money, as BEA will
    probably catch up supporting DIME in WLS and Weblogic Workshop in the near
    future)
    TIA.
    Ad van Ommen
    Agis Zorgverzekeringen
    [email protected]

    Thanks again Michael,
    I guess its weekend time for me to implement and test this approach....
    You have given me a headstart, but as a near freshman to (BEA) Webservices,
    Workshop and J2EE filtering and DIME, it may take me more then the few hours
    I have available this weekend.
    Would it be a good idea to write a short note or whitepaper on this subject
    for the BEA community?
    (It seems relevant to a larger public then just you and me)
    Finally I think you're dead right again about transferring large files, but
    it's not in my hands. The size of 10 Mb I mentioned is the exception though.
    The size will be far less then 1 Mb in most cases.
    Regards
    Ad vanOmmen (first name is just Ad, but with such excellent advice, you can
    call me anything ;-)
    [email protected]
    "Michael Wooten" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi Ad van,
    Yep! It's that simple, but the devil is always in the details :-)
    You'll need to create a HttpServletRequestWrapper and ServletInputStream,because
    you'll need to rewrite the contents before you let it go to the respectiveweb
    services Servlets in WLS and Workshop. Basically, you'll need to:
    1. Change the Content-type header to text/xml (using the methods on theHttpServletRequestWrapper),
    >
    2. Throw away everything but the contents of the DIME record with the SOAPmessage
    in it, and
    3. Change the Content-length header (using the methods on theHttpServletRequestWrapper).
    >
    If you don't make the above changes, WLS (and Workshop) will spew forth"stack
    trace obscenities", and generally be a little unhappy :-)
    I would use disgression with attachment sizes though. Neither DIME, MIMEor HTTP
    was designed for transfering huge files. That's why they created FTP (andGFTP)
    The Java DIME package I told you about uses streaming, and will take careof all
    the chunking for you.
    Anyway, I think BEA is working on a "more elegant solution", as we speak.I talked
    to Adam Bosworth a while back (about 2 months ago), about support for DIMEwith
    both WLS and Workshop, and he was definitely all for it. Especially when Ishowed
    him the differences in efficiency (and performance) with SwA using MIMEand DIME
    Regards,
    Mike Wooten
    "Ad van Ommen" <[email protected]> wrote:
    Thanks Michael,
    Your solution strikes me as beautifully simple and effective. Just to
    be
    sure that I understand it right, I will formulate it in my own,
    relatively
    layman's terms. Please correct me if I'm wrong!
    (The description is for my situation with an incoming DIME request)
    1.
    Intercept the DIME request message through a J2EE Servlet Filter
    2.
    Read the DIME message with the library you mentioned
    2.1
    The first DIME record is the SOAP message and is passed on
    (The usual WLS or Workshop processing will apply to it later).
    2.2
    Subsequent DIME records are attachments.
    They can be stored as files.
    At no moment in time, the whole record needs to be in memory
    (I expect records of up to approximately 10MB!)
    2.3
    SOAP message and files are related through the UUID.
    So from the SOAP message, the filename can be derived
    3.
    The business logic of the webservice can find the attachments through
    the
    UUID.
    After using it a file can be deleted.
    4.
    The response is simply passed by the Filter Servlet.
    (If it really is this simple, one wonders why it's not offered by the
    weblogic platform.)
    Regards Ad
    [email protected]
    "Michael Wooten" <[email protected]> wrote in message
    news:[email protected]...
    Hi Ad van,
    You might want to check out the LGPL-licensed Java DIME package at
    http://onionnetworks.com/developers/index.php
    I implemented a Servlet Filter (w/HttpServletRequestWrapper andHttpServletResponseWrapper
    classes) that uses the generator and parser in that package, to doDIME
    with both
    Workshop and WLS web services. It only took me a weekend to write andtest
    it,
    so I think it may fit your requirement to "not spend much money, asBEA
    will probably
    catch up in the near future" :-)

  • Weblogic webservice with DIME

    hi,
    I want weblogic webservice with DIME.
    I not know weblogic 8.1 webservice support DIME type.
    Please asked me this qustion and i'm not achivement this goal.
    Some hint, some reference document or some source file send to me.
    thank your advice.

    Hi Shon,
    A word of caution:
    DIME is not a widely-adopted encoding format for doing SwA (SOAP with Attachments).
    This fact is somewhat borne out by how Microsoft has positioned it as "one of
    the encoding formats" supported with their WS-Attachment note (or recommendation,
    or whatever).
    That said, you may be able to use a JAX-RPC Handler to create/process DIME attachments,
    with WLS and WLW web services. If not, the next best bet is to use a Servlet filter,
    in front of the Servlet that serves as the router for a WebLogic Web Service.
    Neither of these approaches is "simple", but they aren't "rocket science" either.
    You'll need to download the Java DIME Library from Onion Networks (http://onionnetworks.com/downloads/dime-1.0.3.zip),
    to do either of these.
    Regards,
    Mike Wooten
    shon <[email protected]> wrote:
    Hi Bruce Stephens.
    Thank your advice.
    I visited advice url, But i'm not understand that how to use Java Dime
    Libray v1.0.3. If you have some example source or some reference file,
    send to my e-mail address.
    Thank your advice

  • Axis and EchoAttachment.java

    Hi,
    I am running the example from axis "samples\attachments" folder.
    I got error message:
    java.io.IOException: No support for attachments
    AxisFault
    faultCode: {http://xml.apache.org/axis/}Server.userException
    faultString: java.io.IOException: No support for attachments
    faultActor: null
    What did I miss?
    Thanks /dan

    include javamail.jar in classpath

  • Invoking a service using BLOB data syntax

    Hi All,
    When invoking LC using BLOB the syntax is:
    //Create a BLOB object
    BLOB inDoc = new BLOB();
    //Populate the BLOB objects remoteURL data member
    inDoc.remoteURL = urlData;
    //Invoke the EncryptDocument process
    BLOB outDoc = encryptClient.invoke(inDoc);
    How the syntax goes when my service has also an input string variable,
    and how to handle the result if it also returns output string
    variable?
    Thanks in advance!

    Hi Jasmin,<br /><br />I've copied this code from "Invocation API quick starts" document,<br />see the full code:<br /><br />import com.adobe.idp.services.*;<br />import java.io.File;<br />import java.io.FileOutputStream;<br />import java.io.InputStream;<br />import java.net.URL;<br />import javax.activation.DataHandler;<br />import javax.activation.FileDataSource;<br />import org.apache.axis.attachments.AttachmentPart;<br />public class InvokeDocumentEncryptDime {<br />public static void main(String[] args) {<br />try{<br />//create a service locator<br />EncryptDocumentServiceLocator locate = new<br />EncryptDocumentServiceLocator();<br />  //specify the service target URL and object type<br />URL serviceURL = new<br />URL("http://localhost:8080/soap/services/EncryptDocument?blob=dime");<br />//Use the binding stub with the locator<br />EncryptDocumentSoapBindingStub encryptionClientStub = new<br />EncryptDocumentSoapBindingStub(serviceURL,locate);<br />encryptionClientStub.setUsername("administrator");<br />encryptionClientStub.setPassword("password");<br />//Get the DIME Attachments - which is the PDF document to encrypt<br />java.io.File file = new java.io.File("C:\\Adobe\\Loan.pdf");<br />//Create a DataHandler object<br />DataHandler buildFile = new DataHandler(new FileDataSource(file));<br />//Use the DataHandler object to create an AttachmentPart object<br />AttachmentPart part = new AttachmentPart(buildFile);<br />//get the attachment ID<br />String attachmentID = part.getContentId();<br />//Add the attachment to the encryption service stub<br />encryptionClientStub.addAttachment(part);<br />//Inform ES where the attachment is stored by providing the attachment id<br />BLOB inDoc = new BLOB();<br />inDoc.setAttachmentID(attachmentID);<br />BLOB outDoc = encryptionClientStub.invoke(inDoc);<br />//Go through the returned attachments and get the encrypted PDF document<br />byte[] resultByte = null;<br />attachmentID = outDoc.getAttachmentID();<br />//Find the proper attachment<br />Object[] parts = encryptionClientStub.getAttachments();<br />for (int i=0;i<parts.length;i++){<br />AttachmentPart attPart = (AttachmentPart) parts[i];<br />if (attPart.getContentId().equals(attachmentID)) {<br />//DataHandler<br />buildFile = attPart.getDataHandler();<br />InputStream stream = buildFile.getInputStream();<br />byte[] pdfStream = new byte[stream.available()];<br />stream.read(pdfStream);<br />//Create a File object<br />File outFile = new File("C:\\Adobe\\EncryptLoan.pdf");<br />//Create a FileOutputStream object.<br />FileOutputStream myFileW = new FileOutputStream(outFile);<br />//Call the FileOutputStream objects write method and pass the pdf<br />data<br />myFileW.write(pdfStream);<br />//Close the FileOutputStream object<br />myFileW.close();}}}<br /><br />The process I wish to invoke has 2 input parameters:<br />string variable  and a document,also this process returns a string and document as output.<br /><br />Do you have any example how to invoke it and handle its result?<br /><br />Thanks!

  • Web Service API v.3 overview

    Post Author: yura.tkachenko
    CA Forum: Nsite
    There are a lot of calls available in Web Service API v.3, here is list of functions:
    login (create WS API session which is valid 15,30,60 minutes -
    actually depends of company settings). Return back to user generated
    unique sessionId, serverUrl (usually you need pass serverUrl as a new
    endpoint of WebService). But we are recommend do not use serverUrl better use cookie-based approach (on client side you need to tell your soap stack to maintain cookies).
      logoff - finish active session (requires sessionId parameter)queryObject - return EnterpriseObject data (instances). Using that call you can query headers, detail sections, apply pagination for both headers, details. Also you can query such administrative objects: Company (company information - as one user can belong only to one company so at any time you can query only one record), User (list of users settings), Attachment (using that object you can query any attachment assigned with any Enterprise Object). insertObject - add new record to EnterpriseObject, User (only if you are administrator in the company), Attachment (add new attachment)updateObject - edit existing objects: Enterprise Object(headers, details), User (change your profile, edit profile of other users if you are administrator), Company (edit company settings), Attachment (edit attachments).deleteObject - delete : Enterprise Objects or edit Enterprise Objects (deleting row in detail section), Attachment (delete attachments). Nsite doesn't support deleting such entities from system as: User, Company.copyObject - copy exiting Enterprise Object (instance) to another instace with all nested (details, attachments, header fields).describeObject - retrieves full meta description of Enterprise Object (header fields, detail sections, relationships with other EOs). Also this method retrieve description about administrative objects: Company, User, Attachment.describeSystem - retrieves company settings (Company object). You can simulate this call using queryObject operation.getObjectsList - retrieves list of available EnterpriseObjects and administrative objects.getUsersList - retrieves list of company's users.describeUser - retrieves user specific information (User object record). You can simulate this call also using queryObject operation.getCompanyLookups - retrieves available lookups for current company.getLookup - get lookup values and general information about lookup by lookup path. Usually lookup path is assigned to drop-down in Enterprise Object definition. So sometimes very useful to know what values acceptable by EnterpriseObject1 in drop-down1.createLookup - add new lookup to system. This lookup will be available automatically in the Application Designer or others tools.updateLookup - change lookup values etc.uploadAttachment - assign new attachment with "Attachment" component of EO or with "Attach" button (global attachment). This function using DIME attachments - so you need to be sure that your soap stack support this method. You can upload attachments also using insertObject (using Attachment object), but this call work faster for big files.downloadAttachment - download attachment(assigned with "Attachment" component or "Attach" button) using DIME attachments. The same behavior can be reproduce with queryObject call, but this call work faster.describeRouting - get information about any routing in the nSite system. You can get information like: routing status, list of participants, etc.routeEO - start routing mechanism for Enterprise Object.approveEO - approve routing. Current user should be approver.rejectEO - reject routing. Current user should be approver.stopEO - stop routing. Current user should be initiator of routing.We have such limitation of our API:Doesn't support running Business Rules if something was changes in EO instance using calls: insertObject, updateObject, deleteObject.Doesn't support Enterprise Objects which is marked as "version enabled" in Application Designer.Doesn't support forwarding of routings.Doesn't support to modify EnterpriseObject structure (definition).Doesn't support manipulations with Roles Based Access Component.

    Post Author: yura.tkachenko
    CA Forum: Nsite
    Hi, saxotechpm
    saxotechpm:
    Is there support for inserting an object that has lookup relationships to other objects:
    Using the WSAPI I have tried to insert an object that has a lookup relationship to another object for pulling a number of fields.
    The insert works if I set the appropriate object id for the linker eo on the lookup button field, however none of the data fields from the linked eo are drawn into the object.
    I have also tried running an update with the following syntax. The update works on non linked fields  but the linked object data elements are never updated.
    The following NEOQLsyntax is used:
    update eo_60700 set button_select_contact=721238,button_select_account=721237 where Id=731033;
    721238 = an instance of a contact object
    721237 = an instance of an account object
    731033 = the target instance object being updated - the expectation is that this object would get the data elements linked from the two other instances.
    Thanks
    Yes, we do support of linked Enterprise Objects in WSAPI for detail sections and for header fields. But due to some internal issues headers are not  work properly. But now everything is OK. It has been fixed and it will take some time while you will be able to use it on production. But this fix will be delivered in the nearest patch. So in the October you can use this feature already on production.
    Thanks for your request and sorry for any inconveniece.

  • 3d graph plot from .txt

    Hi
    I have some .txt datas which I want to visualize. I need one of the wavelenght columns as x axis; and the last column OE1_Channel1 as z axis. Last I have ~100 .txt which should build the y axis.
    I dont know how to go on, "delete from array" seems to be not enough, and I have no idea how to build this plot from several .txts

    This is what I did befor, but I haven´t discovered yet how to make one row the y axis and how to make several txts the x axis.
    Attachments:
    txt to 3d-graph.vi ‏55 KB

  • How to make a contour (3D) plot with motor control and DAQ?

    Hi,
    I have a instrument sitting on a movable slider. What I am doing right now is :
     a) Go to position 1 and wait until position reached.
     b) Measure the spot.
     c) Go to next position.
    What I want to do:
     a) Move the device and measure continously at the same time.
    Question: Is there a strategy, how to bring those to data streams (positions, measured data) together with not so much effort?
    System: I am using Labview 2014. Data aqcuisition rate is 20Hz.
    I can think of: collect data in a queue, manually setting timestamps and comparing them afterwards. But I guess, there is an easier solution existing already somewhere... Any advice?
    I can not easily support correct VI´s, because they require hardware connected. I will build a simulator in the meantime

    I made a small simulation Vi. But as I understood now, Labview can only scale the indices and not have a real matrix of data points with different distances.... So I need to have equal time distances and equal movements over the surface. I thought, I should track the actual position and give that arbitary parameters as an axis.
    Attachments:
    simulation of intensity graph synchronize.vi ‏18 KB

  • How to have smooth fade effect between the two images via XML

    I have my xml gallery working fine, all i need is to have a smooth fade effect between the two images, right now they are changing with a jerk. Can somebody help me getting this effect with my code. Any help is much appreciated.
    function loadXML(loaded) {
        if (loaded) {
            xmlNode = this.firstChild;
            image = [];
            link = [];
            thumbnails = [];
            thumbnailsOn = [];
            total = xmlNode.childNodes.length;
            for (i=0; i<total; i++) {
                image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                link[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                thumbnailsOn[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                thumbnails_fn(i);
            firstImage();
            loopPlay();
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("data.xml");
    thumbnail_mc.attachMovie("prev", "prev_new", 1);
        thumbnail_mc.prev_new._x= -20;
        thumbnail_mc.prev_new._y= -1;
    thumbnail_mc.attachMovie("next", "next_new", 4);
    thumbnail_mc.next_new._y= -1;
        //thumbnail_mc.next_new._x= -30;
    thumbnail_mc.prev_new.onRelease = function() {
        prevImage();
    thumbnail_mc.next_new.onRelease = function() {
        nextImage();
    p = 0;
    this.onEnterFrame = function() {
        filesize = holder.getBytesTotal();
        loaded = holder.getBytesLoaded();
        //preloader._visible = true;
        if (loaded != filesize) {
            preloader.preload_bar._xscale = 100*loaded/filesize;
        } else {
            preloader._visible = false;
            if (holder._alpha<100) {
                holder._alpha += 10;
    function nextImage() {
        if (p<(total-1)) {
            p++;
            if (loaded == filesize) {
                holder._alpha = 0;
                holder.loadMovie(image[p], 1000);
                //desc_txt.text = description[p];
                picture_num();
    click._alpha=0;
    click.onRelease = function() {
        getURL(link[p], "_blank");
        loopStop();
    function HoldImage() {
        nextImage();
        clearInterval(myTimer2);
        loopPlay();
    function checkImageState() {
        if (p==total-1) {
            p = -1;
        if (loaded==filesize) {
            clearInterval(myTimer1);
            myTimer2 = setInterval(HoldImage,3000);
    function loopPlay() {
        myTimer1 = setInterval(checkImageState, 3000);
    function loopStop() {
        clearInterval(myTimer1);
        clearInterval(myTimer2);
    function prevImage() {
        if (p>0) {
            p--;
            holder._alpha = 0;
            holder.loadMovie(image[p], 1000);
            target_mc._alpha = 40;
            picture_num();
    function firstImage() {
        if (loaded == filesize) {
            holder._alpha = 0;
            holder.loadMovie(image[0], 1000);
            picture_num();
    function picture_num() {
        current_pos = p+1;
    function thumbnails_fn(k) {
        thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
        tlistener = new Object();
        tlistener.onLoadInit = function(target_mc) {
            target_mc._x = (target_mc._width+10)*k;
            target_mc.pictureValue = k;
            target_mc.onRelease = function() {
                p = this.pictureValue-1;
                nextImage();
            target_mc.onRollOver = function() {
                this._alpha = 40;
            target_mc.onRollOut = function() {
                this._alpha = 100;
        image_mcl = new MovieClipLoader();
        image_mcl.addListener(tlistener);
        image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);       

    I have a center of energy program similar to the one used by IMAQ. I have attached an example using your data. I first found the center of the entire image. Then I split the array in two and found the centers of each half. That gives you the position of the two spots. This program won't work if the spots are too close to each other or are separeted in the other axis.
    Attachments:
    distance between two spots one direction.vi ‏1096 KB
    Center of energy calc.vi ‏40 KB

  • How to find image centroid & seperation between two images

    How to find image centroid and seperation between the images,
    i have 2 images pixel values as shown in the picture i should calculate the centroid of the image & find the distance of seperation of the image.
    help me how to do this
    I am using LabView 7.1
    thanks
    sk 
    Attachments:
    New Folder.zip ‏736 KB

    I have a center of energy program similar to the one used by IMAQ. I have attached an example using your data. I first found the center of the entire image. Then I split the array in two and found the centers of each half. That gives you the position of the two spots. This program won't work if the spots are too close to each other or are separeted in the other axis.
    Attachments:
    distance between two spots one direction.vi ‏1096 KB
    Center of energy calc.vi ‏40 KB

  • VISA READ STRING and GRAPH

    I have some basic questions:
    1. I have Serial communication from PXI to device. When I read the string of 26characters, continously, on Hypertermianl. It is fast enough. But when I read in the VI program, simple VISA read.
    The reading is very slow. The VISA read one character at a time and take time to make a string of 26characters. Visa read is very slow, Why?
    The baud rate is 1152K and rate is 32 updates per second, which is super fast in hyperterminal but very slow in Labview VI.
    2. Second I  need the extract the some data from my string at different positions on a string of 26 characters. I already made the subVI for reading it but since the VISA read is slow to read it gives wrong values from the string.
    So I thought I can make an array and ask the subvi to read the the second (i.e n-1 value) 26 characters which are ready rather than first one which is being formed. But there is no arrays for string.How can I do that? also my concern is if I read n-1 value, it is not real time value.
    :8 -0582                                n value Visa read slowly
    :000000 -0076U 0008 -0582   n-1 value
    :000000 -0074U 0008 -0582  n-2 value
    :000000 -0075U 0008 -0582  n-3 value
    3. I will extract the 74, 76, 77 etc say the value as AA. I want to plot the graph of value AA versus Seconds? How can generate Seconds on my X-axis?
    Attachments:
    TSS1-porem-final4.vi ‏16 KB

    Thank you for suggestion!
    Now I am receiving data continuosly.
    1. As mentioned previously, I wish to plot the heave value on real time basis, I saw the shipping example, modified my VI.
    The plot is not correct, as the heave value increases and decreases linearly but there is strange graph.
    2. Also I have one more question, actually if I want to find out the heave value, device once moved up 10cm and brought back to 0 level again. Its not instant as the design of the device says it takes 2 secs to get back to the zero state again. The heave is read from 10, 9, 8,7 6, 5, etc. It takes 10 steps to come back to normal value, zero value.
    I just need to plot the 0 and 10cm or may be  next might be -5cm, I need to capture the final data. How can i do that?
    Attachments:
    TSS1-porem-final4-1.vi ‏16 KB
    MRU-TEST3-1.vi ‏20 KB

Maybe you are looking for

  • Error message when try to download itunes

    Trying to download itunes again to my windows laptop. It appears to be loaded having gone through the set up procedure but keeps coming up with a runtime error message in a box. It says; 'Microsoft Visual C+ Runtime Library Runtime Error! Program: C:

  • Power View SharePoint - Y axis not show percentage

    I am using a line chart. The Y axis is showing decimal (0.95) instead of percentage (95%). Is this a bug? I notice it will display % if i pick a matrix table instead.

  • FB60 reference feild

    hi , In FB60 Reference feild,  suppose we have given a vendor invoice no 1 , then again we make another document for the same invoice for the same vendor , if we give by mistakely the same vendor invoice no. then will the system give error msg..... r

  • My recent poor experience with EE, I know will get deleted.

    Ok so for nearly 2 years I have been an EE pay monthly customer. Since January I have been stuck with a 5 pound global minute add on. (mainly because their site and app keeps telling me there's a problem, and I haven't called them to cancel it, I hav

  • Why can't I use rs.deleteRow() method to delete a record?

    the code as such�F <% String sql="select id,name from test"; ResultSet rs = jconst.executeQuery(sql); rs.next(); out.print(rs.getInt("id")); try rs.deleteRow(); catch (SQLException e) out.print("can't delete record"); return; out.print("success"); %>