What is the Correct File Path Format for LabVIEW Real-Time Targets ?Primary Software: LabVIEW Modules>>Real-Time ModulePrimary Software Version: 5.0 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: Compact FieldPoint>>Controllers, Compact FieldPoint>>Controllers, PXI/CompactPCI>>Controllers>>PXI-8146 RT, PXI/CompactPCI>>Controllers>>PXI-8156B RT, PXI/CompactPCI>>Controllers>>PXI-8170 RT, PXI/CompactPCI>>Controllers>>PXI-8186 RT, PXI/CompactPCI>>Controllers>>PXI-8184RT, PXI/CompactPCI>>Controllers>>PXI-8175 RT, PXI/CompactPCI>>Controllers>>PXI-8176 RT, PXI/CompactPCI>>Controllers>>PXI-8196 RT, PXI/CompactPCI>>Controllers>>PXI-8195 RT, PXI/CompactPCI>>Controllers>>PXI-8145 RT, PXI/CompactPCI>>Controllers>>PXIe-8130 RT, PXI/CompactPCI>>Controllers>>PXI-8106 RT
Problem: I am trying to save a file on my real-time target and need to know what directory to specify for saving the file. What directory do I save the file on to make sure it is saved on the real-time target? Solution: Real-time targets use letters to indicate different drives just like a desktop computer. To access a file within the memory of the Real-Time target, the path would begin with the C:\ like on your desktop computer. If you wish to log data gathered on the Real-Time target to a file on the same target, you could use the Write to Text File.vi in LabVIEW and use C:\[folder name]\[file name] for your File input parameter on the VI. For example, if you wanted to write to the test.txt file in the temp folder it would result in the following path name: C:\temp\test.txt. The picture below shows how to save a text file in the root directory of the target's memory. ![]() Related Links: KnowledgeBase 2KM92E5F: How Do I FTP to the External CompactFlash or USB drive on a RT Controller? Attachments:
Report Date: 04/02/2008 Last Updated: 12/29/2008 Document ID: 4K1HPA20 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

