Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find sample rate from read from measurement file

Solved!
Go to solution

Hello

 

I would like to find/extract the sample rate from a .lvm file.

Right now I am using the "read from measurement file" VI, and my data loads fine and all, but I need the sample rate for some calculations.

I know from the header of the .lvm file that the sample rate is 1613Hz, but I would like to get this information automatic from the opened .lvm file.

 

Tried to find a express vi that could give me the answer but I haven't been able to find one 😞

 

I am sorry if this question already has been answered, but I just couldn't find the answer.

 

Hope you understand what I am trying to do!

 

Thanks

 

Kind regards

Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
0 Kudos
Message 1 of 3
(3,798 Views)
Solution
Accepted by topic author tombech
The timing information is part of the Signals output. Never use Express functions but you can use the From DDT and convert to one of the waveform data types. Then the Get Waveform Components will return the dt.
0 Kudos
Message 2 of 3
(3,797 Views)

Thanks a lot!

 

It is soooo easy when you know the answer..... Can't believe I spend all day yesterday to try to figure this out myself 🙂

 

Once again thanks!!

 

Kind regards

Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
0 Kudos
Message 3 of 3
(3,772 Views)