Gaps in data saved as LVM

I am using 2 USB-6009s to collect 16 channels of analog data and the 2 devices are not synced.  The data files attached were collected at 1,000 Hz for 2 sec using the Write to Measurement File function.
1. When the data were saved as a text (lvm) file [the csv file attached], there are gaps in the data.  However, there are no gaps when saved as an Excel file.
2. When saved as Excel with 'absolute' timestamps, the time column starts with 00.000 and then reset to 00.000 at non-regular intervals (as in the spreadsheet attached).  The time column has continuous time when the 'absolute' option is deselected,
If the gaps are related to the non-synchronization of the 2 devices, why are there no gaps when saved as Excel files?  Thanks for your time.
Attachments:
Analog_16Ch_Timed_Datalogging_Dell.vi ‏90 KB
AI16_1000Hz_2s(absolute timestamp).xlsx ‏126 KB
AI16_1000Hz_2s.csv ‏304 KB

Hi Riccardo:
At your suggestion, I used the Convert From Dynamice Data to 2D array before saving the array using Write to Spreadsheet File.  When I collected 2 seconds of data at 1,000 Hz, there are fewer than 200 lines of data in the spreadsheet file (no gaps in the data, see the txt file attached). For comparison, the file saved using Write to Measurement File has close to 1,000 lines (with gaps in the data, see the xlsx file attached).  Thanks for your time.
John
Attachments:
A16D1_1000Hz_2s.txt ‏20 KB
A16D1_1000Hz_2s.xlsx ‏133 KB
Analog_16AI_1DI_Timed_Datalogging(WriteSpreadsheet).vi ‏116 KB

Similar Messages

  • Error -20315 appear on the data saved in lvm files.

    Dear all,
    I use NI9205 as data acquisition board and DAQ assist in LabVIEW to get the signals. Sampling frequency was set to 250Hz, which means the dt should be equal to 0.004. The data were saved using Write to files as lvm files. When I read the data, the error 20315 shows up.  I found that in the saved file, dt all equal to 0. Open a small lvm file by notepad, I see the delta_x 0.000000. The files of data I have already acquired are huge, which means I cannot change Delta_x manually. Do you have any good ideas of how do I handle these files in Labview regarding the signal processing? So far I can not use almost anything because of the error.
    Thank you very much in advance.
    Kiwi

    Based on your description I have created a VI and attached the logfile. I havn't encountered the -20315 error.
    Please run this on your computer and let me know how it goes.
    Thanks!
    Dennis Morini
    Field Sales Engineer
    National Instruments Denmark
    http://www.ni.com/ask
    Attachments:
    Datalog.vi ‏187 KB
    test.zip ‏109 KB

  • Get date-time from .lvm

    With Labview I've created a .lvm file with 6 colums of data. The .lvm also contains a x value (+1 for each row) so i'm saving 1 row of data every second.
    If I plot the data in Diadem the X-axis shows up as relative time, but I want to see the absolute time (date+time). All the information is to do this is present in the header of the .lvm, but I cant find the setting to do this!
    Thank in advance!

    Hi Inspectation,
    OK, I got your *.LVM file, and all is clear.  The problem in this case is that DIAdem 2010 and prior versions are hiding the absolute date/time property of the waveform from you in an attempt not to confuse you.  But since that's exacty what you want to see, this approach ends up being very confusing indeed, even though it works great for most of our customers.
    The good news is that the LVM DataPlugin is parsing the absolute date/time property for each channel, and that property is being loaded (invisibly) into the Data Portal, so you can run a VBScript to fish out that information and create a new DateTime channel to plot the data against on the X axis:
    OPTION EXPLICIT
    Dim GroupIdx, ChanIdx
    GroupIdx = GroupDefaultGet
    IF GroupChnCount(GroupIdx) > 0 THEN
    ChanIdx = CNoXGet(GroupIdx, 1)
    Call WfmToDateWfm(ChanIdx, "DateTime")
    Call ChnRenumber
    END IF
    Function WfmToDateWfm(Channel, DateTimeChanName)
    Dim ChnStartTime, OffStartTime, ChnDeltaTime, RelStartTime, RelStopTime, DateTimeChannel
    IF ChnPropValGet(Channel, "waveform") <> "Yes" THEN Exit Function
    ChnStartTime = CDbl(CDate(ChnPropValGet(Channel, "wf_start_time")))
    OffStartTime = ChnPropValGet(Channel, "wf_start_offset")
    ChnDeltaTime = ChnPropValGet(Channel, "wf_increment")
    RelStartTime = 24*3600*(Trunc(ChnStartTime) + 693958 + Abs(Frac(ChnStartTime))) + OffStartTime
    RelStopTime = RelStartTime + ChnDeltaTime*(ChnLength(Channel) - 1)
    IF DateTimeChanName = "" THEN DateTimeChanName = ChnName(Channel) & " DateTime"
    Call GroupDefaultSet(ChnGroup(Channel))
    DateTimeChannel = ChnLinGen("/" & DateTimeChanName, RelStartTime, RelStopTime, ChnLength(Channel))
    ChnFormat(DateTimeChannel) = "Time"
    Call ChnMove(DateTimeChannel, ChnGroup(Channel), ChnIndex(Channel))
    WfmToDateWfm = DateTimeChannel
    End Function ' WfmToDateWfm()
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Time Sparsity and Gaps in Data ???

    Hi,
    I have a cube with 7 dimensions and having over 70 million rows. I have made all dimensions including time to be sparse. Now the problem is that there are gaps in my data for certain days after I maintain cube, which seems strange. Also, the aggregation at lower levels(days) is not correct whereas aggregations on higher levels (like year) are absolutely correct.
    On the other hand, if i dont make time dimension sparse then there are no gaps in data and everything looks fine. All aggregations are fine in this case in every level.
    Can any1 explain this behaviour please ?
    Regards.

    Hi Riccardo:
    At your suggestion, I used the Convert From Dynamice Data to 2D array before saving the array using Write to Spreadsheet File.  When I collected 2 seconds of data at 1,000 Hz, there are fewer than 200 lines of data in the spreadsheet file (no gaps in the data, see the txt file attached). For comparison, the file saved using Write to Measurement File has close to 1,000 lines (with gaps in the data, see the xlsx file attached).  Thanks for your time.
    John
    Attachments:
    A16D1_1000Hz_2s.txt ‏20 KB
    A16D1_1000Hz_2s.xlsx ‏133 KB
    Analog_16AI_1DI_Timed_Datalogging(WriteSpreadsheet).vi ‏116 KB

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • 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

  • In a FORM search box that i have data saved, how can I go and see what is saved and edit it?

    In a FORM search box that i have data saved, how can I go and see what is saved and edit it? Sometimes when I'm doing maintenance it all gets deleted and I would like to be able to see what I have saved before it gets deleted.

    Try this - Form History Control extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/12021/

  • Problem in DATE saving: all years are in the 21th century !!

    Hi for all,
    I'm using a lot of date items in my application and I have a problem caused by data format: in form fields, I enter dates in 'DD/MM/YY' format. So I had always a systemic concatenation of '20' to the year 'YY' always this :
    dispalyed data | saved data
    DD/MM/YY | DD/MM/20YY
    But I want (manipulating dates of birth) that 85 --> 1985, 79 --> 1979 ... 01 --> 2001, 05 --> 2005
    So how can I resolve this.
    Thank you for your assistance.
    Joe

    Joe,
    Use RR instead of YY.
    SUNDARK

  • How do i save a calender i have created with the photo and the dates saved on separate pages?

    how do i save a calender i have created in photoshop with the photo and the dates saved as two separate pages?  when i save as pdf or jpeg they are authomatically saving 1 pg with the photo and dates on one page.  This is causing problems when i print.

    Hi there, in case your printer cannot print very large, you can also crop down two versions and print them as separate documents.
    1) Create a guide where you would like to split the pages by clicking on the ruler (hit command R if they are not showing) and dragging to the desired area.
    Creating the guide will make it so you can be precise in the way you split up your page, and so that no part of the image will be repeated or lost.
    2) Select the Crop Tool and fit the crop area to the top half of your calendar, using the guide you've just made to snap to the right spot. Hit return to finalize the crop.
    3) Go to File > Save As. Name the file something like calendar_top and select the desired file format. Hit "Save."
    4) Once you get back to your calendar file, Go to the History panel and select "Drag Guide." This will take you back to the step before you cropped the image.
    5) Repeat the steps as before for the bottom half of the calendar, once again using the guide to help you make your crop area.
    So then you would just print each of the two pages individually. The images will not be contained within one document, but if you have Acrobat you could combine the files.
    I hope this helps!

  • Where is the data saved in the srtucture for a particular tcode

    Where is the data saved in the srtucture for a particular tcode.
    For eg in MM01 there is a field with RMMG1
    where dioes the data get saved from this field as in backend it shows the stucture and the structure can hold data only at runtime,
    Please help me
    Thanks in advance
    chinnu

    Hi,
    The strcuture : RMMG1 holds data at run time only that to it can hold only one record at a time.
    so we use this structure to hold data at run time and then we insert those values into database tables for that program.
    Here you can the values stored and processed in the program in the tables : MARA (for matnr ,mbrsh,mtart..),MARC (for Plant ),MARD( for storage location : lgort )...etc.
    so if you want to fecth some data means first you have to choose right table to fetch information by passing values in the selection screen.
    Regds
    Sivaparvathi
    Please reward points if helpful...

  • DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file

    Hi
    DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file
    Two main
    sections:
    1)     
    Perform
    write and read operations to and fro different spread sheet files, such that
    each file have a single row of 32bits different binary data (analogous to 1D
    array) where the left most bit is the MSB. I don’t want to manually enter the
    32 bits binary data, I want the data written or read just by opening a file
    name saves with the intended data.
          2)     
    And
    by using test patterns implemented using the digital pattern generator or  build digital data functions or otherwise, I need to
    ensure that the     
                binary data written to a spreadsheet file or any supported file type
    then through the NI-USB 6509 is same as the data read.
    I’m aware I can’t use the simulated
    device to read data written to any port but if the write part of the vi works I
    ‘m sure the read part will work on the physical device which I’ll buy later.
    My Plan
    of action
    I’ve
    created a basic write/read file task and a write/read DAQ task for NI USB 6509
    and both combine in a while loop to form a progress VI which I’m confuse of how
    to proceed with the implementation.
    My
    greatest problem is to link both together with the correct functions or operators
    such that there are no syntax/execution errors and thus achieve my intended
    result.
    This
    project is one of my many assignments for my master thesis, so please i’ll
    appreciate every help as I’m not really efficient with LabVIEW programming but
    I prefer it because is fun and interesting if I get to know it.
    Currently I’m
    practicing with LabVIEW 8.6/NI DAQmx 8.8 Demo versions and NI USB 6509
    simulated device.
    Please see
    the attached file for my novice progress, thanks in
    advance for the support
    Rgds
    Paul
    Attachments:
    DIO_write_read DAQ from file.vi ‏17 KB

    What does your file look like?  The DAQmx write is expecting a single U32 value, not an array of I64. 
    Message Edited by vt92 on 09-16-2009 02:42 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Automatic file naming and data saving

    Hi,
    I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic. 
    To explain in more deatils:
    I want the program to generate a new file on its own , give a file name depending on the temperature variable , save the data and again go for the next I-V scan and do the same way.
    So, if at a particulat temp say 300K, there are 5 iterations, my program should be such that it generates a new file evrytime say 300K_001(1st iteration), 300K_002,...300K_005(5th iteration) automatically on the hit of "run" button.
    Can some one help me on how to implement such a code.
    Thanks!
    Solved!
    Go to Solution.

    People do things like that all the time.
    Look at the Number to String conversion functions in the String palette and the Build Path function in the File palette.
    You should think about error handling. What happens if you try to create the 300K_001 file and a file with that name already exists? Do you want to over-write the file, change the name to 300K_001_a, or ask the operator for input?
    Lynn

  • LSMW -File Name 'Converted Data': Max. 45 Characters. Remaining data saved

    Hi to all,
    I am facing the error message while specifying the file(7th step) in LSMW as below
    <b>File Name 'Converted Data': Max. 45 Characters. Remaining data saved.
    Message no. /SAPDMC/LSMW_OBJ_060028</b>
    Diagnosis
    Some import interfaces only accept file names (including path) that have a maximum of 45 characters.
    System Response
    All data except the file name of the converted data is saved.
    Procedure
    Adjust the file name for the converted data.
    I am not able proceed further steps in LSMW..
    please give your valuable suggation and solutions.
    Thanks in advance..
    Amar.

    HI
    Even I am facing this error. I tried from the root directory also. But I am getting the same error. (D:\LSMW\t.txt).
    Also,  another text file with the path name C:\Documents and Settings\Desktop\testmass.txt was uploaded without any problem.
    Can anyone please help in solving this?
    Regards

  • Data types, msg types, where these data saved in the server?

    In XI we are creating the data types, msg types, ...... where these data saved in the server ?

    Enter CL_SRAPI* in the SE24 transactions and make your search as shown below.
    CL_SRAPI_DATA_TYPE----
    data type
    CL_SRAPI_DATA_TYPE_ENH----
    data type  enhancement
    CL_SRAPI_FAULT_MESSAEG_TYPE-----fault message type
    CL_SRAPI_MESSAGE_TYPE----
    message type
    CL_SRAPI_INTEGRATION_SCENARIO----integration scenario
    Communication channels are saved in the SMPREL3 database table.

  • Reading data saved on previous version of Labview

    I've recently bit the bullet and upgraded to Labview 8.0 after using Labview 7.0 for a good few years now. I'm currently experiencing problems accessing data saved on the previous version of Labview which I've been working on until the upgrade.
    An example is the waveform files saved on Labview 7.0 which I'm trying to read using Labview 8.0. A dialog box appears when I try to use Labview 8.0 to read the waveforms advising me to convert the files to the new version of Labview which I've duly agreed to. However, it appears that the conversion process has managed to corrupt the waveform files as I am unable to access it on either Labview 8.0 or 7.0.
    I'm including a couple of files to highlight my point, one saved on Labview 7.0 and the other converted to Labview 8.0 by the programme.
    Cheers.
    Attachments:
    Labview 7.0 Waveform1.txt ‏395 KB
    Converted Labview 8.0 Waveform File1.txt ‏1 KB

    Hi
    Have a look at this thread: http://forums.ni.com/ni/board/message?board.id=170&message.id=163651
    There you'll find a workaround regarding the message.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

Maybe you are looking for

  • SCCM 2012 - Network requirements for Client communication to primary in a Cross Forest Environment

    Hello, I have been trying to get some definitive answers on what network traffic is required between a client and a primary site versus a secondary in a cross forest scenario. Here is the scenario: Company A has an existing SCCM 2012 primary Site. Co

  • Nokia N 72 swiches off after 15 minutes

    Hi I use Nokia N72-5 hanset but now it is problem to me to operate with it. It became switched off after turning on. I removed memory card , and turn on but it switched off after 15-16 minutes. i reset its firmware bu dialing *#7370# but it didn't he

  • How can run flash player on power PC G5

    how can i run adobe flash player on a PPC G5 mac

  • NLS_Language issue

    Hi All, I have a query which returns 3 rows when run with NLS_Language set to English in SQL Developer, if I change it to American, the query returns 2 rows. Is it possible to apply NLS Language at row level, if so could this row have been altered by

  • Direct Elimination of Goodwill - Where the offsetting entry is posted?

    Hi, I have setup the consolidation method to directly eliminate the goodwill calculated to an offsetting FS item 124905, both in the positive elimination of goodwill and negative elimination of goodwill. However when i execute the consolidation of in