LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

skipping first step of array

I have an array feeding into a for loop. If i have 2 steps, it will only activate the first step for a half second or so and then continue onto the second step and complete the second steps full responsiblity.

0 Kudos
Message 1 of 9
(3,449 Views)

show your VI

0 Kudos
Message 2 of 9
(3,447 Views)

I am running a pump that will infuse/withdraw at a certain rate until the certain volume is acheived. It starts the motor of the first step for a quick second then moves onto the second step and completes that step.

 

 

Mike

0 Kudos
Message 3 of 9
(3,443 Views)

I don't have the drivers, but my guess is that you are running into an error in your first iteration.  Use a shift register to keep your error through the loops and see what error you have at the end.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 9
(3,434 Views)

Can you show me where to put the shift register please?

0 Kudos
Message 5 of 9
(3,430 Views)

Also, if I just assign one step then it will go through the first iteration.

0 Kudos
Message 6 of 9
(3,422 Views)

@Mike227 wrote:

Can you show me where to put the shift register please?


 



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 9
(3,410 Views)

For OP: one correction to the above snippet: Wire an empty array constant to initialize the shift register. Otherwise, the shift register's value will be "remembered" when the VI is run again. Of course, this is a fundemental principle that allows the creation of functional global variables, and their super-charged friend, the Action Engine.

0 Kudos
Message 8 of 9
(3,398 Views)

Discussion on this project has been continued on another thread.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 9
(3,393 Views)