LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File conversion from LVM to TDMS?

Solved!
Go to solution

Hello forum members,

 

Does anyone has an idea on how to convert from LVM file to TDMS?

 

I will really appreciate your help on this

 

thanks again

 

SergeArmz

0 Kudos
Message 1 of 8
(3,417 Views)

Hi Serge,

 

read your LVM file and save it using TDMS functions?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,414 Views)

I think that is going to depend on how your LVM file is formatted.  The writing to TDMS is quite straight forward and just use the TDMS Write function giving it the proper data, channel and group names.

 

Reading the LVM shouldn't be hard, just understanding the pieces.  I think LVM is just a text file with some header information, then tab delimited data.  Read all the data, turn it into arrays, then write to TDMS.

 

http://www.ni.com/tutorial/4139/en/

 

Post an example LVM file and code if you get stuck.

0 Kudos
Message 3 of 8
(3,411 Views)

Hello GerdW,

 

Thank you for your reply, do you have any sample on how to do that?

 

Serge Armz

0 Kudos
Message 4 of 8
(3,410 Views)

@SergeArmz wrote:

 

Thank you for your reply, do you have any sample on how to do that?


I asked you first Smiley Tongue  You're not giving us much information, so any answer we give you is probably going to be incomplete or may not work in your situation.  For best results, give us all of the information you can.

0 Kudos
Message 5 of 8
(3,393 Views)

Yes, you are right Hooovahh,

 

I'm attaching a sample fLVM file, I use to acquire 1 second at 48KS/sec, so basically my file contains 48,000 points, what I'd like to do is to convert it to TDMS, but i do not really have an idea on how to do that Smiley Sad

 

Thanks for your inputs

 

SergeArmz

0 Kudos
Message 6 of 8
(3,381 Views)
Solution
Accepted by topic author SergeArmz

As much as I hate express VIs, it sure made quick work of what you wanted.

 

Example_VI_BD.png

 

Using Snippets

Message 7 of 8
(3,367 Views)

This really works, thanks Hooovahh Smiley Wink

 

 

0 Kudos
Message 8 of 8
(3,354 Views)