With an average of a spectral waveform and view / save

Hello world!

I am currently on a University project that consists on the use of Labview to obtain data and spectra of atmospheric plasmas using a spectrometer Ocean Optics HR4000.

After not not using Labview for almost a year, I managed to get most of my knowledge back and I managed to display the spectral waveform, that I expect to get. However, as this is a fairly simple design I get a lot of noise and I would on average it for a graphic display more smooth.

I looked into a lot of messages from the forum, but I couldn't really find what I was looking for.

I also had a problem when you try to save the data and Spectra: I can't find anything in the directory of my VI.

In the attachment you will find the current VI I'm trying.

Thanks in advance for your answers!

Jeremy

I wrote an example for you below. This is an excerpt from VI, so you can drag the .png in your diagram and it becomes code. Pretend that everything in the green box is your Subvi spectrum acquisition.

-Place the Subvi in a loop to run as many times as you like on average there

-Out of the loop For is a table 2D with individual spectra on the lines

-Transpose output, so individual spectra on the columns

-Enter the table another loop to take the average rank by rank (with an average of different Spectra togeter).

-Output is 1 d spectra average table

Tags: NI Software

Similar Questions

  • How to download an image in the folder and view using MySQL?

    Hello

    I want to create a page where a user can upload a picture and then I want to keep the details of the image in MySQL and PHP dynamic text allows you to display the image. Is it still possible? I have so far failed in my quest to find help on google or anywhere else besides.

    Basically what I want to do is create a page where the houses/lodges can save their information: name of the institution, Image of the institution, location, website, price range, etc. I want to allow them to download a picture from their school and the download location to a folder and, as I mentioned earlier, store only the information required to retrieve and display the image in the MySQL DB. Then, when a customer uses the search page, I want to display the results in a way that will allow them to see the image beside the name.

    Please PLEASE please someone help me I will be more than very happy. If someone has a script they let me use or at least a good tutorial or a link to worthy of information please let me know.

    Thanks in advance.

    Cedric

    There are many facts about PHP scripts or tutorials out there (google 'PHP file upload') that help you download the files in a directory on your server, but I ve never pinned scripts/tutorials that are a little "specific Dreamweaver' and you say how to integrate this functionality with insert/update server behaviors recording existing and even save info to files in a database.

    At this point, you can consider using an extension of Dreamweaver as PHP X Upload (by FelixOne) which seems to satisfy all the requirements you mention.

    See you soon,.

    Günter

  • With an average of 10 channels of waveform separately

    I've written a VI that takes input from 10 different devices then shows in several graphics and then saves in PDM. This works perfectly well. The problem is, on my PDM data, is saving 25 samples per second creating a file of long worksheet for short durations. Im trying to figure out how to reach an average of each channel independently (average 25 samples) and print it out every second, so there should be a 1:1 ratio between my timestamps and data, not 01:25 how it is now. Thank you!

    Personally, I just averaged 100 samples you take.  If this simple solution is to replace your table decimate (inside the square structure) with a Mean.vi.  You will need to use a range of build with a single input to transform a table to write in the waveform (still inside in Place element Structure) of the average.

  • Assistance needed: average N amount of waveforms

    Hello

    First of all, I have my apologies to re-post this topic, but I didn't help I need the last time I asked, probably because I didn't clearly what my problem was. So here goes...

    What I need is for some genius here to show me how the average amount of N of waveforms. I am able fluctuations of current in a specific time window (this depends on the amount of samples and of course sampling rate that I use).

    Currently, I record quantity N of waveforms (time series), but what I want to do is only to record an average undulating, e.g. n1 + n2 + n3/N (N = 3).

    I gave it a go using a loop, but it didn't give me the results I want (I know what's the problem with him, but don't know how to produce the waveform on the average).

    In summary to be as clear as I can be,

    (1) I am recording N waveforms of the DAQ Assistant

    (2) I want to collect in a queue and then take the average of the N wave

    (3) save the medium wave to my function write.

    Attached are 2 versions of LabView to my project.

    I would really get this spot and exploit this week if possible and would be very grateful for help in changing my vi.

    Thank you very much for reading!

    12.


  • Cross spectral power and consistency of the 2 signals

    Hello

    I try to get the cross-spectral power and consistency of the two signals. I should be able to get this:

    "The cross-spectral power and consistency of these 2 signals have been calculated on a window (8.5 minutes) 1024-sample using the fast Fourier transform applied to the 3 overlapping of the panes of 512-sample in the window of 1024 consistency." In each pane, the data were the first linear straightened and with windows by using the Hanning (cosine) function before the calculation of the Fourier transform. The 1024 coherence window was so advanced by 256 samples (2.1 minutes), and the calculation repeated until all BDUS/interval of N - N series have been analyzed.

    We used the product of consistency and the cross-spectral energy to weight these 2 effects in order to quantify the degree of the hitch.

    I should get this chart type

    The RR signal I straightened before that trying to get the power crossed with sampling freq = 2. And I put 2 ways to get it.

    consistency too and later the product of the two. Im trying to get the spectrogram and watch later 3d like picture.

    I have attached the vi.

    Consistency is perhaps badly fixed.

    Thanks for the help, guys.

    Kind regards.

    you made a few mistakes, example en by overhauling it you can't do the segments overlap, that's why you should go with a loop and the creation of a subset (and this is why I suggested para window ASD)

    You must also set the indexing of the product release and do not concatenate, penny you released 2d end that you can use for 3d graphics

    FS in the mathscipt should also be in hz, not in seconds, I told you the last time (he is shown in the help)

  • Covered wagon with an average of analog voltages DAQmx

    I searched through screws, I can't seem to find something that will automatically average numbers of boxcar fed into it. I am trying to create a feature of my software that will allow the dynamic configuration of the car covered with an average of some inputs. I would like to avoid hard-coding tables which are filled/rotation etc etc.. Any help is appreciated

    Thank you

    If you use a Functional Global to store the values and call that VI of two different screws, you will access the same data. You could use two Global in the functional shift registers and use a selector to place / extract data from / to the appropriate shift register. Only VI call access one commune VI at the time, so one of the caller of the screw will be 'blocked' until the first caller is done. This does not usually work for data acquisition applications high speed.

    You might consider using named queues instead of functioning overall. You might be interested in this thread on the forums of LAVA that deals with boxcar implimentations. You create a queue for each data stream and can perform functions such as "preview" queue to get all items without actually removing them from the queue. If you use a LabVIEW 8.6, there is a new feature called with loss of queues. You set an upper limit on the size of the queue and "lossy enqueue" allows to add items at the end of the queue. If the queue fills up, then the oldest data element will be lost.

  • Waveform and its slope

    Hello.. How can I get a subset of a waveform and its slope between 1.5 and 2.5 volts from a 4 v p - p, 100 Hz sinusoidal with an offset of 2V (by a waveform generator). Please help me in this regard.

    Hello

    For the subset of wavefor plug, you can use "Get the Subset.vi waveform" or "extract the portion of the signal" express vi

    To find the slope, you can use "Measurement.vi Transition"

    Hope this helps

    Concerning

    David

  • Find the area between the axe of waveform and time

    Hello.

    I have acquired a signal to 1ms rate. I recorded in a .lvm file, and now I want to calculate the area between the axe of waveform and time. So, it's a classic integral.

    So, I create a .vi separated with a module for reading measurement, but I don't know which is the right module of integration, in this case. I tried all the modules to integrate to find the area, but no good result.

    PS: I also want to display this area, hasurate, somehow, but it's secondary.

    Any idea?

    For the first part, we should look at your code and data.

    The second use the "Fill" option available for the plot which will fill in the specify box.

    Ben

  • with an average of 5 minutes of data - is no way

    I need average 5 minutes worth of data, save this average and then again on the next 5 minutes of data, with an average of this data block.  I tried to use the average function pt-pt in LabVIEW, but who seems to take an average continuous market, I do not want.  I probably read data once every 0.1 seconds, so I can not used stacked registers at offset, because it would be not very economical. I thought to build a table, but I don't know how to remove all the data at a time on average to it in an efficient manner, and more I'm stuck on the concept of re - create the table/clear the Board after five minutes of data has been collected, averaged and recorded.

    Does anyone have a suggestion?  I would really appreciate any advice or suggestions on how to go about it.

    Keep a running total in a shift register.  When your 5 minutes have expired, divide the sum by the number of samples taken, the sum to zero and start over.

  • Waveforms and other analog contradictory

    Hello

    The vi that I am trying to program, I have 4 outputs analog at my disposal as well as some that I can use memory on-board.  With success, I was able to create two two outputs analog waveforms using the amount of memory onboard.  I have also successfully been able to exit through the other two sheets.  When I try to make these separate tasks at the same time, they collide and I get an error saying that the resource is already reserved.

    The way I do now, it is that I have two separate tasks, one for the two waveforms and one task for the two other analog output that I want to be able to change.  The error indicates that the resource is reserved for the waveform when I try to exit through the other two outputs analog.

    Is it possible to have four channels in one task, but two of these channels of output waveform of the amount of memory shipped and two other output one value at a time?  If so, how?  If not, is it possible that I can accomplish this task?

    Thank you

    Michael Bentley

    Well, I tried it and for some reason I can't explain, it works.  The two channels that were out a unique value, I don't attach to a timer at all, their speed is determined by the speed of the while loop output is on.  Waveforms work wonderfully with the memory embedded in the card and use the timer as well.  They are in two separate tasks and work.  Problem solved.

  • Power SVFA - with an average of question spectrum

    Hi all

    I used the power spectrum of SVFA to treat a signal from a trasnducer of pressure. All the options associated with this block seems to work very well with the exception of the settings on average. I used Linear/One Shot mode and assign number ofa averages 20. The prioblem is once it reaches 20, it continues to go further. I added a boolean flag to check if she treated the number required of averages, he did in fact. So now I'm stumped. Restart of the averagting seems to work as expected so.

    Any thoughts?

    Oleks:

    The sounds and vibrations help file for the Modes of time on average, we see that this is expected behavior:

    "In an average of peak-hold, the largest value of sound pressure level measured in all the previous values is calculated and returned until a new value is greater than the current maximum. The new value becomes the new maximum value and the returned value until a new value is greater than it. Peak hold is not really a form of averaging because successive measurements are not mathematically average. However, as with other processes of establishing an average, average peak-hold combines the results of several measurements in a final measure. As for the average exponential, the process of averaging continues indefinitely. »

    So because Peak Hold do not average in the strict sense, it does not restart on average the number of averages you specified as RMS and the vector average which are a true average.

    Tori, w.

  • What is this calculation of parameters of the analysis executable average reliability has stopped working and was closed

    What is this calculation of parameters of the analysis executable average reliability has stopped working and was closed

    Hi Mary,

    ·         You did any computer change?

    ·         When we get this message?

    Follow the steps mentioned below:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135   
    Note: when you have completed troubleshooting by clean boot follow steps 7 to place the computer in his usual way

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    If none of the options work perform the system restore

    What is system restore?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    Reply back with the results

  • Problem with El Captain (5.1.7 server) and the management of permissions

    Hello world

    I have a big problem with our Mac Mini Server (El Captain) and the server program.

    In recent weeks, the server didn't give the permissions of a folder.

    for example:

    Mr. X had permission to read and write to a folder.
    Mr Y too.

    Mr. X has create a new folder one record something in it.

    Mr Y had the permission to read or write to the folder create Mr. x. But he should have.

    Or

    Mr. X has save a file to a folder

    When he opens it again it is write protected and cannot be replaced.

    So you have to save under a different name in the same folder.

    And every time he save/close the file.

    Anyone know what could be the problem?

    Thank you

    Greetings from the Germany

    Chris

    My guess:

    A few weeks ago someone messed with the permissions on your server and made a mistake. So, you got an inappropriate list ACL (Access Control), which is rampant in the file and must be removed or fixed.

    http://www.TechRepublic.com/blog/Apple-in-the-enterprise/introduction-to-OS-x-AC cess-control-lists-ACL.

    C.

  • Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi?

    Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi? When I try this Apple TV does not appear in the list of devices on my iPhone.

    Yes, I'm doing exactly this with the same put in place.

    If the problem persists the next relative to the following articles might help you.

    Troubleshooting home sharing

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

Maybe you are looking for