NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

delete fileglobals programatically

I have a fileglobals container that I would like to delete programatically. I tried using the Delete Subproperty to delete each element in the container and Delete Nth Subproperty with index -1.But both doesnt work. I have attached the VI I am using and I m calling this VI in a action step. Since Sequence context provides a run time copy of the sequence, I am getting the reference of the "Sequence File" using path and then deleting the File globals. Please tell me what I am doing wrong!

0 Kudos
Message 1 of 2
(4,142 Views)

First of all I would wire a 0 to the index and not the i of the for loop.  The reason being that as you delete elements the N decreases.  So as i increases then you will start deleting elements that don't exist.

 

The other question I have is do you want to delete just for the run time copy or do you want to save these back into the disk copy of the sequence file?

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(4,127 Views)