Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Looping? (http://www.chiefdelphi.com/forums/showthread.php?t=105183)

agartner01 28-03-2012 23:28

Looping?
 
1 Attachment(s)
Hi everyone, I need some help with this image processing script i've created. it loads the image and puts the information back to the crio fine, but I can't seem to loop it. This is my first time trying out labview and the thing i've had the biggest problem figuring out is execution order. In c++ its very linear, but I can't seem to figure out where execution starts or ends. Any help would be much appreciated!

Greg McKaskle 29-03-2012 07:50

Re: Looping?
 
Execution order is largely determined by which nodes don't need data, or have all the data the need. They can run first and provide data downstream for the nodes that need more data values.

In addition, the structures such as the loop or case act as a node on the outside, but do special things to their inner diagram.

What this results in is sequencing automatically when data is present and flowing, and parallelism when it is not.

To your direct question, I think you want to draw a loop around the lower portion of the program, but not the client portion. You don't really need to include the create image, but it doesn't hurt.

Greg McKaskle

agartner01 29-03-2012 09:04

Re: Looping?
 
Alright, I should have been more specific. The problem i'm having is that I push execute, and execution never stops (I intended to loop that segment, but I can't since it never stops executing).

RyanN 29-03-2012 11:09

Re: Looping?
 
1 Attachment(s)
Attachment 12461

I'm not familiar with the circled code, but from the icon, it appears to be a loop. Try excluding that from your while loop that you put in. I think that should work.

agartner01 29-03-2012 17:19

Re: Looping?
 
Quote:

Originally Posted by RyanN (Post 1151127)
Attachment 12461

I'm not familiar with the circled code, but from the icon, it appears to be a loop. Try excluding that from your while loop that you put in. I think that should work.

FYI, those are network tables from WPI (http://firstforge.wpi.edu/sf/frs/do/...network_tables). I'm using them since the robot code is in c++, and network tables work nicely in c++.

Anyway, following you suggestions did work, thanks for the help!


All times are GMT -5. The time now is 04:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi