Go to Post FIRST is not about robots or which roller coaster we get to ride... it is about people. - 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 28-01-2010, 17:32
Haragorn Haragorn is offline
Registered User
FRC #0888
 
Join Date: Jan 2009
Location: MD
Posts: 6
Haragorn is an unknown quantity at this point
Encoder Error

So, today, I was trying to set up a US Digital Encoder. I did what I could figure out from the help files, programming-wise, and LabVIEW finds no errors. However, when I try to run our code, I always run into this error:

Code:
Deploying NI_FPGA_Interface.lvlib:NIFPGA
CounterEncoderSourceConvertion.lvlib:
LVSourceTypeToFPGAType.vi
Failed to download NI_FPGA_Interface.lvlib:NIFPGA
CounterEncoderSourceConvertion.lvlib:
LVSourceTypeToFPGAType.vi
Deployment completed with errors
Any ideas why that's happening? If needed, I can print screenshots of the code that references the encoders.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 17:49
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoder Error

Did you install the LabVIEW update and reimage the cRIO with the v19 image?
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 23:04
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: Encoder Error

I was going to post something similar tonight. Our development system suddenly decided that it wasn't going to run our project anymore, giving exactly that error. We had just added encoders to Begin and Finish. I took them out again, but the error remains.

I couldn't find NI_FPGA_Interface.lvlib:NIFPGA
CounterEncoderSourceConvertion.lvlib:
LVSourceTypeToFPGAType.vi
anywhere on the computer. On the off chance that the file might have disappeared, I reran the LabVIEW update. The error remains.

Is anyone successfully using encoders in their LabVIEW code yet? It would be nice to know that it's possible and that I'm not make a futile effort to find what we did wrong.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2010, 00:58
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Encoder Error

Alan - we went through testing of 10 transmissions yesterday to confirm encoder function before mounting on the robot and didn't have any issues using Labview and the default framework with the encoders added. These are all the USdigital models that come with the toughboxes / supershifters.

Likewise we ran them all beta season without an issue. I've never seen that particular error before.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2010, 01:38
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: Encoder Error

Quote:
Originally Posted by Tom Line View Post
Likewise we ran them all beta season without an issue. I've never seen that particular error before.
We didn't have any problems during the beta either. I asked only because of the possibility of a bug having been introduced in the LabVIEW Update 2.0, but I guess that's not the case.

Without any other suggestions, the only thing I can think of to try is to uninstall and reinstall LabVIEW (and apply the update).
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2010, 01:58
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Encoder Error

Quote:
Originally Posted by Alan Anderson View Post
Is anyone successfully using encoders in their LabVIEW code yet? It would be nice to know that it's possible and that I'm not make a futile effort to find what we did wrong.
We're running a pair on US Digital on AndyMark Super shifters with no problems noted.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2010, 02:21
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Encoder Error

Quote:
Originally Posted by Alan Anderson View Post
Is anyone successfully using encoders in their LabVIEW code yet? It would be nice to know that it's possible and that I'm not make a futile effort to find what we did wrong.
Our team is using an encoder with all the latest updates and we at NI also run an encoder in the release test bench. We haven't seen this either place. Obviously any more details you can give will help us to narrow this down.

Thanks,
-Joe
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2010, 08:05
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: Encoder Error

Would this by chance be a computer used in the beta program? If so, it may be an odd side effect of the installer updates. If this does't resolve with a cleaner install, please contact technical support so that we can dig deeper and determine what really happened.

Greg McKaksle
Reply With Quote
  #9   Spotlight this post!  
Unread 29-01-2010, 10:44
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: Encoder Error

Quote:
Originally Posted by Greg McKaskle View Post
Would this by chance be a computer used in the beta program?
Our development computer indeed has had the 2010 beta software installed. I'll try removing LabVIEW and reinstalling.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-01-2010, 15:46
Haragorn Haragorn is offline
Registered User
FRC #0888
 
Join Date: Jan 2009
Location: MD
Posts: 6
Haragorn is an unknown quantity at this point
Re: Encoder Error

Today, when I tried to run the code, it worked fine. No changes were made to the code. I did build and deploy it first, to test if that worked, but I'm not sure if that had anything to do with it. I have no idea why it's working now and wasn't yesterday.
Reply With Quote
  #11   Spotlight this post!  
Unread 30-01-2010, 20:38
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: Encoder Error

Quote:
Originally Posted by Haragorn View Post
I have no idea why it's working now and wasn't yesterday.
Ours worked today too, but I do know why. The error message didn't say there was a problem finding the vi, it said there was a problem deploying it. So I inferred that the trouble might be with the cRIO and reimaged it. Success!

There's a lot more voodoo in the NI system than I'd like, but I think I'm getting a feel for the right way to wave the chickens around when necessary.
Reply With Quote
  #12   Spotlight this post!  
Unread 31-01-2010, 00:11
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: Encoder Error

Not to rain on the parade, but this doesn't really make sense. The cRIO does contain flash, and when code is deployed, it and all dependencies are stored in flash. But when executed using the run button, the VIs are saved locally to PC temp storage, and all VIs are downloaded. I think that VIs can reference .out files already on the flash, but I don't think that anything on the disk would have confused the deployment. If there were VI conflicts due to VIs already being in memory, that would have resulted in a different dialog. I don't really see why reimaging the cRIO would solve the issue.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 31-01-2010, 01:22
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: Encoder Error

Quote:
Originally Posted by Greg McKaskle View Post
...when executed using the run button, the VIs are saved locally to PC temp storage, and all VIs are downloaded...
The error message says "Failed to download NI_FPGA_Interface.lvlib:NIFPGA CounterEncoderSourceConvertion.lvlib:LVSourceTypeT oFPGAType.vi" which implies that the VI was not downloaded for some reason. Without knowing anything about how it really works, I could speculate that perhaps the vi on the cRIO had gotten set to read only, or its directory entry was somehow corrupted to the point where it couldn't be replaced by the download attempt.

Quote:
I don't really see why reimaging the cRIO would solve the issue.
I don't see why either, but LabVIEW couldn't download that vi immediately before reimaging and did download it immediately afterwards. I consider that to be highly compelling evidence that the reimaging indeed fixed the problem.
Reply With Quote
  #14   Spotlight this post!  
Unread 31-01-2010, 11:10
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: Encoder Error

I'm wondering what part of reimaging fixed it. Did you happen to work up to that? Do you know that a reboot of the cRIO, or a disconnect/reconnect did not resolve the error?

The RT LV engine does cache VIs in memory. It purges elements in the cache due to editing operations, and this either indicates something that needed to be purged and replaced that failed to allow itself to be replaced, or it may point to an issue on the host where LV couldn't locate or build the cross-compiled version of the library VI to download.

I have never seen this, so I'm just trying to get what I can from your breadcrumbs. As you said, this gremlin is one I'd like to purge.

Greg McKaskle
Reply With Quote
  #15   Spotlight this post!  
Unread 31-01-2010, 15:02
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: Encoder Error

Quote:
Originally Posted by Greg McKaskle View Post
I'm wondering what part of reimaging fixed it. Did you happen to work up to that? Do you know that a reboot of the cRIO, or a disconnect/reconnect did not resolve the error?
...
I have never seen this, so I'm just trying to get what I can from your breadcrumbs. As you said, this gremlin is one I'd like to purge.
It worked Wednesday. It gave the "Failed to download" error on Thursday when I clicked the "run" arrow on the Robot Mail vi's front panel.

We tried Build then Run as Startup: same error.
We tried rebooting both cRIO and development laptop, then running Robot Main: same error.
We powered down and restarted the Driver Station, then running Robot Main: same error.
We ran the LabVIEW update on the development laptop. Same error.

Friday we spent doing other things and didn't have time to chase the problem down further.

Saturday I powered everything up and got the same error when trying to run Robot Main. I then reimaged the cRIO with v19, and could run Robot Main without error immediately afterwards.

If it happens again, is there anything you'd like me to look at on the cRIO? I've never used the cRIO console, so specific directions would be appreciated.
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
Encoder causes 24 bit relocation error pafwl C/C++ 3 28-01-2010 08:53
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
GTS Encoder Compilation Error Guru Programming 10 14-02-2008 12:11
Encoder Error Anime-niac_2.9 Programming 1 27-01-2007 16:23
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53


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

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