LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run program continously and save data averages

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!

0 Kudos
Message 1 of 6
(2,144 Views)

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

Alejandro C. | National Instruments
0 Kudos
Message 2 of 6
(2,102 Views)

Thanks for the help! I will look into that.

0 Kudos
Message 3 of 6
(2,096 Views)

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!

0 Kudos
Message 4 of 6
(2,087 Views)

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.

Alejandro C. | National Instruments
0 Kudos
Message 5 of 6
(2,064 Views)

Alright thanks for all the help!

0 Kudos
Message 6 of 6
(2,049 Views)