LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smooth updating of DC voltages with waveforms on other channels

Using the NI6715 and DAQmx, I am outputting a sawtooth on some channels and a DC voltage on other channels. In the DAQmx Timing setup, Continuous Timing is chosen so that the sawtooth raster signal will run indefinitely. Sometimes I want to change one of the DC voltages without causing a jump in the sawtooth. That is, I would like the new DC voltage to start at the start of the buffer read, not somewhere in the middle. Right now, when I send the new DC voltage, the sawtooth restarts before completing a cycle, making a little jump. With the sawtooth already running, the steps I'm using to send a new DC voltage are: Stop Task-->Send new 2D array to AO Write (2D Double, NChannels, NSamples)-->Start Task.
    Is there a way to make this update smoothly - a full old cycle completes and then the new array takes over?
Thanks, Peg
0 Kudos
Message 1 of 3
(2,518 Views)
Here is my vi, in case it helps.
Thanks, Peg
0 Kudos
Message 2 of 3
(2,513 Views)
Peg,

You can have continuous output of your ramp be uninterrupted by using non regenratio on your task setup. There is an example in the NI Example Finder that shows you how you can setup non regeneration for your analog output.

This will essentailly wait for all the data in the output buffer to finish and then write new data.

Hope this helps!

Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 3 of 3
(2,484 Views)