LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modifying user input in for loop

Hi RavensFan,

Yes, I do know what auto-indexing is and I had noticed that had been the case when I connected it with VISA close outside the for loop (that's why I had kept it inside in the first place). Ijust realized I can change that tunnel to "Last Value" which worked - thanks!

0 Kudos
Message 21 of 24
(1,028 Views)

A better practice is to use a shift register instead of last value on your references. If you for loop for some reason executes 0 times (i.e. auto-indexing and your array is empty) your reference will go bad on the output side of your for loop. A shift register keeps this from happening.

Message 22 of 24
(1,013 Views)

Hi Greg,

Would I need to initalize the shift register or anything?

Thanks,

Mridu

0 Kudos
Message 23 of 24
(982 Views)

@mnanda98 wrote:

Would I need to initalize the shift register or anything?


You initialize the shift register instead of having an input tunnel.



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
Message 24 of 24
(964 Views)