Go to Post Whenever we loose a committed member of FRC, our entire country pays the price. - daniel_dsouza [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 01-02-2012, 15:13
Pheonix 3570 Pheonix 3570 is offline
Registered User
FRC #3570
 
Join Date: Jan 2011
Location: Alma Michigan
Posts: 4
Pheonix 3570 is an unknown quantity at this point
NI Real Time Target Support Locked

Hi, I had just built and tried to deploy the code. When the LabView tries to deploy, it says that the Real Time application has not been built. I then find that the NI Real Time Target Support.lvlib has been locked, and I didn't do anything with it before. I wonder if that is why the Real Time application has not been built. Anyone have the same problem?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2012, 22:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: NI Real Time Target Support Locked

Is this a project that you created as a New "FRC cRIO Robot Project" in LabVIEW, or did you copy it from somewhere else?

How are you building it? How are you trying to deploy it?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2012, 00:07
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: NI Real Time Target Support Locked

A cRIO can become locked if you abruptly loose connection to it. A library will become locked if it is open in two projects at the same time. (Remedy = closing all but the desired project. Sometimes this requires shutting down LabVIEW.)

If you wish to only run your code, you can simply press the run button on the "robot main.vi" If you wish to deploy it, then it must be built before deploying. The build, then deploy process is manually repeated for every program change and update. (This is why most people simply press the run button during testing, and deploying only when needed.) This process only takes a few moments.

I hope this helps with your problem.
__________________
Mike B
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2012, 15:16
Pheonix 3570 Pheonix 3570 is offline
Registered User
FRC #3570
 
Join Date: Jan 2011
Location: Alma Michigan
Posts: 4
Pheonix 3570 is an unknown quantity at this point
Re: NI Real Time Target Support Locked

Quote:
Originally Posted by Alan Anderson View Post
Is this a project that you created as a New "FRC cRIO Robot Project" in LabVIEW, or did you copy it from somewhere else?

How are you building it? How are you trying to deploy it?
I opended a new project and programmed on another computer, but I have also opened a new project on classmate. I copied the code from my computer to the classmate (C:/Users/Developer/My Documents/LabView Data/2012 Robot Project). For building, I right-clicked on Build Specifications and selected "Build All". After it says that the build is complete, I right-click on FRC Robot Boot-up Deployment and selected "Deploy" just like I did last year.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2012, 15:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: NI Real Time Target Support Locked

"Deploy" is usually not the appropriate command. Instead, choose "Run as startup". If you checked the "always run deployed code" option when you imaged the cRIO, a simple "Deploy" can work, but it's best to be explicit about what you want.

If you created the project on a different computer or in a different directory from where it is now, you might have to fix the Build Specifications to correct a directory link that now points to the wrong places. Right-click on the FRC Robot Boot-up Deployment and choose Properties, then go through the categories to make sure all of the folder names match the location of the project. Check specifically the "Local destination directory" in the Information category.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2012, 16:21
Pheonix 3570 Pheonix 3570 is offline
Registered User
FRC #3570
 
Join Date: Jan 2011
Location: Alma Michigan
Posts: 4
Pheonix 3570 is an unknown quantity at this point
Re: NI Real Time Target Support Locked

Quote:
Originally Posted by Alan Anderson View Post
"Deploy" is usually not the appropriate command. Instead, choose "Run as startup". If you checked the "always run deployed code" option when you imaged the cRIO, a simple "Deploy" can work, but it's best to be explicit about what you want.

If you created the project on a different computer or in a different directory from where it is now, you might have to fix the Build Specifications to correct a directory link that now points to the wrong places. Right-click on the FRC Robot Boot-up Deployment and choose Properties, then go through the categories to make sure all of the folder names match the location of the project. Check specifically the "Local destination directory" in the Information category.
Thank you very much! The location did not match. After I changed it, the problem is gone. However, when I choose "Run as startup", it says "failed to connect to Real-Time target".
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2012, 16:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: NI Real Time Target Support Locked

In the Project Explorer, there should be an IP address in parentheses after the "RT CompactRIO Target". For your team's cRIO, 10.35.70.2 is the proper address. If it isn't correct, right-click the wrong value and choose Properties. The "IP Address / DNS Name" field is in the General category. Fix the address and click OK.

(If the address was 10.xx.yy.2, it's because it wan't set properly when you created the project.)
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2012, 17:41
Pheonix 3570 Pheonix 3570 is offline
Registered User
FRC #3570
 
Join Date: Jan 2011
Location: Alma Michigan
Posts: 4
Pheonix 3570 is an unknown quantity at this point
Re: NI Real Time Target Support Locked

Quote:
Originally Posted by Alan Anderson View Post
In the Project Explorer, there should be an IP address in parentheses after the "RT CompactRIO Target". For your team's cRIO, 10.35.70.2 is the proper address. If it isn't correct, right-click the wrong value and choose Properties. The "IP Address / DNS Name" field is in the General category. Fix the address and click OK.

(If the address was 10.xx.yy.2, it's because it wan't set properly when you created the project.)
The IP address is correct. Is there any way that it will fail to connect to the real time target?
Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2012, 21:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: NI Real Time Target Support Locked

Quote:
Originally Posted by Pheonix 3570 View Post
The IP address is correct. Is there any way that it will fail to connect to the real time target?
The "real time target" is the cRIO. You won't be able to connect if the cRIO is not turned on, if it is not on the same network as the host computer you're trying to connect from, if the network addresses are not compatible, or if it hasn't been formatted with the proper image.
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


All times are GMT -5. The time now is 22:31.

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