LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why are Labview 8.0 Visa Errors descriptions reported as undefined? They do not exist in the error code database.

I receive various Visa Error codes such as -1073807343 but the General error handler reports that the code description is undefined.  I drilled down to the Code Database VI and found that the VISA error codes do not exist in the database.  Is there a patch for this?  I have reinstalled the vi.lib from the Labview 8.0 CD but no help.
 
Roger
0 Kudos
Message 1 of 11
(3,615 Views)
Did you install VISA? The VISA error codes get installed when you install VISA. Open MAX (Measurement & Automation Explorer) and expand the Software listing to see if it's listed. If it's not, install VISA from the driver's CD.
0 Kudos
Message 2 of 11
(3,610 Views)

Dennis,

Yes I am using V2.6 now.  Visa works correctly and I am having no other problem.  The VISA errors that I get are self generated and expected.  I just am not get the description from the error handler. 

I also have LV Version 6.0.2 ,  V7.1 and V8.0 installed on this machine.   I have the same problem in V7.1 but V6.0.2 works correctly and pulls the appropriate error code description for the error dialog message.

Roger

0 Kudos
Message 3 of 11
(3,606 Views)
The error codes and text are pulled from the National Instruments\Shared\Errors\English folder and are a bunch of txt files. The error files in older versions were installed in the LabVIEW 6.x folder if I remember correctly. If the files are there in the shared folder, I'm not sure what the problem could be.
0 Kudos
Message 4 of 11
(3,603 Views)
Dennis
 
If you drill down into the General Error Handler.VI  into the General Error Handler CORE.VI you will see the following comments in the Case structure.  It seems that the error handler has some known issues.  Please check into it if possible.
 
"If you need the WinComm errors, change constant to TRUE and contact NI technical support. We plan to remove this  functionality entirely in the next version."
 
"Error code text was found neither in database nor in user definitions. Display either the "not found" message or, if 0x4000 bit is set, the windows/OS error message."
 
Also below is the error message that is hard coded into the CORE.VI.  It is passed from a cluster on the front panel called "Prompts" when the VISA errors are encounter?
 
"This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input."
 
What is all of this mean?
 
Thanks
Roger
0 Kudos
Message 5 of 11
(3,599 Views)
That false case is only run if the Error Code Database function doesn't return anything. The problem would appear to be there. Unfortunately, that VI is password protected and I have no idea what's inside. I know that the General Error Handler Code has changed from older versions of LabVIEW. You wouldn't happen to be running a VI that you converted from an older version would you? If you close everything down and restart the latest version of LabVIEW, open the General Error Handler and run it with one of your VISA error codes and see if you get the correct response.
0 Kudos
Message 6 of 11
(3,594 Views)

Dennis,

No, that is what I have been doing to test this problem.

I have closed everything.  Opened LV 8.0.  Then opened the General Error Handler and typed in the error code i.e. -1073807339.  I have also typed this code into the Database VI .   It does not recongnize the code.   The root cause is that the Database VI does not return any description. 

Are the descriptions embedded in that Database VI?  Or do they point to something else?

Roger

0 Kudos
Message 7 of 11
(3,592 Views)
The errors and descriptions are in the files that I mentioned. They are really xml files though they have a .txt extension.
0 Kudos
Message 8 of 11
(3,587 Views)

Dennis,

The files in my shared directories are not that large and do not list all the codes.  V6.0.2 must not use the files because there is not any problem with that version.

How do I locate the files?  I have installed VI.Lib from the LV 8.0 CD but it did not correct the problem.

Roger

0 Kudos
Message 9 of 11
(3,585 Views)

Here is the content of my error folder. Many of them get installed with the associated hardware driver. For example, the installation of NI-488 will install the error file for that and the installation of NI-VISA will install that error file. Other than that, I don't know what else to say. Re-installing vi.lib probably won't help but re-installing VISA might.

Message Edited by Dennis Knutson on 11-07-2006 01:10 PM

0 Kudos
Message 10 of 11
(3,581 Views)