Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Running DAQmxWithUI example DotNet

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 3
(4,250 Views)
Solution
Accepted by topic author kusg

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.

National Instruments
Message 2 of 3
(4,246 Views)

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.

0 Kudos
Message 3 of 3
(4,233 Views)