LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error reading TDMS file with inconsistend dt

Hello all,
 
I would like to ask your help to understand how to read a TDMS file which I am opening and closing based on a user input.  As a result the data in the TDMS file does not have a consistent time step, which may be causing my problem, but I really don't know.  I keep getting the error 2501, that I have an invalid reference. 
 
Or, if I continue and bypass the error, the extract portion VI gives me an error stating that I need to define an integer multiple of dt.
 
I am not sure how to solve the first point as I have the reference wired directly to the read TDMS vi.
 
I have attached a screen shot of the error and the portion of the VI with the offending error (it is the code connected to the read TDMS read vi).
 
My goad is to extract a portion of the data to do calculations on and display a result to the user.
 
thanks for any comments.
A. Lopez
0 Kudos
Message 1 of 7
(4,288 Views)
I think you open multiple times the same TDMS file, you should open it before the while loop. And I don't see a close tdms function...
Also check for errors on the open TDMS function.


Ton

Message Edited by TonP on 02-14-2007 07:45 AM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 7
(4,282 Views)

Ton P,

thanks for the tips. my computer crashed and I could not do anyting the last couple of days, but I investigate more and post again if still having trouble.

 

A. Lopez
0 Kudos
Message 3 of 7
(4,265 Views)

Did you ever end up solving this?  I am now encountering the same problem.

0 Kudos
Message 4 of 7
(3,949 Views)

Hi lopez and pshadlyn!

 

I would recommend taking a look at the "TDMS-Write data (time domain).vi" example found in the NI Example Finder (Help>>Find Examples).  

 

Kristen H.

Message 5 of 7
(3,933 Views)

Thanks Kristen, I've managed to get it working now.  The VI I had written was structured very similar, but I didn't have all the errors in/out connected from each TDMS block.  I've connected them and now it's working fine.  I'm a little confused by this, why would it make a difference?  I'm new to TDMS reading/writing and I'm just trying to figure it out.  I've attached a picture of my VI.  It's a small stand-alone VI.

 

Thanks.

Phil.

0 Kudos
Message 6 of 7
(3,912 Views)

Hi Phil!

 

I'm glad to hear it is working now.  It's hard to tell why wiring the error wire through fixed your error, without looking through your code.  However, the error wire will force the execution order becuase VIs will wait for all of their inputs before executing.  Best of luck with your application!

 

Kristen H.

0 Kudos
Message 7 of 7
(3,888 Views)