Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing real-time data from quadrature encoder

Hi
 
I'm using VB.NET 2005 and Measurement Studio with a NI-DAQ 6229.  I already have an application using the MeasuredAngularBuffered example to gather encoder data and I added a graph to graph the data as well.  I'm starting a new application in which I will be reading data from an angular encoder and I need to graph the data in real-time.  Can this be done using the MeasuredAngularBuffer example and if so how do I need to alter it?
 
Thanks,
 
BienoJ
0 Kudos
Message 1 of 2
(3,351 Views)

Hi BienoJ,

If you'd like to plot real-time data (or as real-time as you can get in Windows), I'd recommend modeling off the two examples dealing with non-buffered Count Digital Events and your angular position application. Simply put, you won't want buffered acquisition and you can plot the single points to a waveform chart as they are read from the count register.

Look here for information about the non-buffered application (this should be installed with DAQmx with C support)
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Count Digital Events\Cnt Dig Events

PBear
NI RF
0 Kudos
Message 2 of 2
(3,332 Views)