LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Waveform Generation

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.

0 Kudos
Message 1 of 9
(3,561 Views)

Maybe something like this?

National Instruments
Applications Engineer
0 Kudos
Message 2 of 9
(3,524 Views)

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.

 

0 Kudos
Message 3 of 9
(3,509 Views)

My apologies, here you are

National Instruments
Applications Engineer
0 Kudos
Message 4 of 9
(3,490 Views)

maybe this is a dumb question, but wouldn't that be the same as doubling the amplitude of just one wave?

0 Kudos
Message 5 of 9
(3,477 Views)

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.

National Instruments
Applications Engineer
0 Kudos
Message 6 of 9
(3,463 Views)

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.

0 Kudos
Message 7 of 9
(3,403 Views)

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,

National Instruments
Applications Engineer
0 Kudos
Message 8 of 9
(3,372 Views)

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.

0 Kudos
Message 9 of 9
(3,344 Views)