Why is my Write to Measurement File Express VI Not Creating a File in the Directory I Specify?Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development SystemPrimary Software Version: N/A Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I am trying to create a file in LabVIEW to save the data I acquire, using the Write to Measurement File Express VI. I am specifying the directory to store the file as shown in the following image Unfortunately this is not creating a file in the specified directory. Why is this happening? Solution: This is happening because of the dot that is in the specified filepath. If you open up the Front Panel of the Express VI, and find the SubVI called BuildFilePath you will be able to see that the code reverses the filepath and searches for a dot in the string to determine the appropriate file extension, i.e. .txt or .tdms. Because the file extension has not been explicitly specified in this example, and there is a dot in the middle of the filepath, in this instance the BuildFilePath SubVI will misinterpret this and the file will not be created in the intended directory. The way to resolve this is simply to include the file extension in the filepath (as shown below) Related Links: AE KB 2X0ADNFI : Using the Write to Measurement File Express VI Attachments:
Report Date: 10/30/2008 Last Updated: 10/31/2008 Document ID: 4QT4LIU0 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
