Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 6703 VB.NET code

Hello,
I am trying to write a code (VB.NET) that will sample data @ 2k per channel for all 16 channels (single ended mode) simultaneously.

Any suggestion or example code will be appreciated.
0 Kudos
Message 1 of 3
(3,462 Views)
Hi Bryan -

If you installed support for .NET languages with your NI-DAQmx driver, then you can find example programs for Analog Voltage Output here:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET1.1\Analog Out\Generate Voltage

More generally, all the .NET example programs are found a few folders up:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET1.1\

This should get you started.
David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,450 Views)

Hi bryan81,

David is correct about the locations on your system but I wanted to mention that DAQ example locations will depend upon what version of NI-DAQmx you have installed as well as Measurement Studio. 

Alternative locations might be:

.NET 2.0 Framework

Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmx
(without Measurement Studio)
Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmxwithUI
(with Measurement Studio; you will also have the above directory as well)

.NET 1.1 Framework

Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx
(without Measurement Studio)
Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmxwithUI
(with Measurement Studio; you will also have the above directory as well)

Now, if you installed DAQmx 8.5 and didn't have Measurement Studio installed, then you will be looking at the locations that David mentioned. For further help, open up the NI-DAQmx documentation for .NET 2.0 (Start >> All Programs >> National Instruments >> NI-DAQ >> NI-DAQmx .NET 2.0 Framework Help), look at the Where to Find Examples help topic under the NI Measurement Studio Help category (even if you don't have Measurement Studio, you will still see Measurement Studio as the title of some categories).

Hope this helps!

Best Regards,

Message Edited by Jonathan N on 03-30-2007 03:23 PM

Jonathan N.
National Instruments
0 Kudos
Message 3 of 3
(3,447 Views)