LabVIEW 包含 Excel 参考资料

发布于 2024-07-05 03:11:22 字数 157 浏览 4 评论 0原文

我尝试在 LabVIEW 中打开并引用 Excel,然后在一段时间后将其关闭。 但 LabVIEW 会一直保留该引用并且不会释放它,除非我关闭 VI。 为什么会发生这种情况? 有没有办法强制它释放参考文献?

我正在检查错误是否有任何错误。 但它并没有抛出任何错误。

I try to open and excel reference in LabVIEW and then close it after sometime. But the LabVIEW keeps holding the reference and does not release it unless I close the VI. Why is this happening? Is there anyway to force it to release the Reference?

I am checking the error out for any errors. But it is not throwing up any errors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

星星的轨迹 2024-07-12 03:11:23

你在 Excel 中做什么?

通常,Labview 只会将引用保持打开状态,直至其关闭为止。 但是,这包括对 excel 任何部分(excel.worksheet、excel.range、excel.workbook 等)的任何引用。 您需要显式关闭每个引用。

调试起来可能很辛苦,但您需要手动浏览整个 Excel 处理部分并确保每个引用都已关闭。

What are you doing in Excel?

Typically, Labview will hold the reference open only until it is closed. However, this includes any references to any part of excel (excel.worksheet, excel.range, excel.workbook, etc). You need to close each reference explicitly.

It can be painstaking to debug, but you need to manually go through your entire excel-handling section and make sure that every reference is closed.

可遇━不可求 2024-07-12 03:11:23

您是否检查关闭文件命令的返回值? 我过去曾遇到过 LV 的此问题,并发现这是此问题的可能根本原因之一。

查看以下示例文件,看看您是否以相同的方式执行操作:

labview\examples\file\datalog.llb\Read Datalog File Example.vi

HTH

Are you checking the return value from the close file command? I've had this problem with LV in the past and have found this to be one possible root cause for this problem.

Check out the following example file to see if you are doing things the same way:

labview\examples\file\datalog.llb\Read Datalog File Example.vi

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文