09-15-2013 04:46 AM
hello guys
could you please help me for this signal .
i can't make it
i made it in MATLAB but i can't make it in labview
please help me
%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
fs1 = 5; %Hz
fs2 = 15; %Hz
t1 = 0:0.01:2;
t2 = 2:0.01:4;
s1 = sin (2*pi*fs1*t1);
s2 = sin (2*pi*fs2*t2);
t = [t1 t2];
s = [s1 s2];
plot(t,s)
09-16-2013 07:28 AM
Go to the Signal Processing»Waveform Generation palette and drop two Sine Waveform.vi subVIs on your block diagram. Right click on the frequency and sampling info inputs and select Create constant for each. Do this on both sine waveform generators. By default, the sine generator will give you one second of generation of a 10Hz sine wave (10Hz for frequency, 1000 each for sample rate, Fs, and number of samples, #s). Change these so you get the frequencies and duration you want. Now go to the Programming»Waveform»Analog Waveform palette and drop an Append Waveforms.vi onto your diagram. Wire the outputs of the sine waves into the append. Drop a waveform graph (not chart) on your front panel. Wire the output of the append to the graph.
This is very basic LabVIEW. If you plan to do LabVIEW much in the future, I would strongly recommend you go through some of the online tutorials to familiarize yourself with the language. What is available to you will depend upon how your LabVIEW is licensed.
Good luck. Let us know if you need more help.
09-16-2013 12:42 PM
thanks a lot for you attention and answering .
i did it . but one og them is made from 0 to 1 second and another one made from 1 to 2 second . .
how can i change time for them . for example 5 second wave A and 10 second wave B
and where can i see online toturial ?
thanks again
09-16-2013 01:07 PM
You can find a set of tutorials here.
09-16-2013 01:34 PM
and about making desire signal ? (5 second and 10 second)
09-16-2013 03:38 PM
Change the number of samples, the sample rate, or both, to get the desired length. time = #samples/sampleRate
09-17-2013 11:33 AM
thanks very very much .
and know i have 2 signals with 2 frequencies and 2 times .
5 Hz , 3 second and 10 Hz , 3 second ,,
know i want to use adaptive filter for segment these two signals . the changing time is important for me .
do you know how can i detect frequency changing time by adaptive filtering ?
thanks again
09-17-2013 11:58 AM
I know a couple of methods to do frequency detection, but do not know much about adaptive filtering. Check out the Signal Processing»Waveform Measurements palette for some ideas.
09-17-2013 12:34 PM
i'm so sorry for bodering you .but can i have 3 or more frequncies in a signal ?
with appended waveform i can have 2 freqiencies in a signal
09-17-2013 01:18 PM
Take your appended signal with two frequencies in it and append another signal to that. Now you have three signals. Repeat as needed .