12-09-2011 04:07 AM
Hi, I have an error when I try to run an example DAQmxWithUI using Measurement Studio 2008 -- SynchronizeTwoAIContinuous example. The error basically stated that I do not have the license for the analysis module. My question is that I do not see in the example code that is importing the analysis module. Is there something I miss in order to build the example ?
Thank you.
K.
Solved! Go to Solution.
12-09-2011 12:29 PM
This example does use the Analysis.Math library which requires a license. This example is installed with Measurement Studio instead of DAQmx and it is assumed that you have a license for all Measurement Studio components. If you would like to use this example, you can remove the assembly from the project references list, and remove the using statement. Then when you rebuild, the errors will point you to the ArrayOperation.CopyRow methods. These can easily be replaced with your own code.
Alternatively, you can use the DAQmx .NET API examples which do not depend on a Measurement Studio license. They can be found Start>>All Programs>>National Instruments>>NI DAQ>>Text-Based Code Support>>.NET 3.5 Examples.
If you have a valid Measurement Studio license, try refreshing the license file. In Visual Studio go to the Measurement Studio menu item and select Refresh Project License File.
12-11-2011 11:08 PM
Thanks for the suggestion. I removed the reference assembly NationalInstruments.Analysis.Enterprise, and it builds fine. I checked the Measurement Studio license installed, it includes NationalInstruments.Analysis.Professional but not the Enterprise, thus explained the build error.