LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the delete vi located?

Solved!
Go to solution

I am using TestStand 3.5 and LabVIEW 8.0.  I need to be able to delete files from a TestStand program, and it seems like the easiest way to do that is call a LabVIEW vi. The LabVIEW delete function at File I/O->Advanced File Functions->Delete does what I need, but I can't find the actual file on my hard drive - I need to have the path/filename to be able to call it directly from TestStand.  Does anyone know where to find that file, and if there is an easy way to get the path to a function placed in a block diagram?

Thanks!

-Bill

Message 1 of 8
(3,399 Views)
That's a function, not a file.
Richard






0 Kudos
Message 2 of 8
(3,389 Views)
Does that mean there is no way to call it directly from TestStand without making it into my own vi?
0 Kudos
Message 3 of 8
(3,381 Views)
Solution
Accepted by topic author parkerfly
Yes, but it's easy enough to do.
Richard






0 Kudos
Message 4 of 8
(3,375 Views)
I'm confused as to what you want to do. A TestStand program consists of steps and the steps may be another sequence file, a VI, a DLL, etc. Exactly what type of file are you trying to delete? And why would someone here know where to file that file? A function in a block diagram is not something that you can do remove programatically nor could you delete a function from the LabVIEW distribution.
0 Kudos
Message 5 of 8
(3,372 Views)

My TestStand program uses calls to a proprietary communications program to log CAN data to .csv files.  It then copies that data into a spreadsheet that plots the logged data.  Since all logged data is combined into one spreadsheet, I want to delete the .csv files at the end of test execution so there aren't unneeded files left behind.

 

Our companies policy is to not create new vi's unless there is no other choice (not my preference, but I have to work within my companies guidelines.)  For other things that are done by vi's (for example, using the vi's from the Office Toolkit) that we want to use within TestStand, we created custom step types that call those vi's directly.  I was hoping that the Delete function was a separate vi just like the open and close file functions are, so I could call it directly.  Since it is not, I'll have to create a small vi that I can call from TestStand to delete files...

 

I was hoping that for some reason the vi filename for Delete was something not obvious, and someone here had used it and could tell me where it is.  Since it isn't a vi, I'll create my own. 

 

Thanks,

-Bill

0 Kudos
Message 6 of 8
(3,356 Views)
Well, the Open/Create/Replace and the Close File are not separate VIs either in current versions of LabVIEW. The Open/Create/Replace once was but I dont' think the Close File ever was. Just something to keep in mind when you upgrade.
0 Kudos
Message 7 of 8
(3,337 Views)
Right, the the Open/Create/Replace and the Close File are basically legacy items in my opinion. The VI's kept the same interface because we were so used to them. Kind of like the old Serial port VI's that looked the same in version 7 as previous, but were VISA under the hood. Mayne that happend in 6, but I digress.
Message Edited by Broken Arrow on 10-31-2008 09:01 AM
Richard






0 Kudos
Message 8 of 8
(3,313 Views)