09-10-2010 08:22 AM
Hi, I am trying to tweak my sine wave generation to have sharper peaks at the wave maxima and minima. I wanted to add two waveforms together to do this, although I'm open to better ideas.
I've attached what I'm trying to do. I got close to the shape I'm looking for , but how can I get the waveform to repeat across the whole interval without manually inputting all the values to 1 in the simulate signal vi?
Also is there a way that I can make the second waveform being added adjustable for different frequency's?
For example, if I decide to use a 100hz signal and add these sharper peaks and valleys, but then want to change to a 200 hz signal. I would like the secondary waveform to match up with the frequency interval, and have constructive interference in the correct locations.
I hope that makes some sense.
Thank you for your help,
Arthur J.
09-13-2010 05:12 PM
Maybe something like this?
09-14-2010 02:13 AM
Thank you very much for helping me out,
could you possibly bring it into LabView 2009 for me though, I don't have LV10 available to me.
Thanks again,
Arthur J.
09-14-2010 05:12 PM
My apologies, here you are
09-15-2010 02:37 AM
maybe this is a dumb question, but wouldn't that be the same as doubling the amplitude of just one wave?
09-15-2010 05:10 PM
Yes and No, This absolutely will double the amplitude of your signal, but one is a sine wave and the other is a triangle wave. The triangle wave will give each amplitude a sharper peak.
09-24-2010 08:01 AM
Thanks again, and sorry for being away for a while.
I tried to implement it in my code but I recieved an error regarding matching sampling rates between channels.
For example say I have 2 channels being written. Channel 1 is a sine waveform with sampling info of:
Fs = 10K
#s = 10K
I tried to make Channel 2 the combined waveform with each part (triangle, sine) having Fs of 10K and #s = 5K, but I got an error that I need all the waveforms to match
How can I maintain information so that I can have the daq device output one channel of the pure sine wave and one channel of the sine+triangle waveform?
Thanks for your help,
Arthur J.
09-27-2010 02:37 PM
I'm not too clear on what you are trying to do, please post your code and screen shots so that I can better understand the issue. Thanks,
09-29-2010 07:34 AM
I took a piece of the whole vi, and attached it to show what I mean.
I think the issue is in the sampling information given to the waveforms being generated, but I'm just not sure on how to configure them correctly.
Thanks for any help,
Arthur J.