We have used Perforce for a few years and have our workspace as the whole D drive. Our PC's have their hard drives partitioned as a C drive for windows and applications and D drive for the user data. LabVIEW is installed in D:\Program Files and our user areas in D:\Documents and Settings\User\My Documents\LabVIEW. The decision to use the entire D drive was based on the need to include the user.lib and instr.lib (we have written our own custom instrument drivers) folders in the Perforce depot. This does not mean that the entire D drive is held under Perforce, what we do is set the View to target folders in the Perforce Depot to our workspaces. An example of our view settings would be:
//depot/... "//workspace/Documents and Settings/user/My Documents/LabVIEW/..." "-//depot/LV 2009/..." "//workspace/Documents and Settings/user/My Documents/LabVIEW/LV 2009/..." "//depot/LV 2009/..." "//workspace/Program Files/National Instruments/LabVIEW 2009/..." "-//depot/Requirements documents/..." "//workspace/Documents and Settings/user/My Documents/LabVIEW/Requirements documents/..." "//depot/Requirements documents/..." "//workspace/Documents and Settings/user/My Documents/Requirements Documents/..."
This targets the entire depot to the LabVIEW folder in My Documents but removes the "LabVIEW 2009 folder" and targets this to the LabVIEW programs folder. We also have a "Requirements Documents" folder that is targeted to our My Documents Folder.
Our original thought was to hold the instr.lib and user.lib folders in a separate workspace but LabVIEW can not handle more than one workspace so it proved to be difficult to keep everything in sync.