|
LabVIEWStyle Guide
|
This LabVIEW Style Guide is intended as a statement of values that define Culverson's approach to the software our customers get.
File Paths
- Disk paths should never be hard-coded as absolute paths. Use the ROOT FOLDER vi in the CULVERSON PROGRAM TOOLS library to obtain the root path of the application. Construct paths from that root path, and use them. (It must be initialized - there are instructions within that VI).
- If you need folders relative to the root, create them at launch time. Ignore the error from he NEW FOLDER function, as they likely already exist.
- If you need to construct paths, do NOT hard-code the file-separator character - use the BUILD PATH function. Code should be written to be as cross-platform as possible.
Return to Index