NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
LABVIEW321
Posts: 49
0 Kudos
Accepted Solution

Waveform addons

I need to be able to add noise (Gaussian, Uniform  or no noise) to my VI, yes this is a homework problem. I've gone over the book and many tutorials. So I'm pretty stuck on this.

 

Would I need another enum control? But how can I when only one can be hooked up to the case structure? Any hints?

Trusted Enthusiast
aeastet
Posts: 2,199
0 Kudos

Re: Waveform addons

If you look on the pallet you will see that there are many vi's that you can use for generating noise.

 

Example.png

 

The noise vi's are around the bottom. You can also just search for noise on the pallet and you should be able to find them. Did you try searching the examples for noise?

Tim
Johnson Controls
Holland Michigan
Member
LABVIEW321
Posts: 49
0 Kudos

Re: Waveform addons

thanks for the reply,

 

yes I know there are a bunch of vi I can use, but I'm wondering atm I have a enum control to select 3 different waveforms,

however how do I do the same for selecting different noise(uniform, none, gaussian). Since I think you can only link one enum controller onto the case structure

Knight of NI
Dennis_Knutson
Posts: 33,879
0 Kudos

Re: Waveform addons

And why would you even think you need more than one enum?
Member
LABVIEW321
Posts: 49
0 Kudos

Re: Waveform addons

well i have an enum with sine, square, triangle. So while that simulation is running with lets say a sine wave. How would I be able to add different kinds of noise while the program is running.

Knight of NI
Dennis_Knutson
Posts: 33,879
0 Kudos

Re: Waveform addons

I did not realize you were talking about an existing enum for waveform type. So, just create a new enum for noise type. If you know how to create different waveform types with your existing enum, surely you can create different noise types.

Member
LABVIEW321
Posts: 49
0 Kudos

Re: Waveform addons

yeah but the case structure on the attached VI i posted above only takes in one enum i believe.

Knight of NI
Dennis_Knutson
Posts: 33,879
0 Kudos

Re: Waveform addons

This is so elementary. Perhaps you need to review some of the class work. If you have one enum with one case statement, adding a second enum implies what?

Member
LABVIEW321
Posts: 49
0 Kudos

Re: Waveform addons

means adding a another case structure correct? But if the 1st control controls what wave is being used, what's the use of having another case structure with noise? I want it so that i have a sine wave, and then i can also apply a noise to it.

Knight of NI
johnsold
Posts: 10,098
0 Kudos

Re: Waveform addons

Think parallel.  Consider cases with no signal and with no noise.

 

Lynn