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.
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.
12-16-2015 06:26 AM
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...
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.
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.
12-16-2015 09:53 AM
Did you see http://www.ni.com/example/26648/en/
01-04-2016 08:32 AM
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
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
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.
01-05-2016 10:20 PM
Take a look here:
http://www.ni.com/product-documentation/52941/en/
Is that not what you're looking for?
01-06-2016 05:12 AM
Hi Evancox10,
That is EXACTLY what I was looking for
Thank you - and much Kudos for finding it
Don't know why I never looked in Product Documentation for it
Bryan
01-06-2016 08:28 AM
@BryanUK wrote:
Hi Evancox10,
That is EXACTLY what I was looking for
Thank you - and much Kudos for finding it
Don't know why I never looked in Product Documentation for it
Bryan
I thought your intention was NOT have to switch to NI-Switch?