10-17-2014 04:45 PM
I am having issues using the "write waveform to file" command. Perhaps the issue lies somewhere else. The issue is that even though the file path is correct on my front panel indicator, a file is never being created. The file path is created by using the folder location and creating the file based on the time stamp of the program's run time. If somebody could explain a solution I would appreciate it.
Curtis
Solved! Go to Solution.
10-17-2014 04:51 PM
Here's what my front panel shows for more information. The file path string is shown correctly, but the actual path is not being created.
10-17-2014 06:10 PM
Do NOT use cancatinate string to build up file paths. You are just asking for issues. That is what Build Path is for, and it reduces the amount of work you have to do.
10-17-2014 06:18 PM
That is one of the things I originally tried, and it is giving the same results. I attached a pic showing the program with this setup.
10-17-2014 06:21 PM
Does your loop ever finish? That Write Waveform To File function is outside of the loop, so it won't run until after the loop is complete.
10-17-2014 06:28 PM
I am currently testing it without the DAQ device attached, so the program does not fully run so that very well could be the issue. Before, I did try it with everything connected but was seeing the same results. Let me relocate and I'll let you know if that fixes the issue.
10-17-2014 06:33 PM
Same issue. I attached a picture of the full code and front panel to see if that helps.
10-17-2014 06:41 PM - edited 10-17-2014 06:41 PM
Is a colon ( : ) in the timestamp a valid character in a file path?
Please post the actual VI. Perhaps someone will find something which does not show on an image.
Lynn
10-17-2014 06:42 PM
OK I was thinking about possible issues with the loop and I think that may be the source of the problem. The DAQ Assistant Task runs on 8 second cycles and the operator is supposed to stop the program manually when the desired graph is received. I think that since the programmer is stopping the program while still in the loop, the code outside of the loop never runs. I moved the "write waveform to file" command and everything else into the loop to see if that would work and the program does indeed run further, now giving a <Not a Path> message.
10-17-2014 06:44 PM
Here's the VI. I was hoping to avoid posting the whole thing but since I already posted the picture I guess it's a moot point.