01-08-2013 07:14 AM
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
Solved! Go to Solution.
01-08-2013 11:41 AM
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
01-09-2013 09:45 AM
really thankful to you sir for your valueable help....it is working 🙂