09-02-2010 01:04 PM
Hi,
I have Visual Studio 2010, IMAQ Vision Development Module 2010, Vision Acquisition 2010 and Measurement Studio 8.6 installed on my machine. I confront a severe problem as both vision acquisition and measurement studio have a common assembly (NationalInstruments.common). Whenever I add reference to any of them, the other product have an undefined classes. I can not put both since reference checker keeps telling me that it is already added.
I tried make the reference local, also I made the property use specific version false. Nothing changed.
Hope that someone could help me in this regard.
09-03-2010 12:07 PM
Hi -
The NationalInstruments.Common is an assembly that is common to all of our assemblies, so you should only need to add the most recent version to your project. Please post a list of the assemblies and their versions from Vision and Measurement Studio that you are using, so that we can try to reproduce this issue here.
Thanks,
John M
09-06-2010 03:29 AM
Dear John,
Thanks for your reply. Here is a list of NI assemblies I added to my project
Reference :National Instruments.Analysis.Enterprise
Runtime Version: 2.0.50727
Reference :National Instruments.Common
Runtime Version: 2.0.50727
Reference :National Instruments.Common.Native
Runtime Version: 2.0.50727
Reference :National Instruments.UI
Runtime Version: 2.0.50727
Reference :National Instruments.UI.WindowsForms
Runtime Version: 2.0.50727
Reference :National Instruments.Vision
Runtime Version: 2.0.50727
Reference :National Instruments.Analysis.Enterprise
Runtime Version: 2.0.50727
Reference :National Instruments.VisionAcquisition.IMAQdx
Runtime Version: 2.0.50727
Reference :National Instruments.Vision.Common
Runtime Version: 2.0.50727
It is worthy to mention that I found 2 versions (having the same runtime version written above). These are 8.9.35.302 and 8.9.20.302. I even found 2 IMAQ Viewer referred to each version. I chose the earlier version so I guess no porblems in that.
My problem is mainly now in Measurement Studio Graph and IMAQdx. Each reference made other classes in either IMAQdx or WaveformGraph undefined.
Hope this problem can be tackled
09-14-2010 08:10 AM
Hi Waleed,
When you include the references, you will want to use the newer version, rather than the older version. Also, please take a look at this KnowledgeBase article. It is not talking specifically about your situation, but could be applicable for you. Please take a look at the link, and make sure that you are using the newest version of the common assembly (not the older version).
Thanks,
John M