08-03-2015 02:43 PM
This is an odd one:
I don't know what's causing this, but when trying to open or create a tdms file I'm getting the -2501 error. The file name I'm using worked before, but if i hit the stop button, I can no longer use that file name. If I change one letter in the file name it works fine until I stop the program from running, and then I start getting the error again.
Speaks is Perplexed
08-03-2015 03:16 PM
Sorry, make that -2503
08-03-2015 08:13 PM
Is it possible to upload your TDMS file here and we can take a look and try to find out the root cause?
08-04-2015 11:22 AM
I fixed it, it wasn't a file read issue; I was setting up to write to files. On the TDMS open vi for operation I had it set to "open or create". I changed it to "create or replace" and it works fine now.
08-04-2015 01:52 PM
OK, I lied. In order to get multiple lines of data it has to be set for open or create.
I'm attaching the TDMS file as you requested, but I had to change the file extension to .txt because this forum wouldn't accept .tdms
I'm at a loss as to why this is happening. It was working before, all I changed was the file name format. I had a strip path in line before, but I don't know why that would make a difference. When I put a constant in as the file name it works fine.
Save Speaks
08-04-2015 01:58 PM
I'm also attaching the first VI that worked, and the revsion that doesn't.
08-04-2015 09:13 PM
I couldn't open the VIs you attached, it seems some controls are missed. Maybe you can try to upload your TDMS file by using NI FTP: ftp://ftp.ni.com/incoming
And please reply with the file name when you upload and we'll take a look at the file.
08-05-2015 10:10 AM
how do I upload to it?
08-05-2015 10:11 AM
how do I upload to it?
08-05-2015 10:23 AM - edited 08-05-2015 10:25 AM
@Speaks wrote:
how do I upload to it?
Copy that address in to your Windows explorer and it will show up like a normal folder directory would.
Edit: I dropped my own random file in there to test it out and it uploaded... but now I can't delete it or open it. Sorry for taking up your server space, NI!
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'