cpubbs 发表于 2008-9-2 10:45:41

VISA Error Codes

转自NI!原贴地址:http://zone.ni.com/reference/en-XX/help/lv/71/lverror/VISA_Error_Codes/

The VISA functions can return the following error codes. Refer to the KnowledgeBase for more information about correcting errors in LabVIEW.
CodeNameDescription–1073807360VI_ERROR_SYSTEM_ERRORUnknown system error (miscellaneous error).–1073807346VI_ERROR_INV_OBJECTThe given session or object reference is invalid.–1073807345VI_ERROR_RSRC_LOCKEDSpecified type of lock cannot be obtained, or specified operation cannot be performed because the resource is locked.–1073807344VI_ERROR_INV_EXPRInvalid expression specified for search.–1073807343VI_ERROR_RSRC_NFOUNDInsufficient location information or the device or resource is not present in the system.–1073807342VI_ERROR_INV_RSRC_NAMEInvalid resource reference specified. Parsing error.–1073807341VI_ERROR_INV_ACC_MODEInvalid access mode.–1073807339VI_ERROR_TMOTimeout expired before operation completed.–1073807338VI_ERROR_CLOSING_FAILEDThe VISA driver failed to properly close the session or object reference. This might be due to an error freeing internal or OS resources, a failed network connection, or a lower level driver or OS error.–1073807333VI_ERROR_INV_DEGREESpecified degree is invalid.–1073807332VI_ERROR_INV_JOB_IDSpecified job identifier is invalid.–1073807331VI_ERROR_NSUP_ATTRThe specified attribute is not defined or supported by the referenced resource.–1073807330VI_ERROR_NSUP_ATTR_STATEThe specified state of the attribute is not valid, or is not supported as defined by the resource.–1073807329VI_ERROR_ATTR_READONLYThe specified attribute is read-only.–1073807328VI_ERROR_INV_LOCK_TYPEThe specified type of lock is not supported by this resource.–1073807327VI_ERROR_INV_ACCESS_KEYThe access key to the specified resource is invalid.–1073807322VI_ERROR_INV_EVENTSpecified event type is not supported by the resource.–1073807321VI_ERROR_INV_MECHInvalid mechanism specified.–1073807320VI_ERROR_HNDLR_NINSTALLEDA handler was not installed.–1073807319VI_ERROR_INV_HNDLR_REFThe given handler reference is invalid.–1073807318VI_ERROR_INV_CONTEXTSpecified event context is invalid.–1073807315VI_ERROR_QUEUE_OVERFLOWThe event queue for the specified type has overflowed. This is usually due to previous events not having been closed.–1073807313VI_ERROR_NENABLEDYou must be enabled for events of the specified type in order to receive them.–1073807312VI_ERROR_ABORTUser abort occurred during transfer.–1073807308VI_ERROR_RAW_WR_PROT_VIOLViolation of raw write protocol occurred during transfer.–1073807307VI_ERROR_RAW_RD_PROT_VIOLViolation of raw read protocol occurred during transfer.–1073807306VI_ERROR_OUTP_PROT_VIOLDevice reported an output protocol error during transfer.–1073807305VI_ERROR_INP_PROT_VIOLDevice reported an input protocol error during transfer.–1073807304VI_ERROR_BERRBus error occurred during transfer.

cpubbs 发表于 2008-9-2 10:46:02

–1073807303VI_ERROR_IN_PROGRESSUnable to queue the asynchronous operation because there is already an operation in progress.–1073807302VI_ERROR_INV_SETUPUnable to start operation because setup is invalid (due to attributes being set to an inconsistent state).–1073807301VI_ERROR_QUEUE_ERRORUnable to queue the asynchronous operation.–1073807300VI_ERROR_ALLOCInsufficient system resources to perform necessary memory allocation.–1073807299VI_ERROR_INV_MASKInvalid buffer mask specified.–1073807298VI_ERROR_IOCould not perform operation because of I/O error.–1073807297VI_ERROR_INV_FMTA format specifier in the format string is invalid.–1073807295VI_ERROR_NSUP_FMTA format specifier in the format string is not supported.–1073807294VI_ERROR_LINE_IN_USEThe specified trigger line is currently in use.–1073807290VI_ERROR_NSUP_MODEThe specified mode is not supported by this VISA implementation.–1073807286VI_ERROR_SRQ_NOCCURREDService request has not been received for the session.–1073807282VI_ERROR_INV_SPACEInvalid address space specified.–1073807279VI_ERROR_INV_OFFSETInvalid offset specified.–1073807278VI_ERROR_INV_WIDTHInvalid access width specified.–1073807276VI_ERROR_NSUP_OFFSETSpecified offset is not accessible from this hardware.–1073807275VI_ERROR_NSUP_VAR_WIDTHCannot support source and destination widths that are different.–1073807273VI_ERROR_WINDOW_NMAPPEDThe specified session is not currently mapped.–1073807271VI_ERROR_RESP_PENDINGA previous response is still pending, causing a multiple query error.–1073807265VI_ERROR_NLISTENERSNo listeners condition is detected (both NRFD and NDAC are deasserted).–1073807264VI_ERROR_NCICThe interface associated with this session is not currently the controller in charge.–1073807263VI_ERROR_NSYS_CNTLRThe interface associated with this session is not the system controller.–1073807257VI_ERROR_NSUP_OPERThe given session or object reference does not support this operation.–1073807256VI_ERROR_INTR_PENDINGAn interrupt is still pending from a previous call.–1073807254VI_ERROR_ASRL_PARITYA parity error occurred during transfer.–1073807253VI_ERROR_ASRL_FRAMINGA framing error occurred during transfer.–1073807252VI_ERROR_ASRL_OVERRUNAn overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.–1073807250VI_ERROR_TRIG_NMAPPEDThe path from trigSrc to trigDest is not currently mapped.–1073807248VI_ERROR_NSUP_ALIGN_OFFSETThe specified offset is not properly aligned for the access width of the operation.–1073807247VI_ERROR_USER_BUFA specified user buffer is not valid or cannot be accessed for the required size.–1073807246VI_ERROR_RSRC_BUSYThe resource is valid, but VISA cannot currently access it.–1073807242VI_ERROR_NSUP_WIDTHSpecified width is not supported by this hardware.–1073807240VI_ERROR_INV_PARAMETERThe value of some parameter (which parameter is not known) is invalid.–1073807239VI_ERROR_INV_PROTThe protocol specified is invalid.–1073807237VI_ERROR_INV_SIZEInvalid size of window specified.–1073807232VI_ERROR_WINDOW_MAPPEDThe specified session currently contains a mapped window.–1073807231VI_ERROR_NIMPL_OPERThe given operation is not implemented.–1073807229VI_ERROR_INV_LENGTHInvalid length specified.–1073807215VI_ERROR_INV_MODEInvalid mode specified.–1073807204VI_ERROR_SESN_NLOCKEDThe current session did not have a lock on the resource.–1073807201VI_ERROR_NSUP_INTRThe interface cannot generate an interrupt on the requested level or with the requested statusID value.–1073807202VI_ERROR_LIBRARY_NFOUNDA code library required by VISA could not be located or loaded.–1073807200VI_ERROR_INV_LINEThe value specified by the line parameter is invalid.–1073807199VI_ERROR_FILE_ACCESSAn error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.–1073807198VI_ERROR_FILE_IOAn error occurred while performing I/O on the specified file.–1073807197VI_ERROR_NSUP_LINEOne of the specified lines, trigSrc or trigDest, is not supported by this VISA implementation, or the combination of lines is not a valid mapping.–1073807196VI_ERROR_NSUP_MECHThe specified mechanism is not supported for the given event type.–1073807195VI_ERROR_INTF_NUM_NCONFIGThe interface type is valid, but the specified interface number is not configured.–1073807194VI_ERROR_CONN_LOSTThe connection for the given session has been lost.–1073807193VI_ERROR_MACHINE_NAVAILThe remote machine does not exist or is not accepting any connections. If the NI-VISA server is installed and running on the remote machine, it might have an incompatible version or might be listening on a different port.–1073807192VI_ERROR_NPERMISSIONAccess to the remote machine is denied.0VI_SUCCESSOperation completed successfully.1073676290VI_SUCCESS_EVENT_ENSpecified event is already enabled for at least one of the specified mechanisms.1073676291VI_SUCCESS_EVENT_DISSpecified event is already disabled for at least one of the specified mechanisms.1073676292VI_SUCCESS_QUEUE_EMPTYOperation completed successfully, but queue was already empty.1073676293VI_SUCCESS_TERM_CHARThe specified termination character was read.1073676294VI_SUCCESS_MAX_CNTThe number of bytes transferred is equal to the requested input count. More data might be available.1073676300QUEUE_OVERFLOWVISA received more event information of the specified type than the configured queue size could hold.1073676407VI_WARN_CONFIG_NLOADEDThe specified configuration either does not exist or could not be loaded. VISA-specified defaults will be used.1073676413VI_SUCCESS_DEV_NPRESENTSession opened successfully, but the device at the specified address is not responding.1073676414VI_SUCCESS_TRIG_MAPPEDThe path from trigSrc to trigDest is already mapped.1073676418VI_WARN_NULL_OBJECTThe specified object reference is uninitialized.1073676416VI_SUCCESS_QUEUE_NEMPTYWait terminated successfully on receipt of an event notification. There is at least one more event occurrence of the type specified by inEventType available for this session.1073676420VI_WARN_NSUP_ATTR_STATEAlthough the specified state of the attribute is valid, it is not supported by this resource implementation.1073676421VI_WARN_UNKNOWN_STATUSThe status code passed to the operation could not be interpreted.1073676424VI_WARN_NSUP_BUFThe specified I/O buffer is not supported.1073676440VI_SUCCESS_NCHAINEvent handled successfully. Do not invoke any other handlers on this session for this event.1073676441VI_SUCCESS_NESTED_SHAREDOperation completed successfully, and this session has nested shared locks.1073676442VI_SUCCESS_NESTED_EXCLUSIVEOperation completed successfully, and this session has nested exclusive locks.1073676443VI_SUCCESS_SYNCOperation completed successfully, but the operation was actually synchronous rather than asynchronous.1073676457VI_WARN_EXT_FUNC_NIMPLThe operation succeeded, but a lower level driver did not implement the extended functionality.

wdyjz 发表于 2008-9-2 14:16:35

挺全的,便于查错和调试系统了。

wdyjz 发表于 2010-7-22 22:13:37

http://zone.ni.com/reference/en-XX/help/371361B-01/lverror/visa_error_codes/
http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/parity-error-occures-during-data-transfer/m-p/223085?view=by_date_ascending

wdyjz 发表于 2010-7-22 22:58:51

Code Description
−1073807360 Unknown system error (miscellaneous error).
−1073807346 The given session or object reference is invalid.
−1073807345 Specified type of lock cannot be obtained, or specified operation cannot be performed, because the resource is locked.
−1073807344 Invalid expression specified for search.
−1073807343 Insufficient location information or the device or resource is not present in the system.
−1073807342 Invalid resource reference specified. Parsing error.
−1073807341 Invalid access mode.
−1073807339 Timeout expired before operation completed.
−1073807338 The VISA driver failed to properly close the session or object reference. This might be due to an error freeing internal or OS resources, a failed network connection, or a lower level driver or OS error.
−1073807333 Specified degree is invalid.
−1073807332 Specified job identifier is invalid.
−1073807331 The specified attribute is not defined or supported by the referenced resource.
−1073807330 The specified state of the attribute is not valid, or is not supported as defined by the resource.
−1073807329 The specified attribute is read-only.
−1073807328 The specified type of lock is not supported by this resource.
−1073807327 The access key to the specified resource is invalid.
−1073807322 Specified event type is not supported by the resource.
−1073807321 Invalid mechanism specified.
−1073807320 A handler was not installed.
−1073807319 The given handler reference is invalid.
−1073807318 Specified event context is invalid.
−1073807315 The event queue for the specified type has overflowed. This is usually due to previous events not having been closed.
−1073807313 You must be enabled for events of the specified type in order to receive them.
−1073807312 User abort occurred during transfer.
−1073807308 Violation of raw write protocol occurred during transfer.
−1073807307 Violation of raw read protocol occurred during transfer.
−1073807306 Device reported an output protocol error during transfer.
−1073807305 Device reported an input protocol error during transfer.
−1073807304 Bus error occurred during transfer.
−1073807303 Unable to queue the asynchronous operation because there is already an operation in progress.
−1073807302 Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).
−1073807301 Unable to queue the asynchronous operation (usually due to the I/O completion event not being enabled or insufficient space in the session's queue).
−1073807300 Insufficient system resources to perform necessary memory allocation.
−1073807299 Invalid buffer mask specified.
−1073807298 Could not perform operation because of I/O error.
−1073807297 A format specifier in the format string is invalid.
−1073807295 A format specifier in the format string is not supported.
−1073807294 The specified trigger line is currently in use.
−1073807290 The specified mode is not supported by this VISA implementation.
−1073807286 Service request has not been received for the session.
−1073807282 Invalid address space specified.
−1073807279 Invalid offset specified.
−1073807278 Invalid access width specified.
−1073807276 Specified offset is not accessible from this hardware.
−1073807275 Cannot support source and destination widths that are different.
−1073807273 The specified session is not currently mapped.
−1073807271 A previous response is still pending, causing a multiple query error.
−1073807265 No listeners condition is detected (both NRFD and NDAC are deasserted).
−1073807264 The interface associated with this session is not currently the controller in charge.
−1073807263 The interface associated with this session is not the system controller.
−1073807257 The given session or object reference does not support this operation.
−1073807256 An interrupt is still pending from a previous call.
−1073807254 A parity error occurred during transfer.
−1073807253 A framing error occurred during transfer.
−1073807252 An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.
−1073807250 The path from trigSrc to trigDest is not currently mapped.
−1073807248 The specified offset is not properly aligned for the access width of the operation.
−1073807247 A specified user buffer is not valid or cannot be accessed for the required size.
−1073807246 The resource is valid, but VISA cannot currently access it.
−1073807242 Specified width is not supported by this hardware.
−1073807240 The value of some parameter (which parameter is not known) is invalid.
−1073807239 The protocol specified is invalid.
−1073807237 Invalid size of window specified.
−1073807232 The specified session currently contains a mapped window.
−1073807231 The given operation is not implemented.
−1073807229 Invalid length specified.
−1073807215 Invalid mode specified.
−1073807204 The current session did not have a lock on the resource.
−1073807202 A code library required by VISA could not be located or loaded.
−1073807201 The interface cannot generate an interrupt on the requested level or with the requested statusID value.
−1073807200 The value specified by the line parameter is invalid.
−1073807199 An error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.
−1073807198 An error occurred while performing I/O on the specified file.
−1073807197 One of the specified lines, trigSrc or trigDest, is not supported by this VISA implementation, or the combination of lines is not a valid mapping.
−1073807196 The specified mechanism is not supported for the given event type.
−1073807195 The interface type is valid, but the specified interface number is not configured.
−1073807194 The connection for the given session has been lost.
−1073807193 The remote machine does not exist or is not accepting any connections. If the NI-VISA server is installed and running on the remote machine, it might have an incompatible version or might be listening on a different port.
−1073807192 Access to the resource or remote machine is denied. This is due to lack of sufficient privileges for the current user or machine.
0 Operation completed successfully.
1073676290 Specified event is already enabled for at least one of the specified mechanisms.
1073676291 Specified event is already disabled for at least one of the specified mechanisms.
1073676292 Operation completed successfully, but queue was already empty.
1073676293 The specified termination character was read.
1073676294 The number of bytes transferred is equal to the requested input count. More data might be available.
1073676300 VISA received more event information of the specified type than the configured queue size could hold.
1073676407 The specified configuration either does not exist or could not be loaded. VISA-specified defaults will be used.
1073676413 Session opened successfully, but the device at the specified address is not responding.
1073676414 The path from trigSrc to trigDest is already mapped.
1073676416 Wait terminated successfully on receipt of an event notification. There is at least one more event occurrence of the type specified by inEventType available for this session.
1073676418 The specified object reference is uninitialized.
1073676420 Although the specified state of the attribute is valid, it is not supported by this resource implementation.
1073676421 The status code passed to the operation could not be interpreted.
1073676424 The specified I/O buffer is not supported.
1073676440 Event handled successfully. Do not invoke any other handlers on this session for this event.
1073676441 Operation completed successfully, and this session has nested shared locks.
1073676442 Operation completed successfully, and this session has nested exclusive locks.
1073676443 Operation completed successfully, but the operation was actually synchronous rather than asynchronous.
1073676457 The operation succeeded, but a lower level driver did not implement the extended functionality.

wdyjz 发表于 2010-7-22 23:21:11

Memory parity error

Explanation: A parity error was detected within the system memory. Parity checking is used to detect memory corruption between the time that data is written to memory and the time that it is read back. See here for a complete explanation of system memory error detection and correction. This error message means that there is a problem associated with the system memory. Depending on the system, you may be told some specifics about what part of memory caused the error.

Diagnosis: There are many possible causes of memory parity errors, some of them only related indirectly to the memory, or even having nothing to do with the memory at all. In particular, a memory error at start up is often indicative of a wide variety of possible problems.

Recommendation: Diagnose the parity error further here.
http://www.pcguide.com/ts/x/sys/booterrGBER39-c.html

wdyjz 发表于 2010-7-22 23:21:35

http://www.pcguide.com/ts/x/comp/ram/parity_Boot.htm
页: [1]
查看完整版本: VISA Error Codes