10-30-2008 12:17 PM
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
Solved! Go to Solution.
10-30-2008 12:47 PM
10-30-2008 12:56 PM
10-30-2008 12:58 PM
10-30-2008 01:01 PM
10-30-2008 01:29 PM
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
10-30-2008 03:08 PM
10-31-2008 09:00 AM - edited 10-31-2008 09:01 AM