Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
7 ratings:
 3.57 out of 5     Rate this Document

What is the Correct File Path Format for LabVIEW Real-Time Targets ?

Primary Software: LabVIEW Modules>>Real-Time Module
Primary 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.
Note: The folder that you specify to write to has to exist on the target drive before you write to it or your VI will not work correctly.

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

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit