Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Error with analysis histogram function

Thanks.  This seems to have solved the problem.  I just wish there was a way to publish the MKL with the app as a prerequisite.

0 Kudos
Message 11 of 14
(1,615 Views)
I just got a similar problem, but while running in the IDE.
Message:
System.TypeInitializationException was unhandled
Message="The type initializer for 'NationalInstruments.Analysis.Math.ArrayOperation' threw an exception."
Source="NationalInstruments.Analysis.Enterprise"
TypeName="NationalInstruments.Analysis.Math.ArrayOperation"
StackTrace:
at NationalInstruments.Analysis.Math.ArrayOperation.MaxMin1D(Double[] inputData, Double& maximum, Double& minimum)
at N6Tester.TimePlot.autoScaleTrace(Double[]& darr, Int32 numsamp) in D:\Visual C# 2005\N6Tester\N6Tester\TimePlot.cs:line 175
at N6Tester.TimePlot.makePlot() in D:\Visual C# 2005\N6Tester\N6Tester\TimePlot.cs:line 157
at N6Tester.DataReceiveTask.displayProcess() in D:\Visual C# 2005\N6Tester\N6Tester\DataReceiveTask.cs:line 104
at N6Tester.DataReceiveTask.dataReceiveTask() in D:\Visual C# 2005\N6Tester\N6Tester\DataReceiveTask.cs:line 60
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

My project was working fine until I added a new Form with a few NI components, a Slide and a NumericEdit. After that I got this exception on ArrayOperation.MaxMin1D(), which is not at all releated to the new code.

It is not easy to see from this message whet the problem is. But by clicking on "View detail" I could see this on the InnerException: {"NationalInstruments.Restricted.AnalysisLicenser is unlicensed."}

I then had a look in licenses.licx, and found that the line for Analysis was gone. Putting it back in cured the problem.

What is going on here?
0 Kudos
Message 12 of 14
(1,579 Views)
Usually our integration with Visual Studio ensures that the analysis license string is always present. Visual Studio handles adding license strings from controls and components that you drop on the form. VS might have refreshed the licx file and removed the license string for analysis from it, since it does not know about license strings for libraries that are not dropped on the form. The analysis libraries do not have components associated with them. They are just libraries that are added as references.

Our integration will prevent problems like these from happening once we released full support for VS 2005.

I apologize for the inconvinience.

Bilal Durrani
NI
0 Kudos
Message 13 of 14
(1,575 Views)
OK, thanks. I can live with that, now that I understand why it happens.
0 Kudos
Message 14 of 14
(1,568 Views)