PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Write text to file produces error 1

The attached vi attempts to write text to a text file. The file name is automatically created from the current date (no file dialog box shall be displayed). When I run the vi, I receive an error 1 and no file is being created.
0 Kudos
Message 1 of 3
(3,307 Views)
Hi,

To answer your question: The file path input of the Open/Create/Replace File.vi refers to a complete file path including the file name. I have modified your vi by concatenating the Location of Log File control with the Date string and using that as a file path. This runs perfectly without any errors.

Regards,
Ankita A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,307 Views)
Hi Ankita,

Thank you very much for your help. The modified vi that you sent me works fine.
Regards,

Peter
0 Kudos
Message 3 of 3
(3,307 Views)