07-28-2010 02:33 PM
Hi all,
I am just trying to create a very sample functional global. When I execuate it for the first time to create a file, it should store the file reference in the shift register. When I execuate it for the second time to append a txt, I should be able to do that, but I am getting an error. Please see attachment. thanks!
Yik
Solved! Go to Solution.
07-28-2010 02:39 PM
LabVIEW has a clean-up routine that runs around and cleans up any references you may have left open in your app. So when a VI goes idle, LV cleans up all of the toys left laying around.
This affects the testing of Action Engines that utilize resource like file queues etc.
To test an AE (functional global) you should create a tester VI that does the open, write and close without the VI stoping.
Ben
07-28-2010 07:55 PM - edited 07-28-2010 07:59 PM
I have no problem using your Action Engine, except for when I have a blank "file name". Are you sure you have a valid value set for "file name" inside the Action Engine? This terminal is not exposed on the subVI interface via the Connector Pane, so the calling diagram is not allowed to set the value of "file name". Perhaps, you should expose it to the caller by wiring it to the Connector Pane, set a Default Value in the control, or make it a block diagram constant.