LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing output every elements of a array for loop

Solved!
Go to solution

I want to implement a function as follows: first set the Max and Min voltage values, then set the number of steps in the middle of the Max and Min steps and the dwell time of each step, and finally set the total number of cycles
The problem is: the value of each step must be output separately, there is a problem here, please help, thank you!捕获1.PNGgraph.png

0 Kudos
Message 1 of 4
(2,029 Views)

Pass an auto-indexed array of wait times with the same length as the number of steps to the For loop.

 

Also, take a look at the Ramp Pattern VI (Samples type).


GCentral
0 Kudos
Message 2 of 4
(2,023 Views)

Can you elaborate on your method one? Thanks

0 Kudos
Message 3 of 4
(2,015 Views)
Solution
Accepted by topic author USTCSteveson

Something like the following:

 

ramp.png

 

I also used the Ramp Pattern VI, although you need to check the behaviour at the ends matches what you want (the boolean controls that), and also that you don't get double-counted middle/end points (hence the Delete From Array, which your image already included).

Assuming you want to do more than just read a value, you can put actual code in the inner For loop (like the analog output, etc).


GCentral
Message 4 of 4
(2,001 Views)