12-22-2010 05:56 AM
Hi,
I have recently updated my C# projects to use the .net4 framework and installed Measurement Studio 2010 (from 2008).
Prior to installing I uninstalled the previous version of Measurement Studio.
However, my project utilizing NI-Scope drivers, in particular the ModularInstruments class provided within the .netClassLibrary1.1.1, now no longer compiles.
The problem seems to be related to type ScopeSingleRecordReader, defined in namespace, "NationalInstruments.ModularInstruments.Scope".
The error is:
"
12-23-2010
09:24 AM
- last edited on
04-10-2025
01:07 PM
by
Content Cleaner
Hi Simon,
If you are using NI Scope hardware I would first like to suggest a reinstallation of NI-Scope driver.
https://www.ni.com/en/support/downloads/drivers/download.ni-scope.html
If not then something more common like DAQmx should do the trick
https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html#
As you have already installed Measurement Studio 2010 one of these drivers should provide the support you need.
I would be interested to hear how you get on.
Happy Christmas
12-24-2010 02:17 AM
Hi Micheal,
Thanks for the comment.
In the particular project I am only referencing the NI-Scope .net class library, version 1.1.1, has this been updated for VC2010?
I suspect the old dll is being referenced within this driver?
I will re-perform the NI-Scope install and repost.
12-24-2010 03:06 AM
To update, after reinstall of NI-Scope error is the same.
01-04-2011 06:09 AM
Hi Simon,
First of all I'd like to wish you a Happy New Year!
In the solution explorer, under the References tree, are you able to see the relevant reference listed. If not, (like you said) this is probably why you are getting the error. You can fix this by going to Project>Add Reference.....>NET, and then scrolling down until you see National Instruments Common. Click OK and it should appear in the References. Try building again and see if you still get the error.
I hope this helps.
01-05-2011 06:45 AM
Hi Micheal,
I dont have the appropriate reference installed any longer since I have upgraded to the latest measurement Studio, the older items have been uninstalled!
Regards
Simon
01-10-2011 04:24 PM
Hey Simon -
Unfortunately, the NI-SCOPE .NET API does not support Visual Studio 2010. I would like to talk with you regarding this support offline - do I have your permission to contact our forum administrator to get your information?
Thanks -
NickB
National Instruments
01-11-2011 01:53 AM
Sure no problem.
01-12-2011
09:57 AM
- last edited on
04-10-2025
01:08 PM
by
Content Cleaner
For the benefit of anyone else who sees this forum, I thought I'd mention a workaround to use the NI-SCOPE .NET API in Visual Studio 2010 that should hopefully get you by until a version of the NI-SCOPE .NET API is available that supports the .NET Framework 4.0. Do the following to develop with Measurement Studio 2010 or later with the NI-SCOPE .NET API in Visual Studio 2010:
Once you have done these things, you should be able to develop NI-SCOPE .NET applications in Visual Studio 2010 with Measurement Studio 2010 or later. The main drawback (besides not being able to use .NET Framework 4.0 features) is that you will not be able to use any of the integration features of Measurement Studio 2010 in Visual Studio 2010, such as the "Add/Remove .NET Class Libraries" menu item.
NickB
National Instruments
01-12-2011 10:40 AM
Thanks for the comments, I will try the suggested solution asap.
Can you confirm when the .Net Scope API will be updated to provide this functionality without the workaround?
Are we talking weeks, months or never?
Simon