Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: "NationalInstruments.AnalogWaveform" is not defined

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

0 Kudos
Message 1 of 6
(2,528 Views)

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

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 2 of 6
(2,495 Views)

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

0 Kudos
Message 3 of 6
(2,481 Views)

Hi EmpaMan,

 

just to get you right: The error you see is occuring in Visual Studio 2017 or in 2012?

 

Best,

Melanie

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 4 of 6
(2,478 Views)

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

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

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

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 6 of 6
(2,471 Views)