Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   ERROR <Code> 1026 (http://www.chiefdelphi.com/forums/showthread.php?t=84633)

Ether 24-03-2010 21:23

ERROR <Code> 1026
 
Quote:

ERROR <Code> 1026 occurred at Property Node in NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Async VI Agent.vi
LabVIEW: VI Reference is invalid.
What does the above error mean, in English?

It appears repeatedly in the Driver Station window after autonomous completes.


~

Greg McKaskle 24-03-2010 23:31

Re: ERROR <Code> 1026
 
To lookup what a LV error code means, you can select the menu item Help>>Explain Error. This is often available by right clicking on an error cluster as well.

If necessary copy in the error info, such as entering in 1026 in the decimal error, and it tells you that this indicates a bad VI refnum was wired in as a parameter somewhere in the VI called Asynch VI Agent.vi. It most likely means that one or more of the VI references registered as running asynchronously has already stopped running, so is no longer a valid reference.

Are there things not working on your robot, or are you asking out of curiosity?

Greg McKaskle

Ether 25-03-2010 10:03

Re: ERROR <Code> 1026
 
Quote:

Originally Posted by Greg McKaskle (Post 942928)
Are there things not working on your robot, or are you asking out of curiosity?

Things appear to be working properly, and the programmer was perfectly happy to ignore it, but I told him that error messages are important and should not be ignored... it could come back to bite him at the worst possible time.


~

Ether 25-03-2010 10:08

Re: ERROR <Code> 1026
 
Quote:

Originally Posted by Greg McKaskle (Post 942928)
this indicates a bad VI refnum was wired in as a parameter somewhere in the VI called Asynch VI Agent.vi.

"Asynch VI Agent" must be part of the framework, because that's sure not the name of any VI that our team created.

Quote:

It most likely means that one or more of the VI references registered as running asynchronously has already stopped running, so is no longer a valid reference.
Would this be somehow related to the framework shutting down autonomous independent when 15 seconds has expired?


~

Alan Anderson 25-03-2010 11:37

Re: ERROR <Code> 1026
 
Quote:

Originally Posted by Ether (Post 943044)
Would this be somehow related to the framework shutting down autonomous independent when 15 seconds has expired?

It looks like the framework is trying to shut down Autonomous Independent, but failing. This is likely because the Autonomous Independent is no longer running, having already completed before the 15 second autonomous period ended. I'd place that error in the same category as the powerup message warning that the Cypress board cannot be found -- it is expected behavior if the board is not connected.

The other possibility is that Autonomous Independent is inappropriately being run explicitly by user code, so the framework code that tries to run it (and delete it) as an actual independent task cannot do its job.

Ether 25-03-2010 11:54

Re: ERROR <Code> 1026
 
Quote:

Originally Posted by Alan Anderson (Post 943074)
It looks like the framework is trying to shut down Autonomous Independent, but failing. This is likely because the Autonomous Independent is no longer running, having already completed before the 15 second autonomous period ended.

Thanks Alan. That diagnosis certainly fits the facts. The autonomous independent code finishes in about 8 seconds.

Assuming this is the case, I view it as a problem with the framework. It is entirely reasonable to expect that teams will design autonomous independent code that finishes before the time expiration. Displaying an error message like this teaches the students to ignore error messages. That is a very bad thing.



Quote:

The other possibility is that Autonomous Independent is inappropriately being run explicitly by user code, so the framework code that tries to run it (and delete it) as an actual independent task cannot do its job.
No, we've learned our lesson there, thanks to your (and other's) posts on this topic.


~

Greg McKaskle 25-03-2010 13:03

Re: ERROR <Code> 1026
 
There is indeed an unwired error within the framework that will cause a DS printout at auto completion if the Auto Independent VI has already completed. This will be corrected in the future, but doesn't warrant an update. I wasn't sure this matched your report.

Greg McKaskle

Ether 25-03-2010 13:20

Re: ERROR <Code> 1026
 
Quote:

Originally Posted by Greg McKaskle (Post 943105)
There is indeed an unwired error within the framework that will cause a DS printout at auto completion if the Auto Independent VI has already completed. This will be corrected in the future, but doesn't warrant an update. I wasn't sure this matched your report.

Is there a link to a "known bugs" list for the framework that FRC teams can view?


~

Greg McKaskle 25-03-2010 14:32

Re: ERROR <Code> 1026
 
No external list that I know of. I'd love for it to be on source forge, and perhaps we can get it pushed there next year.

Greg McKaskle


All times are GMT -5. The time now is 11:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi