I am using LabVIEW's Temporary Directory (Tools::Options::Paths) to test an external SCSI drive. When the SCSI is powered on, it is mapped to the 'G' drive. My SCSI test uses the temporary directory control (which points to the G drive) to verify the presence of a file that only exists there, then it opens/creates a new file, writes/closes opens/reads, etc. Anyway, if the SCSI is on and then I bring up LabVIEW and run my test, everything works great. If I then turn off the SCSI the test fails as expected. However, if I then turn on the SCSI with LabVIEW still running, then the problems begin. Here's what happens....
At LabVIEW, if you look at the Tools::Options::Paths, the temporary directory is reset to C:\Documents and Settings ...., which is fine when the SCSI is down, but it doesn't go back to G:\Data... UNTIL I exit LabVIEW and restart it. This is not good for my test.
Is there a way to 'touch' or somehow tell LabVIEW to try again to re-establish its directories? If there is an alternative to the way I'm testing the SCSI, I'd be open to suggestions.