01-24-2014 07:37 AM
Dear All,
I am new to LabView.
I am looking to generate a sine wave, multiply it by a random number, then average the data over 30 minutes and write it out to a text file.
Can anyone help with this process?
Thank you for your help.
Nathan
01-24-2014 07:41 AM
You don't need a program for that. The average over a sine wave for many periods is zero.
01-24-2014 07:43 AM
You've stated your aim fairly clearly, all of the VIs exist to do what you need ...
What specifically is the problem ?
01-24-2014 07:45 AM
This is am exercise before using labeled to write a text file of actual instrument generated diurnal temperature and humidity data
01-24-2014 07:47 AM
You don't need a program for that. The average over a sine wave for many periods is zero.
Good point. Although if the sine wave in multiplied by a different random number on a point by point basis the average could be anything !
01-24-2014 07:53 AM - edited 01-24-2014 07:55 AM
Well, my intention was to show that an unclear request may lead to unexpected responses. And the last post seems to show the problem. He wants somebody to do the exercise for him.
01-24-2014 07:54 AM
@NeilR wrote:
Good point. Although if the sine wave in multiplied by a different random number on a point by point basis the average could be anything !
If your Random Number Generator is good, you'll still get an expectation value of zero.
OP: I'm not sure your exercise is representative of what you're actually trying to do. Have you figured out your data acquisition from your instrument already? If so, I'd use that as a starting point.
01-24-2014 07:54 AM
Hi doctor,
these are 4 basic steps. Apart from 3rd step all these are very basic by using existing functions in LabVIEW...
Please start by
- using the SineWaveGeneration function
- using the multiply function with a random number
- using the SaveWaveformToFile function.
Please ask specific questions and attach your VI!
01-24-2014 09:51 AM
thanks for an answer that makes you look clever and me look stupid, and all before 8 in the morning.