Go to Post Sustaining an FRC team is really hard! - Jared Russell [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 08-03-2012, 23:14
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: Simple Crosshair

i would like to use the drawrect function, but i am unsure where it is. i found a drawrect int value under constants for squawk, but i am not sure how it helps.
__________________
"you can build a perfect machine out of imperfect parts" -Urza
  #17   Spotlight this post!  
Unread 09-03-2012, 22:55
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 71
dvanvoorst is an unknown quantity at this point
Re: Simple Crosshair

I'm feeling really stupid, but where do I find the option to draw the rectangles. I have the Dashboard Main.vi Front Panel open, and I right-click in an open area and i get a Controls pop-up, but I don't see any drawing tools there or anywhere else.
I haven't used Labview at all - but we'd really like crosshairs!
Thanks for any help you may be able to give me.
Dale
  #18   Spotlight this post!  
Unread 10-03-2012, 07:34
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,756
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: Simple Crosshair

If you are on the panel, you will find the rectangle and lines in the decoration palette. If you are running on a pretty fast computer, this will be fine, but a more efficient method is available if programmed on the diagram. Give the decoration a try and post again if this isn't fast enough.

Greg Mckaskle
  #19   Spotlight this post!  
Unread 10-03-2012, 07:52
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 71
dvanvoorst is an unknown quantity at this point
Re: Simple Crosshair

Hi Greg,
The problem is that I don't see anything called a decoration pallette. The closest thing I found was under Vision, Machine Controls, IMAQ Rectangle. But when I added that it just gave me a box where I could enter a start and end coordinates. I didn't see how I could just draw a box, or show the box that I specified by coordinates.
Remember that this is literally the first time I opened Labview. :-)
You mentioned a speed issue too. Is the "decoration" applied to each frame of the video feed? We'll be running this on the standard Classmate, so that could be an issue.
If I can't get this to work, there is always the rubber bands around the screen option.
Thanks for the time you give to all of us!
Dale
  #20   Spotlight this post!  
Unread 10-03-2012, 14:33
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,756
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: Simple Crosshair

In the upper right of the palette is a search button. Try searching for decoration or rectangle.

Greg Mckaskle
  #21   Spotlight this post!  
Unread 10-03-2012, 19:05
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 71
dvanvoorst is an unknown quantity at this point
Re: Simple Crosshair

Ok, I got it now by searching for decoration - thanks!
My only remaining issue is that I'm having trouble keeping the lines in front of the image. In the designed I chose the option to move the line to the front - and it stays for a second and goes behind the image. I have it sticking out above the image area, so I can still see it there - so it's actually workable this way.
Thanks for the help.
Dale
Closed Thread


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 01:36.

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