From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TDMS Logging

Solved!
Go to solution

Hello. Im running a sensor simulatuion code with a random number generator. The VI is running on my laptop. Im using LabVIEW 2013. I want to log the data and store it on my PC (anywhere will do). Im trying to write it as a TDMS file but I keep receiving an error -2501 on TDMS close. Could somebody please help me out.

Thanks 🙂

VI Attached below

0 Kudos
Message 1 of 3
(2,605 Views)
Solution
Accepted by topic author deepen_solanki

You are trying to close the same tdms file two times, why are you doing that?

Try to serialize your write to the tdms so that you do not write in parallel in this simple program.

0 Kudos
Message 2 of 3
(2,591 Views)

Actually, your part about closing the same file twice was very helpful ! Thanks a lot, i figured it out 🙂

0 Kudos
Message 3 of 3
(2,574 Views)