找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 7056|回复: 1

[分享] visa常见错误码VISA Error Codes

[复制链接]
发表于 2010-6-29 16:19:09 | 显示全部楼层 |阅读模式
这个常用。

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.
–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.

 楼主| 发表于 2010-6-29 16:20:10 | 显示全部楼层
碰到可以查一下,能判断是什么错误原因
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-29 05:19 , Processed in 0.030995 second(s), 6 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表