Common Errors When Using Shared Variables in LabVIEW

您所在的位置:网站首页 资料库载入过程中无法进行此操作 Common Errors When Using Shared Variables in LabVIEW

Common Errors When Using Shared Variables in LabVIEW

2024-03-06 19:45| 来源: 网络整理| 查看: 265

Additional InformationHow to interpret shared variable errors:When you use shared variable reference nodes on a block diagram, the shared variable may return an error. In almost all cases the error cluster will contain the error source:

ni_tagger_lv_Read

or

ni_tagger_lv_Write

This does not necessarily mean the error occurred in these nodes. Any error noted below that has an associated quality (see notes under聽Other Representations) was actually returned by the Shared Variable Engine and passed through the error returned by聽ni_tagger_lv_Read聽or聽ni_tagger_lv_Write.

If you use front panel binding to connect to shared variables you will see a transparent, green, or red triangle next to the front panel control.聽A transparent triangle indicates that the front panel control is not connected to the variable or the VI is idle.聽A green triangle indicates good connection status to the source.聽A red triangle indicates an error.聽Hover the mouse over the triangle and you should see a more detailed description of the error.

How to interpret shared variable deployment errors:You may encounter an error while trying to deploy a library. You can categorize most deployment errors into two classes:

First, you may receive an error indicating a configuration problem with a shared variable in the library. In this case, scroll up in the聽Deployment Status聽text field in the Deploy window until you can find the first error.Concentrate your efforts on resolving the first type of error.The second class of deployment errors are higher-level errors (such as聽Error -1967362038). In this case, use the Distributed Systems Manager or Variable Manager utility to verify that the Shared Variable Engine is running. Then, try restarting the Shared Variable Engine and redeploy the library. General tips for handling shared variable errors: Before running a VI that uses shared variables, open the Variable Manager utility and verify that your shared variables are working properlyExpect that network-published shared variables will return errors at some point during execution of your code. Your code should handle all shared variable errors.If automatic error handling is enabled and any shared variable returns an error, your VI will stop and you will be prompted to handle the error. If you don't need to handle shared variable errors, you can disable automatic error handling for the VI by unchecking this option in the聽Execution聽category of the聽VI Properties聽dialog box.


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3