Go to Post I can't think of anything [I]better[/I] to do. - Mr. Van [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 02-02-2009, 17:02
xc4life's Avatar
xc4life xc4life is offline
xc4life
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Hutchinson, MN
Posts: 7
xc4life is an unknown quantity at this point
QUESTION: SubVI's, and incorporating camera files

Okay, the deal is that we are attempting to incorporate our camera VI's that we have created into our main robot project.

I think that there are two approaches. Apparently one is to reference the camera VI within the RobotMain VI using a sub VI and connector pane. The other, which I personally think would be more efficient would to be simply copying and pasting the camera files directly into the RobotMain folder. The problem we are trying to overcome is creating a single robot project that contains both the drive VI's and the Camera VI's. We tried to update the cRIO with each project separately, but each time we do this, one project overwrites the other.

Any ideas? How can we incorporate the two projects, or at least the VI's within each?
__________________

“Strive for perfection in everything you do. Take the best that exists and make it better. When it does not exist, design it.” -Sir Henry Royce
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2009, 22:45
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: QUESTION: SubVI's, and incorporating camera files

Yes, you will need to combine the VIs in order for both to run. The overhead for a subVI call is tiny. If you start looking at the layers of code going down to read the FPGA, you'll realize just how small it is/must be.

Anyway, the easiest thing to do is to make your inputs and outputs on your vision code be programmatically accessible. You do this by adding them to the connector pane. Then you can drop your subVI wherever you like, wire stuff up, and you have code reuse.

The other thing to do is to move the file to be near your other files and make sure you've opened/dropped that one.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2009, 16:01
xc4life's Avatar
xc4life xc4life is offline
xc4life
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Hutchinson, MN
Posts: 7
xc4life is an unknown quantity at this point
Re: QUESTION: SubVI's, and incorporating camera files

Awesome!

Thanks for your help, our camera is up and feeding!
__________________

“Strive for perfection in everything you do. Take the best that exists and make it better. When it does not exist, design it.” -Sir Henry Royce
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch files to switch between DHCP and Static IP DtD Programming 9 28-01-2010 14:27
Need Help Locating .h and .cpp files jkjohnson Programming 0 30-01-2009 09:00
Converting step files to inventor files GMAdan Inventor 4 01-01-2007 20:09
Camera CAD files hopkins Inventor 1 12-03-2005 10:38
CAD Help needed. Mech Desktop 6 files backwards to AutoCAD 14? (2d files) Elgin Clock Inventor 0 30-08-2004 23:06


All times are GMT -5. The time now is 08:17.

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