From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatibility between Measurement Studio 8.6 and DaqMX 15.1

We have an application that makes use of Measurement Studio 8.6 (Windows.Forms UI, Analysis...) and DaqMX.

We recently upgraded to target DaqMX 15.1 so as to be able to use CounterMultiChannelReader for a specific CompactDaq module that requires it.

 

We end up with the following references:

NationalInstruments.Analysis.Enterprise 8.6.35.465

NationalInstruments.UI 8.6.35.465

NationalInsturments.UI.WindowsForms 8.6.35.465

NationalInstruments.DaqMX 15.1.40.61

 

The project targets Framework 4.0.

Under visual Studio (2012) this compiles just fine with a warning on the election of NationalInstruments.Common 15.0.40 over 8.9.35:

Unable to resolve conflict between "NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298" and "NationalInstruments.Common, Version=8.9.35.302, Culture=neutral, PublicKeyToken=18cbae0f9955702a". Arbitrary choice of "NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298"

 

Under msbuild, however, we get errors:

error BC30009 : a reference to assembly 'NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298' containing the implemented interface 'NationalInstruments.ISynchronizeCallbacks' is required.add it to your project.

 

The closest match I could find on my computer is NationalInstruments.Common 15.1.40.49152 (pukblicKeyToken=dc6ad606294fc298) If I add this reference to the project, I get another error about adding a reference to 8.6.35.419:A reference to assembly NationalInstruments.Common 8.6.35.429 containing base class NationalInstruments.EnumObject is required. Add it to your project.

 

We target DaqMX 15.1 because it is the last DaqMX version claiming to support Measurement Studio 8.6 and it does work when compiled with VS. I am at a loss... I suspect the problem comes from mixing 3.5 and 4.0 dlls, where the automatic retargeting of NationalInstruments.Common does not work, but then how can DaqMX 15.1 (which seems to target only FW 4.0) claim to support Measurmeent Studio 8.6 (which targets only 3.5) ?

 

 

0 Kudos
Message 1 of 2
(2,078 Views)

Hi denistroller,

 

According to the readme for DAQmx 15.1, usage in Visual Studio 2012 requires targeting of the .NET framework 4.5: http://www.ni.com/pdf/manuals/374768g.html. I'd give that a try as an initial step.

 

 

Regards,
0 Kudos
Message 2 of 2
(1,962 Views)