cancel
Showing results for 
Search instead for 
Did you mean: 

skipping first step of array

Mike227
Member

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.

8 REPLIES 8
Trusted Enthusiast

Re: skipping first step of array

show your VI

Mike227
Member

Re: skipping first step of array

Message contains an attachment

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

crossrulz
Knight of NI

Re: skipping first step of array

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
Mike227
Member

Re: skipping first step of array

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

Mike227
Member

Re: skipping first step of array

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

crossrulz
Knight of NI

Re: skipping first step of array

Message contains an image Message contains an attachment

@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
Knight of NI

Re: skipping first step of array

Message contains a hyperlink

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.

crossrulz
Knight of NI

Re: skipping first step of array

Message contains a hyperlink

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