Contents of lvm file

Hello,
My apologies ... I fear this is a very newbie question and I'm just missing something basic.
I have created some .lvm files without headers.  The contents are similar to the following:
0.000000    -107.735124     1201.923077 29750000.000000
1.000000    -107.762989
2.000000    -107.572127
3.000000    -107.399742
4.000000    -107.235805
5.000000    -107.362865
0.000000    -106.956888     1201.923077 29750000.000000
1.000000    -108.601099
2.000000    -109.851508
3.000000    -109.635430
4.000000    -109.490798
5.000000    -108.779298
0.000000    -106.965030     1201.923077 29750000.000000
1.000000    -107.329684
2.000000    -107.370099
3.000000    -107.303000
4.000000    -107.492371
5.000000    -107.958117
My question is, what are the two extra values that sit at then end of the first line of each new segment (1201.923077 29750000.000000)?  I've read over "Specification for the LabVIEW Measurement File (.lvm), Version 1.0" but I'm still unsure of those two values.
Thank you in advance!

DF Gray,
Thank you so much for your input.  I'm attaching a file to show you the configuration settings I used with my Write To Measurement File vi.  Thanks again!  I really appreciate your help!
Attachments:
WriteToMF.PNG ‏263 KB

Similar Messages

  • Read several 2D Arrays out of lvm file

    Hello,
    for my data aquisition, I join three 1-D Arrays to a 2D array. I then save several of these 2D Arrays to a lvm file, until it exceeds 500kb. Here I ues the "write to measurement" express VI. When I'm trying to read the data I encounter a problem:
    the "read from measurement file" express vi, seems to only give out the first 2D Array, that is in the file! Each 2D Array holds 75 values for every channel. I checked the content by dragging and dropping the file to Excel and the notepad. I can then see all the arrays, I saved in the file, and not only the first one. I tried to adjust the options in the "read from measurement file" VI as well, but nothing seems to help.
    I attached an example lvm file and my reading VI.
    It would be very nice if somebody could help
    Simon
    Solved!
    Go to Solution.
    Attachments:
    Datenauswertung.vi ‏52 KB
    example file.zip ‏68 KB

    Hi
    I'm not really sure which way you want to read out the data.
    Do the different 2D Array all belong together, meaning that the 2nd array is just a continuation of the first?
    If this is the case, you could select "Segment Headers">"No Headers" in the "Write to measurement file" VI.
    Then, in the "Read from measurement file" select: Read generic text file, and set the parameters accordingly.
    Use the "Read File now" function to test the set parameters.
    Further you may have to change the indices for the Index Array in your VI.
    However, this method has the obvious drawback of loosing the header information.
    Alternatively, you can save the data in a tdms file, instead of a lvm file. Here the headers are handled better.
    Select "One header only" in the write to measurement file. When your then read out the data, it automatically will read out all data.
    And you keep the information of at least the first header.
    If each 2D Array should be read out separately, you should use a different approach. Please let me know, if this is the case and I will explain further.
    Kind regards,
    Corinne Doppmann
    Applications Engineer
    National Instruments

  • LVM File formatting

    Hello there.
    I'm using the Write Measurement File-Express VI to save my measured data to a lvm file.
    The thing is, that I want to change the headers in the lvm file and also change the header.
    I attached a screenshot of a part of my code.
    As you can see, there's one big wire for the signal, consisting of different doubles and I want to name each of them in the lvm correctly.
    I also want to add the content of the string parts to the heading of the lvm file.
    I already read, that there's a way to do that by conventional file I/O, without using an express vi. But I'm still a bloody beginner for LV and don't really know how to accomplish that.
    Can anyone help me?
    Thanks in advance!
    Message Edited by rouven84 on 12-09-2008 12:38 AM
    Message Edited by rouven84 on 12-09-2008 12:39 AM
    Message Edited by rouven84 on 12-09-2008 12:41 AM
    Solved!
    Go to Solution.
    Attachments:
    screen.jpg ‏46 KB

    Express VIs were designed to make life easier, but the LVM ones, in particular, are not that easy to modify.  That said, you can change your column headers using the information in this post.  You can add text information using the Comment input, but this is a single line of text.  You could possibly add a Special Block, but this would require writing it to a file and then using the LVM VI to append to that file.  If you are interested in pursuing the special block, check out the LVM Specification for how to construct it.
    I realize I have just given a sketchy outline.  If you are interested in pursuing any of the methods, let us know and we can post more details.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Problem reading and ploting large lvm files

    Hi everyone,
    I have some large .lvm files that I need to process offline; however, the files are quite large and I am regulalry getting "out of memory" messages (7 channels sampled at 4k for 15 minutes or so, maybe longer)... I have managed to reduce the rate this message occurs by first converting the lvm files to tdms, then potting the tdms data, but I still get the "out of memory" error message on somewhat regularly.. .I also down sample the data back to 2k, but that dont help a great deal.
    Any suggestions on how I can handle this data? I have read a number of online resources related to managing large data sets (e.g. http://www.ni.com/white-paper/3625/en/) but I am not sure how to implement these suggestions.
    Basically, I want to view the content of the ensure file... Then use queues to extract data subsets as selected into another while loop that will handle the analysis/processing (producer/consumer)... I do this regularly for smaller files; so the issue is mainly how to managing the large files... Decimating the data for the intial whole data plot may not work as I have spikes 10ms in width in some channels that I need to see in the main plot.
    Any help would be appreciated.
    Many thanks,
    Jack

    jcannon,  I did some quick math and I dont think you should be reaching the memory limit of LabVIEW.  However, it is possible that you are running out of contiguous memory on your computer while the program is running.  See this for a quick breif about contiguous memory.  
    If I were you I would try to reduce the number of times LabVIEW coppies information in memory.  Use show buffer allocations to find out where in your code you are making coppies of memory.  
    best of luck!

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How do I display the next segment of an LVM file on a graph?

    I have built an application which reads in an LVM file containing 16 waveforms. I am taking 1000 samples at 1kHz. The capture may last for up to 3 minutes, so I generate a sizable file. When I read this file back and display it I only get the first segment of 1000 samples (1 second). Generally this is fine, but I want to be able to select to view the other segments as well. I have been attempting to use the "Read Measurement File" express vi.
    I have also tried to put the "Read Measurement File" in a while loop until I hit EOF and tied it to an "Append Signals" express vi before feeding it into the graph. This allowed me to see the last segment of my capture.
    I understand that the amount of data I am trying to display would be too much for the graph, but isn't there some way I can point to a segment and display it? The perfect answer would be to grab the timestamps of the segment headers in my file and populate a listbox. (I am generating this file with headers for each segment.) Then I could scroll through the listbox and select the "second" that I want to examine. Then I need the "selected second" to display on the graph. I suspect that this is possible because I am already pulling the waveform names from the file and feeding them into a listbox so I can select which waveform(s) I want to examine.
    Any Ideas?
    technomage

    Hi there,
    Have you considered using the TDM file format instead of the LVM format? With TDM you specify parameters for your file and your channels. When you want to read data from the file you can extrac data based on those parameters. So you could construct a search that extracts the data from a particular time, or all the data that was acquired in a 10 minute period for example.
    There are a few VIs you would have to become familiar with to do this (the datalog VIs are located in a palette on the File IO palette), but it would probably be easier for you to use these then to construct the file yourself and then program in all the search parameters.
    Here are some resources with more information on the TDM format:
    TDM Data Format
    Introduction to LabVIEW Data Storage VIs
    They should help you decide if you would like to use this format or stick with the LVM format.
    Sarah
    Applications Engineer | National Instruments | UK & Ireland

  • How to save the RichTextBox Content in Text file

    hI ,
    I NEED TO SAVE THE RichTextBox Content in text file ? 

    If this IS a LabVIEW question, here's an example of how to load a rich text file (to help if you don't know how to get a rich text in LabVIEW).
    If you have a Rich Text Box, you can use the invoke method "SaveFile" to match the function you linked to.

  • How to change the column header/channel name in an LVM file?

    Hi all,
    I made a VI (see attached JPG) that reads 2 voltages, but after calculations and other processes, ends up writing 6 columns of data to an LVM file (7 if you count the time).
    I have read in other posts that you can change the name of each signal so that the header of each column in the LVM files doesn't just say "untitled". However, as you see in my code, some signals are numeric (double) and one is a logic (1 or 0), so there is no way to edit the waveform properties of those signals (since they are not waveforms).
    Any ideas?
    Thanks!
    Attachments:
    untitled3.JPG ‏40 KB

    I would suggest looking at this existing post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=175554
    I'll further mention that in the loop, for each channel you want to set the name of, the attribute name for the name of the channel is "NI_ChannelName".  The example in the thread above takes advantage of the fact that "NI_ChannelName" happens to be the first one defined.  I think it would be more robust to not bother reading the existing attributes, and instead just write the "NI_ChannelName" attribute with whatever new value you want.

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • Problems with displaying read data from a .lvm file

    Hi all.
    I aquire data with the PCMCIA card 6036E. I aquire online in Labview 7 and store the data in a .lvm file. When i try to display the same data i aquired before with the "read .lvm file" express vi, the waveform chart redraws itself after an undefined time, sometimes it redraws faster and sometimes it takes longer. WHY? i have only one header per aquisition and if i restart the aquisition a new file is written! I tried almost everything. Is this a bug from labview 7?
    I really appreciate your help.
    best regards,
    Bernd

    Hi Khalid,
    Here is a simplified version of my VI and also 2 .lvm files from the logged data. Sorry for the size, but I aquire with a sample rate of 20 kS/s and my main frequency is only 0.3 Hz. In the 6MB file I aquired a little more than 3 periods. When you run the VI with this file at the beginning it redraws very often and very fast, then after some time it draws about 1 period and then it redraws again and so on. I want that the hole data from this file is displayed at once. The 900kB file is aquired with 10kS/s and about 1.5 periods. This is the last size the displaying is working with. You think it is possible that the VI only works until 1MB? But my data usually is much bigger than that. I hope you can use the data because it is
    zipped, but otherwise it wouldnt be possible to post it.
    Thank you very much for your help, I really appreciate it!
    Best regards,
    Bernd
    Attachments:
    simplified_VI_for_offline_data_display.vi ‏79 KB
    2004-07-01_Messung9.zip ‏191 KB
    2004-07-01_Messung4.zip ‏680 KB

  • How do I read my wave form data back from an LVM file?

    I collected a waveform and saved it using the LVM file format. I would like to read the waveform back into labview and display it with its timestamp and assigned name. The only way I could read the data back into Labview was to convert it to a number array. I figured if you could write a waveform and save all its data, you should be able to read it back rather easily. I've included my LVM file and two simple programs. The program I'm using is much larger, but these two programs are representative of what I'm trying to accomplish.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Write To LVM.vi ‏96 KB
    Read From LVM.vi ‏67 KB
    Test Data_08-12-11_1252.txt ‏29 KB

    Hi Knoebel,
    To display the waveform data, you'll need to change a couple things.
    1. Open the "Convert from Dynamic Data" vi and change the Conversion to have a resulting data type of 1D array of waveform, as this is the datatype you are writing with the "Write To LVM.vi"  Currently you are converting to an array of scalars here, which is why you are losing timestamp data.
    2. Open the "Read from Measurement File" express VI and Change the Time Stamps to be Absolute (date and time) rather than relative. 
    3. If you want to display the timestamp on the waveform graph, pull up the properties window for the Waveform graph and change the Display Format to be Absolute Time for the X-axis and then check the Scales tab to be sure you have unchecked Ignore waveform timestamp on x-axes
    After making the change to convert from dynamic data type to 1D array of waveform you can also probe the wire going into the waveform graph to check the t0 and dt values of the waveform as you read from file.
    Lastly, if you look at the Write to LVM.vi block diagram, you will see a little red coercion dot between the waveform data wire and the Write to Measurement File data input terminal.  It would be better to use the "Convert to Dynamic Data" express VI to make this conversion.
    Hope this helps!
    Sherrie 

  • How To Fetch the Content of a File from Client's PC?

    In my JSP I have this:
         <input type="file" name="filename">for visitors of the web page to browse their PCs' directories to select a file to upload (when the Submit button is clicked).
    What appears in the text field will be a file name. How do I get both the file name and the content of that file to be saved in the database?

    From http://www.htmlhelp.com/reference/html40/forms/input.html:
    A form that includes a file INPUT must specify METHOD=post and ENCTYPE="multipart/form-data" in the <FORM> tag. CGI libraries such as CGI.pm allow simple handling of such forms.
    Form-based file upload is unsupported by many currently deployed browsers. Authors should provide alternative methods of input where possible.
    The following example allows the user to upload an HTML document for validation:
    <FORM METHOD=post ACTION="/cgi-bin/validate.cgi" ENCTYPE="multipart/form-data">
    <P>Select an HTML document to upload and validate. If your browser does not support form-based file upload, use one of our alternate methods of validation.</P>
    <P><INPUT TYPE=file NAME="html_file" ACCEPT="text/html"></P>
    <P><INPUT TYPE=submit VALUE="Validate it!"></P>
    </FORM>
    Your servlet would then have to process whatever data is put into that parameter. You can look at O'Reilly's servlet utilities, or one of the other other links here:
    http://www.google.com/search?q=java+servlet+file+upload&sourceid=opera&num=0&ie=utf-8&oe=utf-8

  • How to store the contents of a file

    Hi,
    I'm using forms6i and database 10g.
    Through forms if a user selects a filename , and clicks a button or something,
    the contents of the file should be saved in the database.
    The file can be of any type, like .doc,.pdf,.xml,.html etc...
    and the contents filed will be of type varchar
    Please help me do this..
    Thanks

    Do you really want to save the "Content" of a file or the file itself? If you try to save the contents of a .doc or .pdf in a column with a VARCHAR2 datatype, you are going to corrupt the contents of the file since these file types have binary data in them as well as text. I think you would have greater success storing the actual file in a BLOB column.
    Here are a few Oracle Support documents that discuss how to store and retrieve files stored as BLOBs in the database.
    Doc ID: 168277.1 - How to Upload Binary Documents Back to Database BLOB Column from Forms
    Doc ID: 330146.1 - How to write BLOBs Stored Inside the Database Out to Files.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to save the contents of a file(not a text file)

    Hi all, I want to save the contents of a file(,png file, not a text file) as a field in a class. Shall I have it as a string or byte array or something?
    I have tried saving a file in a string but there were some problems with loading the file from a different platform. Following is my code.
            String string;
            try {
                StringBuffer sb = new StringBuffer(1024);
                char[] characterArray = new char[1024];
                BufferedReader br = new BufferedReader(new FileReader(file));
                while(br.read(characterArray) != -1){
                    sb.append(String.valueOf(characterArray));
                br.close();
                string= sb.toString();
            } catch (IOException ex) {
                ex.printStackTrace();
            }and I use the following code to recover the string back to a stream, and save that stream back to a time later.
        ByteArrayInputStream bais = new ByteArrayInputStream(map.getBytes());I realized that because this file is not a text file, the string could cause some problems. But anyone could tell me if I should use a byte array or someting? and how?
    Any help would be appreciated!
    Cheers,
    Jing

    You should use a byte array, and the binary streams (InputStream a& OutputStream). Never use Strings and Reader/Writer if you have binary data.
    Kaj

  • How to read the contents of a file present in local file system

    Hi ABAP Experts,
       I want to read the file contents of a file in the local system. I want to read it stream based i.e if the file is if 100kb in size, i want to read the first 100bytes at one time, next 50 kb after, and remaining some other time. Is this possible. I know that with GUI_UPLOAD i can get the total contents into a xstring.
    But how to resolve the following i am not sure. Can you please help.
    Thanks & Regards,
    Vinay.

    Hi,
    transfer file to your application server and use:
    open dataset file ... AT POSITION p .
    regards Andreas

Maybe you are looking for

  • Problem with SM37 BDC recording

    Hi , I want to change the output device for the job scheduled of 1000 pgms in SM37. For this i am using BDC recording. But when i run the recording, it does not fill the data and does not move from 1 screen to other screen. I have checked the recordi

  • Mac Pro can only be booted into safe mode

    Hi All This morning when I booted my Mac Pro 2009 running 10.6.8, it booted but with this error window on the desktop - The System Extension "/System/LibraryExtensions/IOStorageFamily.kext" was installed improperly and cannot be used. Please try rein

  • IMessage dosen't work just with one contact

    hi, i used to write this person with iMessage, but today i couldn't.just sms.it doesen't try to write with iMessage but directly sent an sms.i can write anyone else with iMessage but this person, and this person can write anybody but me with iMessage

  • Dmstool failing in bpel 10.1.2

    Hi, When trying to gathering stats from my domains in bpel, su - oracle -c "/path/to/bin/dmstool /host/OC4J:port:portopmn/orabpel/domain1/threading/alloc/numActiveThreads.value" I get this , ajp13://host:port/dmsoc4j/Spy;oc4jfake.qR8MmB1Ga34Uah8Pa38U

  • ANSI SQL to Oracle Old SQL conversion

    I need help to convert this ANSI SQL Query to Oracle Old school (With inline views and =(+) joins and where clasuses) CUrrent Query and new one should return same resultset ---------------------------------Query Start---------------------------------