LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FGV File Managemant Error 1 problem

Solved!
Go to solution

The attached vi is a subVI from CLD exam boiler example. Why the following FGV subvi can be use in the other program without problem, but it cannot run on its own. When it runs own itself , it can do Open File action, but can't do Write Log Data and Close File action afterwards. It will have code 1 error when I tried to run Write Log Data and Close File after I run Open File. I understand that error code 1 happens when you lost the reference. However, Is that an explanation why it cannot run on itself but it is okay to run as subvi in the other vi?

0 Kudos
Message 1 of 3
(804 Views)
Solution
Accepted by topic author QianBath

When the execution terminates (the Running arrow turns back white), all references become invalid. This does not occur while the main vi is running.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 3
(799 Views)

Hi Paolo,

 

Thank you very much for the anwer. That explains well, I thought it might be something like I click too many times of running. Thank you again, have a nice day.

0 Kudos
Message 3 of 3
(794 Views)