Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

C# DAQmx Switch Warnings

Hi,

I have recently upgraded (?) to VS2013 and Measurement Studio 2013.

I am now receiving 'Warnings' that  "NationalInstruments.DAQmx.Device.Switch' is obsolete" - as are all methods concerned with said switches.

This IS a problem - we operate a 'Treat all warnings as errors' policy 😞

So...

From reading the documentation...

It would appear that Switch control has been removed from DAQmx - and is now located in NI-Switch.

No problem then - I will just have to install NI-Switch 🙂

But...

From reading the documentation...

Ni-Switch supports the following...

 

Application Development Environments (ADEs)

Note:  You should install ADEs, such as NI LabVIEW, NI LabWindows/CVI or Microsoft Visual Studio®, before installing NI-SWITCH. To add support for ADEs installed after installing NI-SWITCH, modify your NI-SWITCH installation or launch the NI-SWITCH installer again.

  • LabVIEW 2012 SP1 (32-bit), 2012 SP1 (64-bit), 2013 SP1 (32-bit), 2013 SP1 (64-bit), 2014 SP1 (32-bit), 2014 SP1 (64-bit), 2015 (32-bit), or 2015 (64-bit)
  • LabVIEW Real-Time Module 2012 SP1, 2013 SP1, 2014 SP1, or 2015
  • LabWindows/CVI 2012 or later
  • LabWindows/CVI Real-Time Module 2012 or later
  • Microsoft Visual C++ (MSVC) 6.0 or later
  • If you are running your application on an RT target, 128 MB of memory or more is required.

So - NO Measurement Studio support. 😞

And this appears to be the case - I can find no way to actually 'Reference' the NI-Switch Assembly.

(Yes - I can 'Reference' the NI-Switch COM Library - but this points to the 64bit version (4.8.0f.) which cant be loaded into my 32-bit Application)

 

Am I just being stupid - or is there a way to do this that I am missing?

Surely NI would not depreciate one library without replacing it with the alternative 😞

 

Thanks for your help.

 

 

0 Kudos
Message 1 of 6
(5,310 Views)

Did you see http://www.ni.com/example/26648/en/ 

0 Kudos
Message 2 of 6
(5,299 Views)

Hiya nyc,

 

Thanks for the reply.

I had seen that - thanks.

And, indeed, I have used it as a base for my own class.

But...

It really is such a backward step Smiley Sad

Control of switches used to be possible in native C# code in DaqMX - which was good.

Now it has to be done using un-managed external code - which is bad.

I can see no way in which this can be classed as an improvement.

 

I am assuming (I know - I know) that NI are working on a native C# class for NI-switch Smiley Happy

Which means more changes to the code - and subsequent regression testing.

But, surely, this should have been in place before switch control was removed from DaqMX.

 

Unfortunately, from the lack of responses, it looks like I am possibly the only person suffering this problem.

I am aware that Measurement Studio is not NI's #1 priority - but some acknowledgement would be nice.

 

Bryan.

 

0 Kudos
Message 3 of 6
(5,161 Views)

Take a look here:

https://www.ni.com/en/support/documentation/supplemental/15/ni-switch--net-resources.html

 

Is that not what you're looking for?

Message 4 of 6
(5,139 Views)

Hi Evancox10,

 

That is EXACTLY what I was looking for Smiley Happy Smiley Happy

Thank you - and much Kudos for finding it Smiley Happy

Don't know why I never looked in Product Documentation for it Smiley Surprised

 

Bryan

0 Kudos
Message 5 of 6
(5,133 Views)

@BryanUK wrote:

Hi Evancox10,

 

That is EXACTLY what I was looking for Smiley Happy Smiley Happy

Thank you - and much Kudos for finding it Smiley Happy

Don't know why I never looked in Product Documentation for it Smiley Surprised

 

Bryan


I thought your intention was NOT have to switch to NI-Switch?

0 Kudos
Message 6 of 6
(5,123 Views)