01-31-2019 04:59 AM
Dear all,
I am migrating a controller compiled in Visual Studio 2012 from Win7 to Win10. Upon recompiling a large list of errors occurs as expected. I updated the drivers and .dll, so there are just two errors remaining which seem to be connected:
Type 'NationalInstruments.AnalogWaveform' is not defined
Type 'NationalInstruments.AnalogWaveformSampleCollection' is not defined
The current driver is NationalInstruments.DAQmx.
I do not know what type of error this could be except some internal labelling within the driver changed when the driver got updated.
Any ideas?
Thank you in advance,
EmpaMan
02-01-2019 09:25 AM
Hi EmpaMan,
can you please provide some details of your system setup?
Are you still working with Visual Studio 2012?
Which Measurement Studio version are you working with?
What's the DAQmx version you use?
Best,
Melanie
02-04-2019 01:58 AM
Hi Melanie,
thank you for your response. I am working with Visual Studio 2017, but the original .exe was written in VS 2012.
I am using a NiDAQ-9172 Chassis, hence my NIDAQ.mx is 17.5 (latest one to be compatible), running as 9.6.40.57 and the runtime version v1.0.30319. The Measurement Studio version is 2013.
Thanks again,
EmpaMan
02-04-2019 02:15 AM
Hi EmpaMan,
just to get you right: The error you see is occuring in Visual Studio 2017 or in 2012?
Best,
Melanie
02-04-2019 06:16 AM
Hi Melanie,
yes, I get the Error in Visual Studio 2017. The controller was originally written in VS 2012, and now I want to migrate it from a Win7 PC to a Win10 PC, which requires VS2017 to be used.
Thanks,
EmpaMan
02-04-2019 07:19 AM
Hi EmpaMan,
Measurement Studio 2013 supports only Visual Studio versions 2008, 2010 and 2012. So in general you'll need to insall a newer Measurement Studio version:
Measurement Studio and Visual Studio Version Compatibility - National Instruments
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019RD9SAM&l=en-US
Since there is no native support for Visual Studio 2017 in any current Measurement Studio version, you'll need to follow the instructions in the following link:
Measurement Studio 2015 with Microsoft Visual Studio 2015 and Newer - National Instruments
http://www.ni.com/product-documentation/54629/en/
Best,
Melanie