Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

multi channel data acquisition example in VC++

I tried searching the website and forums but did not find any example for a simple app written in VC++ for multi channel data acq.

I have my complete app written in VC++ but we were using other company's DACs. Only the data acquisition code needs to be converted but surprisingly there seems to be no example code in VC++.

All the examples here are either ANSI C or LabVIEW. Customer service at NI points me to ANSI C examples but they should realize that C and VC++ is not the same.

Can any one please send your code snippet of continuous multi channel data acquistion?

Thanks a ton.Smiley Wink
0 Kudos
Message 1 of 4
(3,862 Views)
I found a bunch of very helpful examples here : C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Examples\DAQmx\Analog In\Measure Voltage

Actually, I was pointed to them by someone on this forum 🙂

There are also some limited code samples in the help files and don't forget the Wizards.

Lots of other stuff there too.
Phil reaston
0 Kudos
Message 2 of 4
(3,848 Views)
Phil,

I have downloaded Measurement studio demo for Visual Studio 6.0 and it does not install the examples that you are pointing to. I guess I should download  Measurement studio for VC NET (which I am).

But VS 6.0 and VS . NET are not the same. Are those exaples work in Visual Studios 6.0 as well (I am using VC ++ 6.0 for programming)?

If so, NI should include those in regular Measurement Studio for VS 6.0 download (note to NI rep).

Thanks.

0 Kudos
Message 3 of 4
(3,847 Views)

Dear Anirudha,

The DAQ examples that Phil is referring to are the VC++.NET examples. They are found in the Measurement Studio folder, but do not install with Measurement Studio. They install with DAQmx or Traditional (Legacy) DAQ. You need to have .NET support added in the DAQ installer to see these examples. It doesn't sound like you are using VC++.NET, though so these examples probably won't be too helpful.

On another note, I run the ANSI C programs on VC++ all the time and they work very well. Are you adding the correct libraries? Make sure you are following the instructions in the attachment.

Have a great day!

Marni S.

0 Kudos
Message 4 of 4
(3,824 Views)