Saving FFT PSD waveform to TDMS file maintaining x-axis scale

Hi all,
I'm having trouble saving a Power Spectral Density waveform to a TDMS file because the method I'm using is losing the x-axis (frequency) scaling. The only way I can get it to save is extracting the magnitude from the waveform and saving that in the TDMS file. This loses all the frequency information.
Does anyone know how I can save the PSD information in a TDMS file or failing that, any type of file?
Thank you,
Donners
Solved!
Go to Solution.
Attachments:
PSDs Frequency 2.JPG ‏89 KB
Data Calculations TDMS 4.zip ‏120 KB
Filtered Data.zip ‏240 KB

Hi,
As my understanding, you are trying to log the PSD to "Power Spectral Density" channel, but you do it wrong with double array. TDMS write don't accept cluster as input, but accept waveform.  I have updated the VI and the PSD in TDMS file viewed as
Attachments:
Data Calculations TDMS 4.vi ‏177 KB

Similar Messages

  • Is TEDs transducer informatio​n saved in the .tdms file?

    I have a TEDs-capable Pressure Transducer connected to a NI-9237 module in a cDAQ-9174. In this application, I am collecting data using SignalExpress 2014. The attached file shows the information displayed in MAX, for the TEDs-capable transducer. When I collect the data, is the TEDs information saved as metadata into the .tdms file? I do not see it in the channel properties within DIAdem. Thank you.
    Attachments:
    TEDs.jpg ‏51 KB

    Hi ATarman,
    You've landed in the DIAdem Discussion Forum.  This is a data acquisition question more suited to a Signal Express or LabVIEW Discussion Forum.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Opening RAW File from Lightroom is automatically saving a PSD or TIFF. How to turn this off?

    I recently upgraded to LightroomCC and Photoshop CC however now when I go to open my RAW files from lightroom it is automatically saving a PSD copy when the file is opened.  I don't want it to do that because I don't need those files - for some of my stuff I just need to open the file, edit, and save a jpg when done.  This was not a feature on the older version of Lightroom and I can't find any place to turn this off. 
    Any help would be much appreciated!
    Thanks!

    Maybe this extension: Second Search 0.7.2012122901
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to send TDMS file using TCP/IP

    Hi,
    I'm working with a cRIO-9025, chassis cRIO-9118 and NI 9239 module.
    I've done an acquisition (voltage) where data is in 1D Wfm SGL. I've saved this data using a TDMS file, but now I want to send this file to an other computer (in this case mine) because the file is stored in the target. To do that I've implemented this example:
    http://zone.ni.com/devzone/cda/epd/p/id/2842#0requirements
    The problem is that the tdms file is created but it hasn't any data. I attach the image of the program. The program is done in other project (not which I use to make acq) to make it easy and then implement it when it works.
    *The name file in the client is not used because I had a conflict with path.
    What I'm looking for is make an acquisition of 10 minutes every 30 minutes and then send this data to an other computer (or others). I'm not sure if it's the best way, maybe is better to send data at the same time as the acquisition is being done, but my theacher told me that is easier if I send the file when acquisition has finished. To make acq I use FPGA and RT.
    I would appreciate your help. Thanks!!
    Solved!
    Go to Solution.

    I believe the FTP VIs are built into LabVIEW 2011SP1 - I have the VI present, but I could have installed the internet toolkit (don't know).
    Look in the following location:   Function Palette -> Connectivity -> Internet -> FTP
    You're really looking for the VI named, "FTP Get File.vi".  What this VI does is contacts an FTP server and requests a file from it.  If your files are on the target, and you know the filename that will be created (such as files created in a sequence) you can request the file from the target and have them copied to the local machine (Windows).  RT cannot "push" files to the Windows side unless you have an FTP server (like FileZilla Server) running on the Windows host.
    It's a very simple one-VI solution.  You specify host (the IP Address of the target you're pulling files from), the remote path for the file (for instance if the file is located in c:\ni-rt\data\myfile.zip then that's what you put as the remote path of the file), the local path for the file (where you want the file copied to, along with the name of the file, such as c:\mydir\myfile.zip), the username to log into the FTP server with (default is 'anonymous') and the password to use (default is an empty string).  The importan thing to note is whether to use a binary transfer or not - if the file is a text file, no binary transfer needed; if the file is a binary file then you get better results using a binary transfer - I prefer to always use binary transfers, as non-binary transfers actually "interpret" and "convert" text information in the files.
    -Danny

  • 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

  • Is it possible when saving the psd file to have an automatic jpg file saved at the same time?

    My work involves preparing images for printing lightboxes and window installations.  My clients require to pre-approve the photos before printing.
    I usually save my files as psd but since the files are very large in this format I usually save another copy as a jpg file that has a much smaller file size.  This makes it possible for me to add these to a presentation and and send them to my client.
    Is it possible when saving the psd file to have an automatic jpg file saved at the same time?  Or do I still have to do this manually?

    If you save the document manually as a PSD file in Phtoshop not from within an Action, Script, Plugin or Droplette.  You may be able to write a Photoshop that would do as save as Jpeg,  And you should be able trigger its execution by setting up a Script Save event using the Script event manager.  When You do a manual save  the script should be triggered.  I wrote may be able to for I have never tried to write that script or set up a Script Manager Save event.  I have only use open events.

  • Why is Photoshop Elements 8 not saving a psd file as a pdf now that I purchased Adobe Acrobat XI Pro?

    Why is Adobe Elements 8 not saving a psd file as a pdf after I started using Adobe Acrobat XI Pro instead of my CS3 Pro? Both Adobe software is up to date and before I switched to Acrobat XI Pro, it worked fine. Help please...

    You aren't talking to Adobe here. But still...Is it by any chance asking for a QUALIFYING product? If so, you purchased an UPGRADE and now need to give the serial number of the OLDER product (Acrobat 9 or X) which you must own to be able to use the upgrade. Simples.

  • Photoshop saved a PSD file with security permissions, and now I can't access it.  Please help!

    Using Photoshop CC, I saved a PSD file after several hours of editing.  I also exported a TIF file from the PSD.  After closing Photoshop, I cannot access either file in any way.  I cannot even copy them.
    going to properties --> security, I get a message that reads, "You must have Read permissions to view the properties of this object."  Click Advanced to continue.
    When I click Advanced, it says "Unable to display current owner", and in none of the three tabs available (Permissions, Auditing, or Effective Access) can I click "Continue" and get any further than the message, "You do not have permission to view or edit this object's permission settings".
    Please help me.  This is highly frustrating, and a bug that is costing me over an hour of my time troubleshooting.
    Thank you.
    UPDATE: 
    I rebooted, and the files are... gone. Photoshop CC has no record of the file under "Open Recent".
    What just happened? I lost a good 2 hours of work and a unique photograph
    UPDATE2
    I restarted the project, saved a PSD with Maximize Compatibility selected.  Verified this file has appropriate permissions. 
    When I then go to File --> Save (not "Save as", but "Save"), after progressing to 90% or so, an error message comes up, "Could not save 'O:\[path]\file.PSD' because the file name was not valid."
    I click "OK", and then go to the original file and check its permissions.  They are now changed to "You must have read permissions".

    I have this exact problem too. Windows 8.1 CC 2014 and all of a sudden I get the problems AIJ23 has. Say I have 8 files open, I save the first 3 or four, just with Control-S (saving in PSD format) no problem, then all of a sudden on the next save I get a message saying I don't have permission to save over the file followed by the same problems as above. I use Save As so I don't loose my work but I cannot delete/rename/change permissions of the original file. This only started happening about 2-3 days ago and only happens in Photoshop. I haven't managed to find much about this issue anywhere.

  • DIAdem not saving all samples from TDMS file

    Hello to all,
    I have several large TDMS files (1.8Gb each) containing approx. 120 million sampels. When I try to open these fiels in Diadem it previews the correct amount of samples (120 Million), but when I try to save tha data in Matlab format it saves me only half the samples, 60 Million. Also, I have a Matlab script that opens the TDMS files and does exactly the same thing, it is not saving all samples. 
    Can you please advise me on this issue? Is there a way to automatically fragment large TDMS files into smaller ones?
    Best regards,
    Ion 

    Hello Jean Baptiste,
    It seems your TDMS file is fine since you have the correct number of data in DIAdem.
    It may comes from the conversion to the MatLab format. Maybe MatLab can't accept more than 60 millions data. You should ask that to the MatLab expert on their forum.
    However, if you want to fragment your TDMS file, you have to do it manually in DIAdem, when you load the file into the Data Portal, or you can automate the function by using VBScript. (Last panel in DIAdem)
    An other solution would be to fragment your TDMS file directly where you write it. (In LabVIEW maybe?)
    Regards,
    Benoit S. - Field Sales Engineer
    Certified LabVIEW Developer
    Certified TestStand Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Saved layered .psd files display text in preview column

    Hi,
    I have layered files that I have saved. When I view my files in column format, in the preview area, text appears, not the image. I can't read the text as it is so tiny. Even when I magnified it I couldn't red it. It just seems to happen to files saved as .psd, not to jpegs.
    Has this happened to other people? If you have a solution, other than flattening the file, as I wish to save the layers, please help me. Thank you in advance.

    >When I view my files in column format, in the preview area, text appears, not the image. I can't read the text as it is so tiny.
    Meaning you are previewing in the Finder?
    That is possibly because you have an Alpha channel in the file.
    If you learn to use Bridge CS4, instead of using the Finder, you won't have this problem.

  • Why are 'saved as' .psd files so much bigger than original raw nef files?

    I was under the impression that original raw files were the biggest possible. I appear to be very wrong. Why are 'saved as' .psd files so much bigger than original raw nef files?
    I'm beginning to think that saving them as psd is a bad idea.
    Yes, though I've heard all the arguments of keepng the original raw files (For ex. Did you throw away the negatives when you were using film) I se eno purpose in keeping them. Once I've made the initial adjustments--cropping, color correction etc. I don't feel a need to ever go back and never do. Most of my work is done in Photoshop and I like it that way--but suddenly finding myself with such huge files doesn't appeal to me at all--and other formats like tif...well never mind for now.

    Good point made c.pfaffenbichler however, my thinking is this--there is time spent on the raw file and then there is much more time spent on (usually a psd) the file once in Photoshop. For me to then go back to the orignal raw file, after having worked on it on PS would mean getting rid of all the work (larger amount of work, time wise and artistic wise) done on PS which seems pointless. Although the psd file does show your layers and stuff it only shows the end results of that layer. It does not show from where to where you pointed your brush, from what point to what point you changed the color or part of an image etc. etc.Anyhow I understand why most people keep their raw files, but this is the main reason why I do not. It would mean hours of work on an image you already worked on (and usually were satisfied with) to perhaps make some minor alteration. Also please note that though I was noce a pro photog, no I do it mostly for fun. Getting the exact red in my Coca Cola can has never been of importance. On the other hand, if there were a way of working on a raw file within Photoshop and keep it (save it as) a raw file equivalent, then I would absolutely do so.

  • Help!!! accidently saved my psd file and lost all my design

    hello forumers
    i  accidently saved my psd file and lost all my design is there a way to get it back?!??!?!pls helppppp...
    ps:i didnt delete it,i just clicked on save as wihtt he same name,but i dindt notice the design was missing,until i opened up the psd file again.
    thank you.

    This is a Mac Photoshop forum, so it was a reasonable assumption. If you closed the file you are hooped unless you can access a backup.
    Too late for this job, but you might want to install Dropbox. You get 2 GB of space for free on Dropbox’s servers, and any files saved in your My Dropbox (I think that’s what it’s called on Windows) folder are copied to Dropbox’s servers. The big deal is that you can share any files or folders with other users or other computers, so you could have the same folder on your work and home PCs and files saved on one are automatically updated and available on the other. The other big deal is that Dropbox keep old versions of files. I keep all working jobs in Dropbox and remove them only when complete and ready for archive. It is a huge bacon saver.
    Self serving link: https://www.dropbox.com/referrals/NTUwMDUyOTI5
    If you sign up using the above link I get a tiny increase in my allotted storage.

  • SAVING waveform and fade files

    I have a new mac pro and an Xserve
    All my Logic project files are on the Xserve, but for some reason it can't save the waveform and fade files. Is there a way of fixing it?

    I have a new mac pro and an Xserve
    All my Logic project files are on the Xserve, but for some reason it can't save the waveform and fade files. Is there a way of fixing it?

  • What is the output on the FFT PSD function?

    I am trying to evaluate the FFT PSD function relative to frequency. I expect f(0) = the variance of all signals, but that is not what is given. Does anyone have any information about this. I ran a test array with a 1 Hz sin wave, with 10 samples/second, 120 total data points--the FFT PSD gives f(0)=0.

    Hi,
    The LabVIEW help file gives the following information concerning this function:
    The FFT Power Spectral Density VI completes the following steps to compute power spectral density.
    Computes the FFT of time signal.
    Forms the power spectral density of time signal.
    Averages the current power spectral density with the power spectral densities computed by the VI since the last time the averaging process was restarted.
    Returns the averaged power spectral density in power spectral density
    The single-channel version of this VI can perform single-channel measurements in both one-shot mode, meaning a single call, and continuous mode, meaning multiple calls with history. The single-channel version can perform multichannel measurements only in one-shot mode. If you want to make multichannel measurements in continuous mode, use the multichannel version of this VI.
    The single-channel version of this VI maintains internal state information for a single channel only. Calling the single-channel version to process another channel without using the restart averaging control to clear the history results in an unexpected behavior of this VI. The unexpected behavior results from the VI passing the internal state information from one channel to another.
    Note  The single-channel version of this VI is primarily intended for continuous processing of a single channel. Do not generalize this behavior to the multichannel case and use the single-channel version in a For Loop to continuously process multiple channels by indexing an array of waveforms. Refer to the examples\measure\maxmpl.llb and the examples\analysis\measxmpl.llb for examples of how to use a multichannel version of a VI like the FFT Power Spectral Density VI in a loop.
    Refer to the Noise Waveforms and PS Density VI in the labview\examples\measure\maxmpl.llb for an example of using the FFT Power Spectral Density VI.
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • Signal Express Large TDMS File Recording Error

    Hello,
    I have the following application and I am looking for some tips on the best way to approach the problem with Signal Express:
    I am attempting to using Signal Express 2009 (Sound and Vibration Assistant) to collect random vibration data on three channels over an extended period of time -- about 20 hours total.  My sample rate is 2kHz.  Sampling at that rate over that period of time invovles the creation of a very large TDMS file, which is intended for various types of analysis in signal express later or some other application later on.  One of the analysis functions to be done is a PSD (Power Spectral Density) plot to determine the vibration levels distributed over a band of frequencies during the log. 
    My original solution was to collect a single large TDMS file.  I did this with Signal Express recording options configured to save and restart "in current log" after 1 hour worth of data is collected.  I configured it this way because if there is a crash/sudden loss of power during data collection, I wanted to ensure that only up to an hours worth of data would be lost.  I tested this option and the integrity of the file after a crash by killing the SignalExpress process in the middle of recording the large TDMS file (after a few save log file conditions had been met).  Unfortunately, when I restart signal express and try to load the log file data in playback mode an error indicating "TDMS Data Corrupt" (or similiar) is displayed.  My TDMS file is large, so it obviously contains some data; however, Signal Express does not index its time and I can not view the data within the file.  The .tdms_index file is also present but the meta data.txt file is not generated.  Is there any way to insure that I will have at least partially valid data that can be processed from a single TDMS file in the event of a crash during mid-logging?   I don't have too much experience dealing with random vibration data, so are there any tips for generating vibration level PSD curves for large files over such a long time length?
    My solution to this problem thusfar has been to log the data to seperate .TDMS files, about an hour in length each.  This should result in about 20 files in my final application.  Since I want to take a PSD, which ends up being a statistical average over the whole time period. I plan on generating a curve for each of these files and averaging all 20 of them together to get the overall vibration PSD curve for the 20 hour time period.

    JMat,
    Based on the description of your application, I would recommend writing the data to a "new log" every hour (or more often). Based on some of my testing, if you use "current log" and S&V Assistant crashes, the entire TDMS file will be corrupted. This seems consistent with what you're seeing.
    It would be good if you could clarify why you're hoping to use "current log" instead of "new log". I'll assume an answer so I can provide a few more details in this response. I assume it's because you want to be able to perform the PSD over the entire logged file (all 20 hours). And the easiest way to do that is if all 20 hours are recorded in a continuous file. If this is the case, then we can still help you accomplish the desired outcome, but also ensure that you don't lose data if the system crashes at some point during the monitoring.
    If you use "new log" for your logging configuration, you'll end up having 20 TDMS files when the run is complete. If the system crashes, any files that are already done writing will not be corrupted (I tested this). All you need to do is concatenate the files to make a single one. If this would work for you, we can talk about various solutions we can provide to accomplish this task. Let me know.
    Now there is one thing I want to bring to your attention about logging multiple files from SignalExpress, whether you use "current log' or "new log". The Windows OS is not deterministic. Meaning that it cannot guarantee how long it takes for an operation to complete. For your particular application, this basically means that between log files there will be some short gap in time that the data is not being saved to disk. Based on my testing, it looks like this time could be between 1-3 seconds. This time depends heavily on how many other applications Windows has running at the same time.
    So when you concatenate the signals, you can choose to concatenate them "absolutely", meaning there will be a 1-3 second gap between the different waveforms recorded. Or you can concatenate them to assume there is no time gap between logs, resulting in a pseudo-continuous waveform (it looks continuous to you and the analysis routine).
    If neither of these options are suitable, let me know.
    Thanks, Jared 

Maybe you are looking for

  • "Bad" markup for non-English language in JSF

    Hi, the question emerged in "Problem ADF af:document i18n" thread, but, as I saw, it is more common, so I made this new thread. The question seems very simple, but by the moment I can't find an answer and it makes me doubt about the ability to use JS

  • Help defining a complexType in schema

    Hi I am hoping someone can help me out. I have a number of attributes in an xml file which contain different structures based on whether it has a single of multiple value. As an example, one of these elements refers to optical filters. If it is singl

  • Getting properties of music files?

    Hey, I've been looking around, and I can't find a way to get hold of the artist, song name, legnth of the mp3 or other music file ect. I'm trying to get information about multiple mp3s to put into a swing table. Can somone guide me in the right direc

  • InDesign Library Changes Font?

    I'm new to using ID libraries (but not ID) and I ran into a problem.  In a previous project, I loaded different objects into the library.  When I started my new document where I need to use these objects, it changes the font in the objects from Helve

  • How many people are allowed to sync itunes products to one computer?

    My iTunes library has the most content of most of my friends. Some of my friends don't like what they have on their library and some don't have a computer at all. So, a lot of people have synced their iPods and iPhones to my computer. For example, a