Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

type"whitenoisesignal" not defined

Solved!
Go to solution

hello everyone,

i am trying to learn use of mstudio controls in vb.net.i made an application to learn the working of wave form grapg and gauge .

for that i followed all the steps perfectly as given in this video "https://ni.adobeconnect.com/_a56821929/p51878979/?launcher=false&fcsContent=true&pbMode=normal"

 

still it is giving 2 errors

a)type"WhiteNoiseSignal"not defined

b)name"Statistics"is not declared

 

 

this is my code:

                  

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Declare and initialize an instance of WhiteNoiseSignal.
Dim whiteNoise As New WhiteNoiseSignal()
' Store the generated data in a double array named data.
Dim data As Double() = whiteNoise.Generate(1000.0, 256)
' Use the PlotY method to plot the data.
Plot.PlotY(data)
' Use the Mean method to calculate the mean of the data.
Dim mean As Double = Statistics.Mean(data)
' Display the mean on the gauge.
Gauge.Value = mean
End Sub

 

and when i am debugging it is giving message project.exe is missing .

 

 

please help me

 

 

0 Kudos
Message 1 of 3
(5,543 Views)
Solution
Accepted by topic author jaipachouri

Hi,

 

You need to set a reference to the NationalIntruments.Analysis class

 

Statistics is in NationalIntruments.Analysis.Math

 

WhiteNoiseSignal is in NationalIntruments.Analysis.SignalGeneration

 

Curt

0 Kudos
Message 2 of 3
(5,539 Views)

really thankful to you sir for your valueable help....it is working 🙂

0 Kudos
Message 3 of 3
(5,533 Views)