![]() |
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 |
Re: Encoder Error
Did you install the LabVIEW update and reimage the cRIO with the v19 image?
|
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. |
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. |
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). |
Re: Encoder Error
Quote:
|
Re: Encoder Error
Quote:
Thanks, -Joe |
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 |
Re: Encoder Error
Quote:
|
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.
|
Re: Encoder Error
Quote:
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. :P |
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 |
Re: Encoder Error
Quote:
Quote:
|
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 |
Re: Encoder Error
Quote:
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. |
Re: Encoder Error
Very helpful info. I'll run this by a few others. At this point I cannot explain why the reimage corrected it, but this convinces me that there is something.
If this happens again, I think think I'd like to ftp the contents of the cRIO flash and have it replicated for the RT team. I don't know how to do this, but I assume it is possible. Greg McKaskle |
| All times are GMT -5. The time now is 22:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi