12-19-2011 08:51 AM
When I call NationalInstruments.Analysis.SpectralMeasurements.Measurements.PulseMeasurements I am getting the error unable to find entry point.
I am using
Microsoft Visual C# 2010 01019-315-4422995-70201
NI Measurement Studio 2010
Measurement Studio for Visual Studio 2010
I get a similiar error Unable to find entry point named 'AALFunc365' when I call
NationalInstruments.Analysis.SpectralMeasurements.Measurements.CycleRmsAverage
Calls that are working are
NationalInstruments.Analysis.SpectralMeasurements.Measurements.ACDCEstimator
NationalInstruments.Analysis.Dsp.SignalProcessing.PulseParameters
12-20-2011 02:07 PM
Hi marcblock,
I looked into this error and the information that I found talks about case sensitivity when calling into a dll. Are you calling into a dll of some kind. Could you cut and paste the portion of code that is causing this? Also the document that you uploaded was corrupt so could you up load it again?
Regards,
Perry S.
12-20-2011 02:53 PM
Thanks a million for your reply
This is the code that I would love to get working
double amplitude10Percent = 0, amplitude50Percent = 0, amplitude90Percent = 0, topValue = 0, baseValue = 0, overshoot = 0, undershoot = 0, slewRate = 0;
int delay = 0, width = 0,riseTime = 0, fallTime = 0;
NationalInstruments.Analysis.SpectralMeasurements.Measurements.PulseMeasurements(valueArray, 90, 50, 10, NationalInstruments.Analysis.SpectralMeasurements.ReferenceLevelUnit.Percentage, NationalInstruments.Analysis.SpectralMeasurements.MeasurementPolarity.High,
1, out period, out pulseDuration, out dutyCycle, out pulseCenter, out hiLevel, out midLevel, out lowLevel);
12-22-2011 09:59 AM
Hi blockmarc,
I ran the code that you sent with out making any changes and it worked just fine. Do you have the correct version of the analysis library referenced? Could you zip up your project and upload it so that I could take a look at it?
Regards,
Perry S.
12-22-2011 11:27 AM
Thanks a million for looking in to this
--Marc
12-27-2011 09:41 AM
Hey Marc,
I ran the project you posted and it compiles and runs for me. I do get an unhandled exception error -20308 when I use "button1" on the user interface as its running but that is associated not actually taking any actual measurements for the program to read. Does that sound like the behavior you are experiencing, what I mean is when you run your code does your project compile and allow you to debug or does it not even compile? Also what DAQ hardware are you wanting to use this program with?
One thing when I opened your project I had to update the driver editions because my system has DAQmx 9.4, not to say that is why it worked for me only identifying differences in our software.
01-05-2012 02:04 PM
I have installed the DAQmx 9.4 drivers. I am still getting the same error
In response to your questions:
I am able to build the code without any problems.
If I try to run it without the daq device attached I get an error that I do not have the daq device attached.
If I attach the daq device an power up only the daq device I get no errors when I start running the program. When I click on button 1 I get the error. I have attached the complete text of the down load or
System.EntryPointNotFoundException was unhandled
Message=Unable to find an entry point named 'AALFunc364' in DLL 'nianlys.dll'.
Source=NationalInstruments.Analysis.Enterprise
TypeName=""
StackTrace:
at NationalInstruments.Analysis.Internal.l.a(Double[] A_0, IntPtr A_1, Int32 A_2, IntPtr A_3, Double A_4, Double A_5, Double A_6, Int32 A_7, Int32 A_8, IntPtr A_9, Double& A_10, Double& A_11, Double& A_12, Double& A_13, Double& A_14, Double& A_15, Double& A_16)
at NationalInstruments.Analysis.SpectralMeasurements.Measurements.PulseMeasurements(Double[] signal, Double highReferenceLevel, Double midReferenceLevel, Double lowReferenceLevel, ReferenceLevelUnit units, MeasurementPolarity pulsePolarity, Int32 pulseNumber, MeasurementMethod percentageMethod, Int32 histogramSize, Double& period, Double& pulseDuration, Double& dutyCycle, Double& pulseCenter, Double& highReferenceLevelAbsolute, Double& midReferenceLevelAbsolute, Double& lowReferenceLevelAbsolute)
at NationalInstruments.Analysis.SpectralMeasurements.Measurements.PulseMeasurements(Double[] signal, Double highReferenceLevel, Double midReferenceLevel, Double lowReferenceLevel, ReferenceLevelUnit units, MeasurementPolarity pulsePolarity, Int32 pulseNumber, Double& period, Double& pulseDuration, Double& dutyCycle, Double& pulseCenter, Double& highReferenceLevelAbsolute, Double& midReferenceLevelAbsolute, Double& lowReferenceLevelAbsolute)
at MeasurementsTest.Form1.button1_Click(Object sender, EventArgs e) in C:\Work\MeasurementsTest\MeasurementsTest\Form1.cs:line 33
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MeasurementsTest.Program.Main() in c:\Work\MeasurementsTest\MeasurementsTest\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
01-05-2012 02:22 PM
I looked at
C:\windows\system32 for nianlys.dll and found it
Then I looked at the version number which is 8.1.1.359.
Is this the correct version for the dll? Also is it possible that when I was installing measurement studio that I might not have had the proper authorization? Perhaps some this dll did not get entered properly in the registry?
Thanks for your help
--Marc
01-05-2012 02:38 PM
I also notice that in C:\WINDOWS\assembly
I am missing NationalInstruments.AnalysisEnterprize,
a coworker has this assembly. When I look at my assembles the first ni assemble that I have is Common.
How do I get these missing assemblies installed?
01-05-2012 04:10 PM
I did find the Assembly it was at
C:\Program Files\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies\Current
runtime version is 4.0.30319
version 9.0.40.292