ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing Example C++ code for Analog Output

There are sets of sample code available on-line, and when trying to run DAQmxAOUpdate or DAQmxAOeverynsamples, I get a reoccurring error message that I am unable to fix. "This version of MeasurementStudio only supports MFC version 7.1 or higher"

 

I am running Microsoft Visual C++ 2008 edition with Microsoft Platform SDK for Windows Server 2003 R2 and Microsoft Windows SDK v 6.1

 

I looked for a newer MFC version, but didn't find one, maybe due to an error in the method I was searching.

 

I am looked to do some basic analog voltage outputs on two channels on a NI USB 6221 with c++ rather than labVIEW.  Thank you for your assistance.

0 Kudos
Message 1 of 4
(3,961 Views)

There are some examples that install with DAQmx that you should be able to use.  They are installed in the start menu»programs»national instruments»ni-daq»text based code support»visual c++ 2008 examples.

 

Hope this helps.

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 2 of 4
(3,933 Views)
Is there not a way to get mfc version 7.1 or higher to do development with?
0 Kudos
Message 3 of 4
(3,908 Views)

Visual C++ 2008 requires MFC 9.0.21022.  It should be available for download from microsoft.

 

http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library#Versions

Message Edited by Doug L. Bear on 04-10-2009 09:49 AM
Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 4 of 4
(3,893 Views)