LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Square wave irregular by 1-2 ms on oscilloscope

using an NI-pxi-1031 box, with a pxi-6281 card.  Outputting square wave function (digitally).  The wave comes out fine, but at frequencies approaching 1kHz the wave begins to jump around on the oscilloscope, the period shifts by a millisecond or two.  Is this a hardware limitation, or setting?  Is there any correction for this?
0 Kudos
Message 1 of 3
(2,788 Views)

Hey,

 

What exactly do you mean by "...begins to jump around on the oscilloscope, the period shifts by a millisecond or two..."

Are you using AO or correlated DIO?

 

 

Christian

0 Kudos
Message 2 of 3
(2,765 Views)

UselessIntern wrote:
using an NI-pxi-1031 box, with a pxi-6281 card.  Outputting square wave function (digitally).  The wave comes out fine, but at frequencies approaching 1kHz the wave begins to jump around on the oscilloscope, the period shifts by a millisecond or two.  Is this a hardware limitation, or setting?  Is there any correction for this?

That is the natuer of Windows. Its fine for tricking people into think it is opperating real-time provided real-time is less than 30 Hz like in a screen update or a mouse move. At 1KHz Windows performs as you have observed. There are two things you can do under Windows that may help. If you hardware is capable of buffered digital output (hardware will clock data not Windows) or to use a "Timed Loop" which will perform better but is not bullet proof.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,760 Views)