Go to Post My wife thought the lead singer, Ozzy Kamen was cute. Darn those rockers. - Andy Baker [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 24-01-2009, 19:14
CVassos's Avatar
CVassos CVassos is offline
A man of many subgroups
AKA: Chris Vassos
FRC #2016 (MightyMonkeyWrenches)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Ewing, New Jersey
Posts: 19
CVassos is an unknown quantity at this point
Library Access Scope Problems

For controlling our robot I created my own subvi for controlling the drive. Within it I use the get pwm ref vi's. When I opened all of the motors and servos I'm using for the drive, I created a subvi to house all of them to keep the main clean and associate them all under the robotdriveref cluster. The drive vi I made is now non-executable. I get the error message "This VI cannot access the referenced item because of library access scope. Private library items can only be accessed from inside the same library or libraries contained in that library. Protected library items can only be created inside LabVIEW classes and can only be accessed from inside the same LabVIEW class or LabVIEW classes inheriting from that class." My programming mentor is no more familiar with LabVIEW than I am. Is there any way to get around this? I use the basic framework by the way.
__________________

Thank you, Johnson & Johnson, we are very grateful for your sponsorship
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2009, 20:21
CVassos's Avatar
CVassos CVassos is offline
A man of many subgroups
AKA: Chris Vassos
FRC #2016 (MightyMonkeyWrenches)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Ewing, New Jersey
Posts: 19
CVassos is an unknown quantity at this point
Re: Library Access Scope Problems

Nevermind. I got it to work by including the drive vi in the wpi library.
__________________

Thank you, Johnson & Johnson, we are very grateful for your sponsorship
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2009, 11:12
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,752
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: Library Access Scope Problems

Glad to see you got it working. That error message is a bit advanced and hard to understand.

What it is saying is that the person who wrote the PWM library didn't expect you to use some of the VIs you were trying to use. So as you dug around and copied and pasted, you copied some of the internals.

You may wonder why anything is protected like this, and again, it is kind of advanced. In some ways it would be easier to keep everything open. But what would happen is that when the author of PWM wanted to change something, they would break lots of people's code. By telling you to use things like Drive, they can make sure that keeps working while being able to add features or improve things internally.

Greg McKaskle
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
#define's scope? Joohoo Programming 12 25-01-2008 14:02
Variable Scope billdar Programming 2 11-02-2007 23:12
camera scope problems xrabohrok Programming 4 15-01-2007 20:48
Camera Library Problems pi_guy578 Programming 2 29-01-2006 09:13
ADC problems with C library and new code Larry Barello Programming 1 09-01-2004 22:31


All times are GMT -5. The time now is 22: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