|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||||
|
||||||
|
Re: Encoder Error
Did you install the LabVIEW update and reimage the cRIO with the v19 image?
|
|
#3
|
|||||
|
|||||
|
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. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||||
|
|||||
|
Re: Encoder Error
Quote:
Without any other suggestions, the only thing I can think of to try is to uninstall and reinstall LabVIEW (and apply the update). |
|
#6
|
|||
|
|||
|
Re: Encoder Error
We're running a pair on US Digital on AndyMark Super shifters with no problems noted.
|
|
#7
|
|||
|
|||
|
Re: Encoder Error
Quote:
Thanks, -Joe |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||||
|
|||||
|
Re: Encoder Error
Our development computer indeed has had the 2010 beta software installed. I'll try removing LabVIEW and reinstalling.
|
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
|||||
|
|||||
|
Re: Encoder Error
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. ![]() |
|
#12
|
|||
|
|||
|
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 |
|
#13
|
|||||
|
|||||
|
Re: Encoder Error
Quote:
Quote:
|
|
#14
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |