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: 

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
(4,680 Views)
0 Kudos
Message 2 of 6
(4,669 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
(4,531 Views)

Take a look here:

http://www.ni.com/product-documentation/52941/en/

 

Is that not what you're looking for?

Message 4 of 6
(4,509 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
(4,503 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
(4,493 Views)