tdms icon indicating copy to clipboard operation
tdms copied to clipboard

undefined method 'path' for nil (NoMethodError)

Open joshuapinter opened this issue 9 months ago • 2 comments

Trying to parse a .tdms file and getting the following on initial .parse attempt:

cntral(dev)> Tdms::File.parse( Rails.root.join( "test1.tdms" ) )
(cntral):11:in '<main>': undefined method 'path' for nil (NoMethodError)

            chan.path         = prev_chan.path
                                         ^^^^^

joshuapinter avatar Mar 19 '25 15:03 joshuapinter

How can such a file be produced?

When the test fixtures are generated with NI LabVIEW, they do not have this issue, so I don't know how to duplicate it.

mnaberez avatar Mar 25 '25 15:03 mnaberez

@mnaberez I'm not sure. I've attached the file here. It's from a gas detection sensor mounted on a truck. We're not generating the file. We're just trying to parse and ingest it. Thanks for your help.

test1.tdms.zip

joshuapinter avatar Mar 25 '25 15:03 joshuapinter