LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate dc signal and observe it on a waveform graph

Hi

I need to generate 2 sine wave and a DC signal and observe them on the same  Graph..There is no problem 2 generate 2 sine wave but I dont know what is the easiest wat to generate the DC one.I have tryed Bulid waveform and Sine waveform functions but I couldnt get what I need.any helps really appricated.

0 Kudos
Message 1 of 4
(4,203 Views)

Hi en99,

 

Are you just displaying it on the graph?  Do you know how many elements long the other elements will be?  You could use the initialise array function with an initial value for the DC level you want, same length as the other signals and then that should appear as a DC signal on the graph.

 

19725i1613C5F809467C34

 

Regards,

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
0 Kudos
Message 2 of 4
(4,196 Views)

Many thanks James

just one question is it possible to have both sine wave and this DC voltage on teh same graph because one is waveform dbl and the other one is double dbl.I would like to have both on the same waveform graph.I know the lengh for the other signals but as I said they are different.they are waveform DBL and this one is double DBL

0 Kudos
Message 3 of 4
(4,190 Views)

Hi,

 

If you look in the waveform palette there is a function to build a waveform.  If you write the dbl array into Y and then the same dt and d0 values as the other waveforms then you can build an array out of all of them.  The simplest way is to write one of the other waveforms into the top and just write Y data in it will use the existing dt and d0.

 

19735i2776B741545D7DFB

Regards,

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
0 Kudos
Message 4 of 4
(4,180 Views)