LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count events

Hi

I would like to generate triangle waveform which individualy parts have
diverent amount of points. So i apply a counter witch generat a square
wave,and on rising edge follows AO (one update).The signal should look
like a triangle,so i must fit the frequency of counter for specifically
section (otherwise i become the setion with different slope).
So i must count the events.I used the example "Count edges DAQ-STC",and
it works,but only for 10points/s.If generate faster than 10points/second
,the counter count incorrect (the sooner the unprecisely).Can it be
done,that a counter reads correct event with 1000 points/second or more
?
Meyby another way to generate triangle with specifited amount of points
?
(LV6.0 DAQ-STC device)

Thanks for any
hint
Robert
0 Kudos
Message 1 of 2
(2,650 Views)
Robert,

the 'count edges DAQ-STC' example should work just fine for source signals at 1kHz or more. I tried this vi on a daq-stc device and used the internal time base (of 100kHz) as the source. The count results I got seem to be quite accurate. Make sure that the source selection and gate selection is set up properly. You can also check out the Triangle Waveform.vi and Formula Waveform.vi. They are located in the Waveform Generation subpalette of the 'Waveform' function palette.

Regards,

Afreen S.
www.ni.com/ask
0 Kudos
Message 2 of 2
(2,650 Views)