Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i generate a shifted sine in LV

i would like to generate a shifted sine in labview . i am already doing it in Matlab and it is very easy there.
how can i do it in labview.the VI for sine generation i would like to use the basic function genertor.
in matlab i use the following code:-

static_preload=4; %kN
amplitude=5; %kN;
frequency=1.5; %Hz

Phi=0;
omega=2*pi*frequency;

t=[0:0.01:10]; %sec

signal=static_preload+amplitude*sin(omega*t+Phi);

plot(t,signal);
xlim([0 5]);
ylim([-10 10]);
grid on
how can i generte the above shifted sine signal in Labview.
Thanks
0 Kudos
Message 1 of 3
(3,230 Views)
Hi hood1

Why doesn't you use the Signal Simulate Express VI?
With this VI you can configurate your sine very simple.

regards

Manuel
0 Kudos
Message 2 of 3
(3,226 Views)
HI Manuel.
Thanks for your reply. yes with signal express VI, we can configure the Offset very easily. i tried to do the same with basic function generator. i am sending the VI and you can see how i am doing it. actually i am adding the output of the basic function generator that is a signal to an Offset.why i am using the basic function generator is because it creates an output waveform based on signal type. so if i would like to have a sine i acn define it in control variable and i will get sine or triangle or square wave etc.
unfortunately the express simulate Vi does not offer the signal type control.it offers but the control one can not bring to the user interface level.one has to double click the simulate express and then there one has to define the type of sine wave. for the normal user it could be not convenient.
thanks for your tips.
Regards
Hood
0 Kudos
Message 3 of 3
(3,218 Views)