LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with "for loop"

Solved!
Go to solution

Hi all,

 

how can I fix this problem

 

trouble.png

 

 

 

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 3
(2,358 Views)
Solution
Accepted by topic author hlod

Disable indexing on the right hand side of the for loop.

 

Consider using shift registers instead.

Message 2 of 3
(2,352 Views)

@Jkhourigan wrote:

Disable indexing on the right hand side of the for loop.

 

Consider using shift registers instead.


 

That will indeed clear the error message but then your For loop will want to know how many times to iterate and I suspect you will only want to iterate once so why use the For loop?

 

Toss it.

 

If you were using the For loop to ensure a delay ... after (?) the transmit ...

 

THere is no guarentee the wait will happen after since the is no data flow dependencies. If wan to delay after, add another frame between Xmit and rcv. Please note that I am talking about the most basic data flow ideas that drive LabVIEW and in serious coding data flow alone should drive the program execution and seq frames are used sparingly.

 

Quesion anything I said above. Since the paradigm shift for LV may be weird.

 

You at least have gotten past the "how do I wire things up?" challenge that frustrated me when I got started.

 

Have fun!

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,343 Views)