LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Irregular Shifted Voltage

I have created a dual waveform generator and it properly puts out two different waves.  However, when I measure the voltage coming from the DaqBox, it does not look like it is supposed to. 

 

The frequency of the voltage spikes does not appear to match the frequency I put into the waveform.  It is always significantly faster.  Also, when the frequency is under 35 Hz, the voltage graph is shifted up towards the positive volts, hitting less and less of the negative volts as the frequency decreases.  When I run the VI in de-bug mode, the voltage amplitude and frequency are perfect, but not when I run it normally.  What could be causing the unusually voltage readings? 

0 Kudos
Message 1 of 2
(2,095 Views)

It's probably because you are reconfiguring the channel in a loop very quickly. The channel configuration should be on the left of the loop, and the cleanup should be on the right, with only the data writing portion inside the loop. Also, you are going to set the number of loop iterations to infinity, you can just use a while loop.

0 Kudos
Message 2 of 2
(2,076 Views)