Go to Post It's up to veteran teams and mentors to help keep the original spirit of FIRST alive. - It's up to us to make these boards exemplify the FIRST principals in every post. - Ben Mitchell [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
  #1   Spotlight this post!  
Unread 29-01-2012, 20:12
splatter's Avatar
splatter splatter is offline
Cant Spell Robots With Out Rob
AKA: Robert
FRC #0271 (Mechanical Marauders)
Team Role: CAD
 
Join Date: Mar 2011
Rookie Year: 2011
Location: New York
Posts: 48
splatter will become famous soon enough
Exclamation Ni Vision Help???

Hello every one a mentor and i have been having major issues with the c code generated by the NI vision software to run our target tracking. we have edited the code so many times and taken it apart and dissected it looked it over and we have spent the past few days on this with no luck has any one else had issues or luck with this thanks every one for your help in advance.
__________________
FIRST Team 271
~
<Electrical, CAD>
~
http://www2.bayshoreschools.org/robotics/
  #2   Spotlight this post!  
Unread 29-01-2012, 20:15
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,751
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: Ni Vision Help???

I don't know that we can be of much help without seeing the code. The NI Vision Assistant is a general tool used in industry to create prototype code. It should work, but definitely doesn't contain the camera specific code and won't contain some of the math for scoring particles (or whatever you are using the differentiate the particles).

Greg McKaskle
  #3   Spotlight this post!  
Unread 29-01-2012, 21:14
splatter's Avatar
splatter splatter is offline
Cant Spell Robots With Out Rob
AKA: Robert
FRC #0271 (Mechanical Marauders)
Team Role: CAD
 
Join Date: Mar 2011
Rookie Year: 2011
Location: New York
Posts: 48
splatter will become famous soon enough
Re: Ni Vision Help???

thanks for and i will talk to my mentor tomorrow about posting the code.
__________________
FIRST Team 271
~
<Electrical, CAD>
~
http://www2.bayshoreschools.org/robotics/
  #4   Spotlight this post!  
Unread 30-01-2012, 09:54
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Ni Vision Help???

Are you compiling the generated code as a c or cpp file. By default the code generator outputs a c file, and I had some nasty issues trying to compile it as such.

I changed the extension to .cpp to compile it in C++, after that the majority of the errors cleared up, and there were just a few casting issues to resolve. This post has a bit more detail about what I did:
http://www.chiefdelphi.com/forums/sh...d.php?t=101222

Hope this helps, I'm still having issues getting this fully working, but getting closer
  #5   Spotlight this post!  
Unread 30-01-2012, 15:54
splatter's Avatar
splatter splatter is offline
Cant Spell Robots With Out Rob
AKA: Robert
FRC #0271 (Mechanical Marauders)
Team Role: CAD
 
Join Date: Mar 2011
Rookie Year: 2011
Location: New York
Posts: 48
splatter will become famous soon enough
Re: Ni Vision Help???

thanks for the response i will have to mention the .cpp to my mentor thanks for the reply i will let you know if it worked
__________________
FIRST Team 271
~
<Electrical, CAD>
~
http://www2.bayshoreschools.org/robotics/
  #6   Spotlight this post!  
Unread 31-01-2012, 21:44
gnichols gnichols is offline
Registered User
FRC #3862
 
Join Date: Feb 2011
Location: Missouri
Posts: 4
gnichols is an unknown quantity at this point
Re: Ni Vision Help???

How are you getting the C code out of the Vision program? When I try to create the code it says

This feature is disabled in the evaluation mode, please purchase the product.

It tells me I am using an invalid serial number when I enter the number used to validate the other NI software.

??????
  #7   Spotlight this post!  
Unread 31-01-2012, 22:11
sparkydp sparkydp is offline
Registered User
AKA: David Page
FRC #0435 (Robodogs)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2002
Location: Raleigh, NC
Posts: 32
sparkydp is on a distinguished road
Re: Ni Vision Help???

we had a hard time exporting it to labview from the vision assistant as well, it either gave us the eval version error, or just brought labview to the foreground, and didn't actually create any VIs.


However, each 'step' in the Vision assitant you create, matches up with a VI from the vision palletes, so we just made the sequence ourselves, with the values we discovered using the vision assistant.
  #8   Spotlight this post!  
Unread 01-02-2012, 14:12
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Ni Vision Help???

Quote:
Originally Posted by gnichols View Post
How are you getting the C code out of the Vision program? When I try to create the code it says

This feature is disabled in the evaluation mode, please purchase the product.

It tells me I am using an invalid serial number when I enter the number used to validate the other NI software.

??????
I'm not well versed in how the licensing works, but you should try calling national instruments (I've heard they are quite helpful); as they should be able to get you a new license key if you have a bad one.
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 23:27.

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