LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I add the signals produced by two signal generators

I have created two signal generators, I need to add the two values, multiply them by a constant, and sum the values of the signals over a period of time. What is the best way to do this? I can't even get the two signals to sum. It tells me that the two signals aren't of the same data type. They are identical though.
0 Kudos
Message 1 of 6
(12,751 Views)
Hi, heres a couple of suggestions. U could try using "Add waveforms vi" to add your two signals together then simply use a multiply with a constant conected to it and the period of time can be done many ways, but i will have to look at your program to do this.

Stuart
Message 2 of 6
(12,751 Views)

hello,

 

I also have two sine waves generated ( two sine waveform vi's of different frequency, but same no of samples and sampling frequency).

Now i want to add these to to get a  third signal, but i need to sample it at a different frequency ) which block can i  use for it.

here is the incomplete vi.

 

ex -the third signal could be  y(t) = a1 sin ( 2pif1 t) + a2 sin (2pif2t).

 

i do not know to which block i should connect the output of sinewave f1 and sine wave f2 to get y(t).

 

 

Thanks,

 

 

Message 3 of 6
(12,489 Views)
I have such question--how can I convert the signal(its amplitude) to integer in Labview? Is there such possibilty? And another question is about why I cannot create the DC signal with any amplituide other than 0--how can I do it? And just DC signals I need to sort -- so I want to add its values, multiply by constants, substract, integrate, compare--could I do it without conversion? Just using the math and other operations and functions?
0 Kudos
Message 4 of 6
(10,070 Views)

@ant11 wrote:
I have such question--how can I convert the signal(its amplitude) to integer in Labview? Is there such possibilty? And another question is about why I cannot create the DC signal with any amplituide other than 0--how can I do it? And just DC signals I need to sort -- so I want to add its values, multiply by constants, substract, integrate, compare--could I do it without conversion? Just using the math and other operations and functions?

1. Array Max & Min

2. Initialize Array with whatever value you want your DC signal to be at

3. You can just use the normal math operations on arrays

 

If you supply examples and show what you have tried and what you want, we can give a lot better help.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(10,063 Views)

It is easy to grasp. But I want to know can I do some multi-level display of several signal on one Graph. (several y-axis -n my case at least 6)

I could do it in Simulink so I want to know can I do the same in Labview.

Moreover there is opportunity to display the results of Simulink block manipulation of signals in Labview. 

And one question - If I created the  block diagram in Simulink for Signal transformation --with the integrator, summator, If-else block (it seems no such function Labview but it could substituted by Case Swith or other way?), comparator (relation operation like <,>) how the timing of such simulation in Labview could be different then in Simulink?

If the components could be the same the results should be the same as it is just mathematical design?

Or I am not correct. Despite there should be difference as gor example to compare 2 signals I just use the operator > in SL and its produce the 1 or 0, but in Labview I need to use this comparation that produce True and False as well as the next function True(False) to 1(0) as well there should different application of If-else block despite the key component should be the same (but with one cycle) and just one initial value of 0.

What are your suggestions?

0 Kudos
Message 6 of 6
(10,036 Views)