05-10-2012 04:58 PM
Hi,
My name is Satyaki. I am a new Labview user. I have a vi that generates a waveform by taking input data from a spectrometer and then outputs data to a file continously during the program runs. In this process the data generated by this program gets overwhelming, so I am trying to get an average data of about 10 data points and ouput that a file, to decrease the amout the data being generated. How would I go about doing this? Below is an attached vi that was given to me that I am using right now.
Thank you in advace for all the help!
05-11-2012 03:19 PM
Hi Satyaki, welcome to the NI forums! I did a little research and I think I found your instrument driver here. All these drivers come with examples and I think that what you are looking for is something alike the attachment. The examples folder should be located at C:\Program Files\National Instruments\LabVIEW XXXX\instr.lib\Ocean Optics 2000 4000\Example. I hope this helps
05-11-2012 03:34 PM
Thanks for the help! I will look into that.
05-11-2012 04:45 PM
I looked through those and they weren't exactly what I wanted. I am looking for a vi that can take a continously changing waveform and produce an average waveform from 1min of raw data and output that onto a file and then take the next 1min of waveform and average it and output that onto a file and so on (or something similar to that). Thanks for the help!
05-14-2012 12:07 PM
Then I would suggest using the "Ocean Optics 2000 4000 Acquire Continuous Waveform.vi" as a template, then you need to add the average calculation, similar to this example. What is left is the file logging. I'm sure there are other examples that you can use as templates and work on them, so I would suggest to keep looking. Good luck.
05-16-2012 10:17 AM
Alright thanks for all the help!