Go to Post "its not working because you didnt program it right" *wheel falls off* "never mind" - Nin_estarSaerah [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-03-2012, 23:28
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Looping?

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!
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	76
Size:	47.2 KB
ID:	12455  
Reply With Quote
  #2   Spotlight this post!  
Unread 29-03-2012, 07:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #3   Spotlight this post!  
Unread 29-03-2012, 09:04
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
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).

Last edited by agartner01 : 29-03-2012 at 09:16.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-03-2012, 11:09
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Looping?

Click image for larger version

Name:	Capture.jpg
Views:	27
Size:	72.8 KB
ID:	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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #5   Spotlight this post!  
Unread 29-03-2012, 17:19
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: Looping?

Quote:
Originally Posted by RyanN View Post
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!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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