Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Sende data with usb 6259 and C# for a short time. nano seconds

Hello all,

 

Setup: C# and the USB 6259 DAQ card. Two Analog output channels.

 

First question: What is the shortest time for data generation of the USB 6259 card? I cannot find the correct time in the specification

http://sine.ni.com/ds/app/doc/p/id/ds-20/lang/de

 

 

I need some simple C# samples where I can generate a square wave for example for 50 nano seconds (depeds on the minimum applicable time).

 

Thanks.

  

Regards. 


0 Kudos
Message 1 of 2
(3,368 Views)

Hi agent,
you should be able to find the answer to your first question in the link you posted. Among other things, it lists the Analog Output specs.

 

Maximum update rate
   
1 channel
2.86 MS/s

2 channels
2.00 MS/s

Timing accuracy
50 ppm of sample rate

Timing resolution
50 ns

 

Minimum output is 1 sample. So for 2 channels where the max output rate is 2MS/s, a sample width is 1/2M = 500ns with a resolution of 50ns. 

 

As for your second question:

There are several examples for using the DAQmx driver with C# if you have Measurement Studio installed, you can find them here:

Select "Start"->"Run", enter %allusersprofile%

navigate to \Shared Documents\National Instruments\MStudioVS2005\DotNET\Examples\DAQmxWithUI\GlobalContinuousAO\cs

see also National Instruments\NI-DAQ\Examples\DotNET2.0

 

Let me know if you have further questions.

 

Best regards,

Peter

--
Peter A.
Field Sales Engineer, NI Germany
0 Kudos
Message 2 of 2
(3,324 Views)