LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file operation FG

Solved!
Go to solution

 

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

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(2,764 Views)
Solution
Accepted by topic author jyang72211

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,762 Views)

20173i3DC26FDA0FE969B5

 

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.

0 Kudos
Message 3 of 3
(2,740 Views)