Go to Post In 2012, we built our best machine ever. Some visitors to our pit were visibly disappointed to find that our machine was a pile of extruded aluminum and urethane belting, just cleverly arranged and programmed. - OZ_341 [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 27-01-2012, 15:01
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 167
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Accessing NVision library offline

I'm a rookie coach helping our team write an image tracking system for the shooter. Is there a way to access the NVision library using a standalone app? We just want to load some sample images and test our code without having to tie up the cRio and robot. I tried it in Java and get a runtime error that says it couldn't find an NVision class. We are developing in Java but C++ also is fine.
  #2   Spotlight this post!  
Unread 27-01-2012, 20:07
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,753
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: Accessing NVision library offline

The documentation and header files for the NIVision DLL is located in Program Files/National Instruments/Vision. There are no Java entry points, just LV and C. But the DLL for Windows and the .out for cRIO have almost the same functionality, so the answer to your question is yes. You can develop on the PC and later deploy to the cRIO. You can also use Vision Assistant to quickly explore the potential of different processing techniques.

Greg McKaskle
  #3   Spotlight this post!  
Unread 30-01-2012, 12:23
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 167
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Accessing NVision library offline

Thanks Greg for the quick response. I installed LabView and was able to get the included Vision examples running.

Not to give up on the Java side yet...

1) Is there a Sun squawk VM that runs on Windows so we could use WPILibJ to access the native NIVision dll?

2) Has anyone created a JNI library to call the NIVision functions from a standard Java app?
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 18:48.

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