How to store 2C array to a singl binary file

Hi
I have to store multiple waveforms output that is each 1D array to a single binary file. how do i do this.
i can store 1D array to binary file and retrieve it by reading the binary file and plotting the waveform. but i am not able to store 2D array to the single file. how do store many 1D array in one binary file,
Thank you. Hema

(We would also need to know your LabVIEW version. If you have a very old version, things would be quite different.)
As Smercurio_fc already mentioned, the option to "prepend array size" would make things much easier here, because then you would read it as a single 2D array.
Here's how that would look like. This is probably the recommended solution, just for simplicity reasons.
Not prepending the size is more useful if you write the data in increments, but later want to read it as one.
Message Edited by altenbach on 11-15-2008 09:02 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SaveRestore2D.png ‏21 KB

Similar Messages

  • Can any body tell me How to store string array in a array

    Can any body tell me How to store string array in a array

    YesNot quite sure what question you're answering but here's how to copy an array.// given a String[] strArr
    // pre Java 6
    String[] newStrArr = new String[strArr.length];
    System.arrayCopy(strArr, 0, newStrArr, 0, strArr.length);
    // post Java 6
    String[] newStrArr = Arrays.copyOf(strArr, strArr.length);Edit:
    Or in fact use clone() as mark pointed out.
    Message was edited by:
    dwg

  • Writing multiple arrays to a single xml file at seperate times without overwriting the previous file?

    Hi my name is Dustin,
    I am new to labview and teststand... I am trying to right multiple arrays of data to a single xml file. I can do this with a cluster but I have to create a variable for each of those arrays (21 arrays) and I was hoping to use the same variable for each array. Meaning I obtain my array of data write it to an xml file then replace that array in that variable with a new array and then call up my VI that writes that array to an xml file and write it to the same xml file underneath the first array without overwriting it. Attached is my VI I created to write an array to an xml file. Again I am wondering if there is a way to write multiple arrays to a single xml file at different times without overwriting the previous xml file.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Write_to_XML_File.vi ‏11 KB

    Hi dlovell,
    Check the attached example. I think it may help you.
    Regards,
    Nitz
    (Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved) 
    Attachments:
    Write to XML.vi ‏17 KB

  • How to save multiple forms to a single postscript file

    Hi All,
    We have a requirement where we have to print 10 to 20 forms as a batch print each day.
    What this means, is that at the end of the day, a single print operation will print all the forms.
    The Client is expecting us to create a single postscript file for all these forms.
    I need someone to explain to me the postscript functionality and how it is possible to save the information of 20 forms in a single postscript file.
    Thanks,
    Urmila

    HI,
        We can use more than one Form in a Driver Program. It's Possible to Print also. Use this Functional Modules
    Open_Form.
    Start_Form.
    Write_Form.
    End_form.
    Start_form
    Write_form
    Start_form.
    Close_form.
    Revert Back if u have any clarification.
    Regards,
    Saran

  • How to Display number of Records in Single XML  file

    Hi,
    In My SAP MDM DataManager I have a table called Location it contains 3 Fields. And  Having 10000 Records in that.
    When I am trying to make xml file through MDM Syndication Manager it is creating 10000 xml files.
    I don't want to that much files and I need all the Records in a Single XML    File, how can I do that in MDM Syndication server.
    I have changed xsd:element attribute maxoccurs="unbound"
    but there is no property like that.
    I am using SAP MDM 5.5 with SP 4.
    how can I see all my records in single XML file.
    Thanks and Regards,
    Ashok.

    hi,
    To syndicate all XML records in single XML file:
    follow the steps:
    1. u201CIn the Destination Items pane, click on the  root ( for product repository  - Product).
    2. u201CIn the Properties pane, for the Repeatable XML Node field, uncheck its u201CInheritu201D flag and check its flag in the u201CValueu201D column as shown below.  This will cause all records to be syndicated into one XML file.u201D
    3. In the item mapping tab:
    In the Source Items page, select the root node,
    . u201CIn the Destination Items pane, select the Products node and map it,
    and do the remaining source and destination fields mapping,
    now you will get all records in single XML file.
    hope this may help you,
    Regards,
    Srinivas

  • How to use aggregator to create a single swf file from multiple files

    Hi everyone,
    I am working on the client's requirement where i have to create a SCROM 2004 based video. Its basically a PPT inside the captivate file. And it has around 175 slides in the file. Some of the slides have animations, voiceover. I am facing a problem during PUBLISHING the file into single SWF file format. Whenever I Publish the slides as SWF, it creates number of SWF files, Swf skin of the player and other manifest, Scorm 2004 files.
    I want only one single SWF file in which every slide should be incorporated in it. Dont know, why it is happening? I tried aggregator for this also, but it didnt worked... The Skin.swf has been easily added and no other files are adding. It shows me an error: "Name.swf is not a AS3 Captivate file ....."
    I am new to this. Please help me out as I have a very short deadline for this.
    Thanks and Regards

    Maybe you misunderstand: this is a user forum, not online help by Adobe staff.
    Sorry, but if you are that impatient, you'll have to pay for online support. You post a question and expect to have answers within minutes?
    Lilybiri

  • How to Find the Latest Version of Cluster Binary Files available at Microsoft website

    How we can find the latest version of Cluster binary files available for download at Microsoft Website and which Cluster Binaries should be update to make the Cluster services stable healthy.

    @AnatolySV : I believe you need to put some efforts to understand what he is asking.
    You may find the latest version of Cluster Binaries by entering the required keywords for Microsoft Failover Clustering. Some of the main Cluster binaries(Keywords) are:-
    Clusres.dll (For Cluster Resources like Disk, Application or Service, Cluster IP)
    Clussvc.exe (Cluster Service)
    TCPIP.sys (If the Storage is presented to the cluster Nodes via ISCSI Network).
    MPIO.sys / ISCSIprt.sys (If we are using Multipathing for the disks to be presented).
    RHS.exe (Resource Host Subsystem)
    So, the Answer to your question is: You need to enter the binary name "Clusres.dll" and mention the Operating System you want to install your binaries to "Windows Server 2008 R2 Sp1" on Bing (Preferred for Microsoft Hotfixes). In Result you will get the
    list of hotfixes for clusres.dll
    You need to try this multiple times in order to get the latest version as Microsoft does not have a single Link.
    Hope this answers your query. Feel free to leave a message incase you need more help.
    Maybe) 
    But hey, you`ve got +1 from me for clarification) 
    Anyway, I still think that the initial question could be more clear and exact. 

  • How to store internal table value in single variable

    hi gurus,
    i have 3 value in int table , so want to store the value of int table into single variable of type string.
    how it is possible

    hmmm, your requirement is kinda weird and you could have given us a bit more info, but well lets start.
    Why is your requirement weird?
    Well an internal table kinda is a variable itself, or rather a set of variables which together make up for a line type of your table.
    So you have a value you already have in a variable and now want to store it in anotherone? Seems weird.
    What type is your internal table?
    Do you have those three values in one record or in  three records which only hold one value each?
    Which of your values do you want to store in another variable?
    Anyway, make a F1 on the "READ TABLE" statement, this should definiteley help you.
    The "LOOP AT WHERE" statement could as well help if there should occur probrlem using READ TABLE.
    /edit DAMn i was posting this while you gave us more info.
    So still the question stays if you got your three values in one record or in three records.
    DATA: lv_variabl_containing_all      type char100.
    loop at itab into wa.
      concatenate lv_variabl_containing_all wa-value into lv_variabl_containing_all seperated by space.
    endloop.
    after the loop you now got all your values in lv_variabl_containing_all.
    That is for the case you got three records.
    other case would be
    Read table itab into wa index 1.
    concatenate wa-value1 wa-value2 wa-value3 into lv_variabl_containing_all.
    Edited by: Florian Kemmer on Apr 16, 2010 12:59 PM

  • I have problem how to store the array?

    for(i=0;i<empRec.length;i++)
              if(empRec.getCategory()=='F'||empRec[i].getCategory()=='H')
                   if(empRec[i].getCategory()=='F')
                   Movie interesting[]=new Movie[2];
                   interesting[i].setCategory('F');
                   System.out.println("Category:"+interesting[i].getCategory());
    has a exception like this Exception in thread "main" java.lang.NullPointerException
            at Movie_video.main(Movie_video.java:146)
    this is my part of the coding... i want ask how to Separate out the movie numbers of all the movies in the Fiction and Horror categories and store them in an array ?interesting?.
    Edited by: williamku87 on Mar 31, 2008 12:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    It seems the problem is situated in the line +interesting.setCategory('F');+
    You instantiated the array, but not the object within the array. A possible solution could be:
    for(i=0;i<empRec.length;i++)
              if(empRec.getCategory()=='F'||empRec[i].getCategory()=='H')
                   if(empRec=new Movie[2];
    interesting[i] = new Movie();
                   interesting[i].setCategory('F');
                   System.out.println("Category:"+interesting[i].getCategory());
    }But very unusual to add only one object to an array of 2. What are you aiming for using the array +interesting+?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to store measurement data in a single database row

    I have to store time-data series into a database and do some analysis using Matlab later. Therefore the question might be more a database question rather than Diadem itself. Nevertheless I'm interested if anyone has some best practices for this issue.
    I have a database which holds lifecycle records for certain components of same nature and different variants. Depending on the variant I have test setups which record certain data. There is a common set of component properties and a varying number of environmental measurements to be included. Also the duration of data acquisition varies across the variants.
    Therefore having tables appears to be non-optimal solution for storing the data because the needed number of columns is unknown. Additionally I cannot create individual tables for each sample of a variant. This would produce to many tables.
    So there are different approaches I have thought of:
    Saving the TDM and TDX files as text respectively as BLOB
    This makes it necessary to use intermediate files.
    Saving the data as XML text
    I don’t know yet if I can process XML data in Matlab
    Has anybody an advice on that problem?
    Regards
    Chris

    Chris
    Sorry for the lateness in replying to your post. 
    I have done quite a bit of using a Database to store test results.  (In my case this was Oracle DB, using a system called ASAM-ODS)
    My 2 Cents:
    Three functions were needed by users for me.  1) To search and find the tests,  and  2)  To take the list of Tests and process the data into a report/output summary. 2) If the file size is large, then being able to import the data quickly into analysis tool speeds up processing.
    1) Searching for test results.  This all depends on what parameters are of value for searching.  In practice this is a smaller list of values(usually under 20), but I have had great difficulty getting users to agree on what these parameters are. They tend to want to search for anything.   The organization of the searching parameters has direct relationship to how you can search.   The NI Datafinder does a nice job of searching for parameters, so long as the parameter data are stored in properties of Channel Groups or Channels. It does not search or index if the values are in channel values.
    Another note: Given these are searchable parameters, it helps greatly if these parameters have a controlled entry, so that the parameters are consistent over all tests, and not dependent on free form entry by each operator. Searching becomes impossible if the operators enter dates/ names in wildly different formats.
    2) Similar issue exists if put values into databases. (I will use the database terms of Table and column(Parameter) and Row (instance of Data that would be one test record.)
    The sql select statement, can do fast finds, if store the searchable parameters in rows of a table. Where would have one row for each Test Record.   The files I worked with have more than 2000 parameters.   Making a table that would store all of these, and be able to search for all of these, makes a very large number of rows. I did not like this approach, as it has substantial maintenance time, and when changes are made, things get ugly quick.
    3)This is where having the file format be something that the analysis tool can quickly load up is beneficial.   Especially if the data files are large. In DIAdem's case, it reads TDM,TDMS files very quickly into the dataportal.   It can also read in the MDF or HDF files, but these are hierarchical structures that require custom code to traverse the information, and get the information into dataportal to use in Analysis /reporting. (Takes more time to read data, but have much more flexibility in the data structure than the two level tdm/tdms format.)
    My personal preferences
    I would not want to put the test data into a Table row. Each of the columns would be fixed and the table would be very wide in columns.
    >
    I personally like to put the test Data into a file, like TDMS, MDF, or HDF and then the database would have a entry for the reference to the attachment. The values that are in the database is just the parameters that are used for test Searching, either in datafinder or in sql commands in the user interface.
    Hopefully these comments help your tasks some.
    Respectfully,
    Paul
    tdmsmith.com

  • How to store an array in a session

    hi everyone
    iam getting problem while storing an arrray in a session can any one help me thanks in advance

    What kind of array is it?
    You can store them in a session only if the objects in the array are serializable.

  • How to write an array and a scalar to file?

    I would like to write my data to a file but am having trouble approaching the problem. In the file I would like to write both the x and y values of my data points in two columns, however, the y data is in an array and the x data is made up of 3 pieces of information: an initial x, an x incremented value, and the number of points in my data sample. How could I go about this?
    Solved!
    Go to Solution.

    The number of points is redundant, because it will be the same as the "other" array.
    Here's what I usually do:
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ramper.png ‏13 KB

  • How to manage multiple articles in a single InDesign file ?

    Hello all !
    Sorry if this seems stupid (it does to me) but I'm new and can't find this info in the ressources.
    I have designed a 24-page magazine in InDesign.
    I've created an alternate layout for iPad (digital publication) and everything is in order.
    But of course alle the magazine pages/articles are in the same InDesign file used to create the original print magazine.
    How can I easily separate these article in another way than manually creating on InDesign document per article !?
    Because if I create a folio and add the open InDesign document as an article, it has the whole 24 pages in it and doesn't let me select which page/article goes where.
    Thanks for your precious help, I can't wait to have a first projet to distribute to our readers.
    Antoine

    Okay so I have to create an alternate layout for each page/article ?
    Currently I have all 24 pages (A4) for the print version and 24 pages in an alternate layout for the iPad version

  • How to store data in KM from a JSP file

    Hi
    In our portal we have a JSP file with a text view where the user can add notes/things to remember etc. I need somewhere to store that information. I don't want to store it directly on the portalserver or the backendsystem. Is there a way to store the information of each user in KM from the jsp page? Is there a service/api I can use ?
    Thanks
    /Jakob

    Hi
    I used following code to upload file in km using wd java:
    /*Get an object of current Portal user */ IWDClientUser wdClientUser =
    WDClientUser.getCurrentUser(); com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
    /*create an ep5 user from the retrieved user
    IUser ep5User =WPUMFactory.getUserFactory().getEP5User(sapUser);
    ResourceContext context = new ResourceContext(ep5User);
    /*Give the path to KM in the variable path */
    RID rid = RID.getRID(path);
    IResourceFactory factory =
    ResourceFactory.getInstance();
    ICollection folder = (ICollection) factory.getResource(rid,context);
    Using the upload element we can upload the files to a location in the server drive
    /*temperory location for writing */
    String location = u201Cgive the location hereu201D;
    String fileName = location+fileelement.getFilename();
    file = new File(fileName);
    /Create an output stream for writing to the temperory location/
    FileOutputStream out = new FileOutputStream(file);
    out.write(fileelement.getFiledata());
    out.close();
    /From the temporary location read the file using an input stream/
    FileInputStream fin = new FileInputStream(fileName);
    fin.read();
    /*Using this input stream we can write to the repository
    Content content = new Content(fileelement.getFiledata(),fileelement.get) */
    Content content = new Content(fin,"byte", -1);
    IResource newResource = folder.createResource(fileelement.getFilename(),null, content);

  • How to store configuration data from clusters to TDMS files

    It is a common use case to write measured data to a TDMS file, while
    the configuration information for your test is stored in a cluster (and
    that cluster might contain additional clusters, arrays etc). TDMS does not have
    native support for clusters and some other data types.
    This LAVA discussion thread
    contains a VI library that breaks clusters of arbitrary complexity down
    to their basic elements and writes their contents to TDMS properties
    either at file, group or channel level. It also contains code that
    reads your data back from TDMS and recreates the original cluster type.
    Please review the whole thread in order to understand what to expect and to make sure you have the latest version.
    Herbert

    Change
    while (rs.next()) {
         System.out.println(rs.getString("piece_id") + "," + rs.getString("piece_num")+ "," + rs.getString("piece_ver"));
         FileOutputStream fileobj = new FileOutputStream(f);
         DataOutputStream writeInsideFileObj = new DataOutputStream(fileobj);
         writeInsideFileObj.writeBytes(rs.getString("piece_id"));
         writeInsideFileObj.writeBytes(",");
         writeInsideFileObj.writeBytes(rs.getString("piece_num"));
         writeInsideFileObj.writeBytes(",");
         writeInsideFileObj.writeBytes(rs.getString("piece_ver"));
         fileobj.close();     //here my data is replacing and only last row is storing..Kindly help me it is very urgent
    }to
    FileOutputStream fileobj = new FileOutputStream(f);
    DataOutputStream writeInsideFileObj = new DataOutputStream(fileobj);
    while (rs.next()) {
         System.out.println(rs.getString("piece_id") + "," + rs.getString("piece_num")+ "," + rs.getString("piece_ver"));
         writeInsideFileObj.writeBytes(rs.getString("piece_id"));
         writeInsideFileObj.writeBytes(",");
         writeInsideFileObj.writeBytes(rs.getString("piece_num"));
         writeInsideFileObj.writeBytes(",");
         writeInsideFileObj.writeBytes(rs.getString("piece_ver"));
    fileobj.close();- Roy

Maybe you are looking for

  • Cannot backup Iphone 4 to my iTunes after reimaging laptop.

    I own a Dell, unfortunately, and recently got entriely overcome with viruses to the point where no software could help me get rid of them. In order to solve this problem I reimaged my laptop (which consists of only saving my music and documents on an

  • How to handle HTTP-POST encrypted data for ECC Using proxy or RFC

    I have a scenario HTTP-POST ->PI->ECC.sender is HTTP Post  send encrypted data i need to handle the data and stored in to SAP ECC  with out decrypt using PI .what should i take for receiver  can i use inbound proxy or RFC  and how can handle the encr

  • Dynamic web-client for WebService

    Hi All, I want to create a generic Web Client for various in-house webservices. The page to prepare and submit SOAP request to the WebService should be dynamically formed according to the WSDL, so that I dont have to write new html/jsp page for each

  • What is required for CF COM Support?

    Hi, I am using a CF9 trial and am trying to instatiate a COM Server that I wrote. I can get some servers to work, while others will not. What does CF require of a COM Server? Does CF require any Implemented Categories be set when the server is regist

  • SD facility

    Hi! I have found this code right here: http://www.sap-basis-abap.com/sapab025.htm It is very useful particular for SD purposes . Please can somebody try to fix the error to get it working. There is an internal table missing. Regards Ilhan select * fr