FFT of waveform (lvm file converted from mat file) - how do I overcome dt error =0?

Hi,
I am using an lvm file after conversion from mat file. I wanted to get the fft  spectrum.I keep getting this error that waveform dt<=0.
How do I overcome it?
I have attached the mat file and the vi i used.
Best regards,
Fesmi
Solved!
Go to Solution.

The Forum is somewhat particular about the files which may be attached. Often creating a zip file works. Sometimes you can change the extension to .txt. If you change the extension, please indicate in your post what the orignal extension was.
It appears that the data in the file has a time column and an amplitude column. The LabVIEW waveform datatype is a cluster of an array of amplitudes (Y), sampling interval (dt), starting time (t0), and optional attributes. This is what the Power Spectrum VI requires as an input. The t0 values is not used so the defualt is fine. the dt value can be calculated from the difference of any two adjacent values in the time column. Since the first value is zero, the second value is equal to dt.  Use the Build Waveform primitive from the Waveform palette.  Expand it to show the dt element.
In the attached VI all rows is an indicator which contains the data from your file saved as default. XY Graph plots that data.  After subtracting the mean to get rid of a DC component, the data is converted to a waveform. The power spectrum is calculated and displayed using the same VI as in your program. It also uses Extract Multiple Tone Information.vi to get the frequency and amplitude of the major peaks in the data.
Interestingly the low frequency part of the spectrum has strong harmonics of 60 Hz while the peaks near 4 kHz are space ~100 Hz apart.  The broad peak near 2.1 kHz does not seem to have noticeable components at either 60 or 100 Hz.
How do you avoid the Dynamic Data Type (DDT)? Stop using Express VIs! For reasons only known to NI, Express VIs deliver their outputs via DDT. Except by opening the block diagram of the express VI, there is no way to tell what the underlying data structure on a DDT wire is. 
Lynn
Attachments:
FFT of Waveforms.vi ‏711 KB

Similar Messages

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • I was informed i need to purchase standard 11 or standard 12 (?) in order to make word files converted from pdf editable. how do i do this?

    i was informed i need to purchase standard 11 or standard 12 from adobe in order to make files converted from pdf to word using the recently bought and installed adobe pdf exporter file. how/where do i do this?

    Currently the Acrobat version is "XI" (no "12").
    With Acrobat XI installed:
    "File - Save As Other"  --- from here you pick the supported file format for the export.
    If a PDF has content that is the output of a scanner then that output (as is the case for All scanners' output) is a picture of text and not real text.
    During an export all that can be processed is the picture. As a picture of text is not text it is understandable why Word (or other word processors) cannot edit the content.
    So, for such, prior to export run Acrobat's OCR and save.
    The export will be of the OCR content.
    Do expect to do clean of the text, spelling, punctuation, layout etc.
    This may be minor. This may be major. But, there will be some.
    Adobe as some online subscription services that can take a "proper" PDF (NOT all are eh) and export to supported file formats.
    Two are "ExportPDF" and "PDF Pack".
    Be well...

  • HT2534 I bought iTunes gift cards from the UK and am having  queries from iTunes using them from Malawi. How can I overcome this???

    I purchased some iTunes gift cards from Britain from where I have just returned. I am having problems using these at the iTunes store. The wording that comes back is that I am using a British Card for a Malawi application. I bought these on the understanding that Apple is one company internationally. That is obviously not the case. My question is: HOW DO I OVERCOME THIS ?

    iTunes gift cards can only be used in their country of issue, so UK cards can only be used in the UK on UK based accounts. Do you know anybody in the UK that you could sell or give the cards to ?

  • I'm on Windows 7. Why won't Adobe download my file converted from pdf to Word .doc or .docx? Error message comes up saying file failed to download due to configuration error but I don't know how to correct this. Any help appreciated!

    What can I do to get Adobe to download a pdf file it has converted into a doc or docx file? Any help appreciated!

    Hi Ebbelby,
    You're welcome!
    Happy to help
    Regards,
    Rahul

  • No Response From Application Server - How To over come this error message

    I am Using Oracle 10g Application server. if we run a report from our front end - jsp , if the transaction takes more than 10 minutes then 'No Response From Application Server ' error message is coming in browser. How to over come this. whether i have to set any transaction time in application server. If anybody knows this kindly give reply immediatly.

    There are settings in the reports configuration to modify your timeout. This is documented in the repors config file itself.
    cu
    Andreas

  • Reading Waveform (.hws) files from Analog Waveform Editor into LabVIEW causes read errors

    Hi Gang,
    In my application, I want to create files Using the Analog Waveform Editor and then, through LavVIEW, play them out through an D/A.
    I've not been able to read the .hws file into LV.  I've tried two methods:
    Using the Read Waveform VI in the Waveform palette, yields Error -1821.
    I looked in the knowledgebase and found the article "Using the Analog Waveform Editor and HWS Files with Multifunction DAQ Devices"  That recommended using the HWS VIs that are a part of the FGEN driver.  I tried that and get an Error -21515.
    The file I want to read is quite small, only 20 samples.  Is there some limitation on .hws files or the Waveform Editor I'm not aware of?
    I've attached the file if anyone is willing to experiment. I had to change the extension from .hws to .txt to be able to attach it.
    All responses will be appreciated.
    Thanks,
    Roger
    Solved!
    Go to Solution.
    Attachments:
    Havesine.TXT ‏108 KB

    Interesting. I tried to look at your file with the low level read .hws file vi's and I too got error -21515. So I tried the NI-HWS express load.vi and it looks like it worked. I'm not familiar with the analog waveform editor...does it store using the dynamic data type? Oh I converted the dynamic data to 1d array of waveforms using the convert from dynamic data.vi.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Failed to execute with the error Overflow converting from...

    I have a query filter for UPC in Webi Report. The report is not working for one UPC (for other UPC's the report is working fine)...it gives error "failed to execute with the error Overflow converting from '6218090010'. (WIS 10901)". The same error is coming when I ran MDX in MDXTEST command in BW. When I take the UPC filter from the query filter the report runs fine and I see this UPC in the report. The data source is Bex and we have recently upgraded to SAP EHP 1 for SAP NetWeaver 7.0.
    Regards
    Sharma

    Hi,
    Under normal circumstances it should be enough to restart the connection service.
    As far as we know there is no formal solution to this problem from SAP yet but restarting the connection service is much less of an interuption compared to restarting the the SIA.
    Re-starting the connection service should resolve this issue. since, Connection service is only related to DeskI and Rich Client re-statrng wonu2019t impact other business objects components including java report panel.
    All the Best,
    Madhu....

  • Anything over 20mb won't covert from PDF to WORD, I just get an error message..why?

    Any document over 20mb won't convert from PDF to word, I just get an error message...why?  Anything smaller I have no problem at all.

    Hi,
    Thank you for your subscription to Adobe CreatePDF.
    I am moving your posting to Adobe CreatePDF forum as it is now at Acrobat.com forum
    Thank you.
    Hisami

  • How do I overcome error "files in use Reader" when downloading 10.1.4?

    How do I overcome an error "files in use Reader *" when attempting to download Reader 10.1.4? Reader 8 not in use, but is installed.  All I want to do is upgrade to 10.1.4.  Why do I get sudn an error anyway?

    Make sure no AcroRd32.exe process is running when you run the installer.  Easiest way:
    download the cleaner tool http://labs.adobe.com/downloads/acrobatcleaner.html and save it to disk
    download the installer from http://get.adobe.com/reader/enterprise/ and save it to disk
    restart Windows, then run the cleaner tool, followed by the installer, before doing anything else
    P.S. the latest Reader X version is 10.1.8.

  • 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 

  • 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

  • Read specification cluster from LVM file

    Does anyone have a clever solution to programmatically read limit specification masks (for waveform limit tests) from an LVM file?
    I used the "Mask and Limit Testing" Express VI to create the masks, which I saved as LVM using the save-data feature.
    I don't want to use the Express VI to do the actual test because the testing is in a subVI that's called within a loop; each iteration of the loop needs to send different masks to the Limit Test.vi that's in my subVI.
    Thanks,
    -a
    Solved!
    Go to Solution.

    Hi Andy,
     The LVM is a text file so you can read that in using read file function.
    After that I search the string to find where the data starts using Match Pattern
    You then process the remainder of the file string and then use Speadsheet String to Array with a tab as its delimiter. 
    There are tabs at the start of each line and extra line-feed at the end so I used array subset to avoid those areas. This might not work each time but you can fix that when you run into a problem.
    cheers
    David
    Message Edited by David Crawford on 11-05-2009 10:01 PM
    Attachments:
    Read Mask And Limit Checl LVM File.vi ‏13 KB
    Read Mask And Limit Checl LVM File.png ‏30 KB

  • Files converted from m4a to mp3 are not displaying correctly in feed

    hi; i recently produced my first show in garageband (after using a bunch of other audio apps in the past), exported to an m4a file, and converted to mp3 in itunes, but it is not showing up as an audio file in my feed.
    the feed is http://feeds.feedburner.com/wellroundedradio and my blog posting on it is http://wellroundedmedia.blogspot.com
    is there something you need to do when converting from m4a to mp3 in itunes to make sure the settings are all correct so it will be enclosed as an audio file? i have tested other mp3 files in the feed and they are working fine.
    thx, charlie
    ==
    charles mcenerney
    host + producer
    well-rounded radio
    http://www.wellroundedradio.net
    iBook G4   Mac OS X (10.4.8)  

    greg-
    thanks. yes, i think that's what has been so tricky about this. i add a link to an mp3 in blogger, but feedburner doesn't add this particular show as an enclosure, so it's not updating in the feed. can't seem to find where the origin of the problem, though...is it blogger, feedburner, or the mp3 file or...?
    charlie

  • How did my pdf files get converted from 'open with Adobe Reader' to open with Adobe Acobat'?  And if I have a ''free'' Acrobat account why does it not open?  When I do click on the account it ask me to pay $89.99.  I never wanted Acrobat.  How can I get -

    How did my stored files get converted from 'open with Adobe READER' to 'open with Adobe ACROBAT'? How can I get them re-set to open with 'Adobe Reader'?
    Please reply to my e-mail:   [email protected]

    It sounds as if you downloaded Adobe Acrobat Pro. If you did, uninstall it. Then repair Adobe Reader.
    The free Acrobat account has no connection to any of this.

Maybe you are looking for

  • Sharepoint foundation create your own theme

    Hi, I was wondering.. We recently had a visit from a person who have giving us a presentation of Sharepoint in our company.  That person was talking about the free version of Sharepoint -> Sharepoint Foundation and he told us that it was possible jus

  • MacBook Air wi-fi doesn't work at home but does everywhere else?

    Hello everyone, out of the blue recently my mid-2012 Macbook air started having wifi issues at home.  Everywhere I go except my house the wifi works excellently.  This would lead one to believe my home wifi is at fault, however all of my family's dev

  • Harman Kardon iSub no longer supported. Any compatible sub-woofers around?

    Ah, pangs of new technology! If you're shopping for any third party device, make absolutely sure it will be supported by the Intel Core Duo. While the sound is solid from the internal speakers, I still would like a sub-woofer. None of the ads I've lo

  • Living US and need a swedish ip addresss or proxy

    Trying to set up my wife's ipad.  She would love to be able to have her ipad think she's in Sweden so she can surf the web as if she were there.  It would greatly help with Swedish content for my daughter as well.  How can this be achieved.  This mus

  • How do i get rid of icloud off my PC

    i stupidly clicked something, now i have i cloud on my computer and its not letting me do anything with it and i dont really want it. how do i get rid of it?