LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Iterate through values with delay

Hi all,

 

I'm working on a raster scanning project using a pair of galvos.  I want the VI I'm working with to step in a 0.1V increment, pause for 1s, and then step again.  For now I'm only worried about one axis.  I've been using a built-in example from DAQmx, but this is "on demand", as in I have to feed it the voltage I'd like to output.  This would work fine if I had only a few voltage values, but my range goes from -10V to 10V, and so I'd have to manually input 200 unique values.  For now, I've set it up such that the voltage steps after each iteration, but again this is fed manually.  I'm stuck on how to get it to increment automatically. 

 

If anyone could shed some light on this, I'd much appreciate it.  Attached is the VI I'm working with.

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

Search the palettes for Ramp Function.

 

The other way is you actually do what you said and increment a value.  That means you use a shift register and add to it every iteration.

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