View Single Post
  #6   Spotlight this post!  
Unread 20-01-2012, 17:08
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: NI Vision Functions

Quote:
Originally Posted by ColonelThrtyTwo View Post
You need to instantiate your own TaskExecutor and pass it to setTaskExecutor. assertCleanStatus is a protected method of the NIVision class, which checks if its argument is nonzero and if so throws an NIVisionException. Why it is protected, I don't know; you can't extend the classs because the only constructor is private. Just make your own, or copy+paste the source code from NIVision.java.

Is there any documentation for the imaq functions C-side? Specifically, I would like to use imaqDetectRectangles and need the fields of the RectangleMatch struct.
The way I did it was to make a new executer, and copy and past the assertCleanStatus function from the NIVision.java.
Reply With Quote