LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract number of samples and delta x from .lvm

I am puzzled here.
I am using Read From Measurment File Vi then converting to array of doubles. I can change the doubles, then convert back to signals and display it correctly.
 
Where is the delta x field? If I just have an array of doubles, how is it possbile to convert back to signals, without specifying delta x? How can I get at it, where is it stored once loaded from the file?
 
Do I need to parse the file as a spreadsheet, or is there a vi that can pull it from the signals?
0 Kudos
Message 1 of 4
(3,023 Views)
delta X by default is 1.  Without a little more detail, I am not sure what else to tell you.  What do you mean by "change the doubles"?  But you can put in the "from Dynamic data type" (express palette-> signal manipulation) and specify a waveform datatype (bottom of the list in the properties dialog) which should have your delta X in the datatype.  I hope this helps you.

Paul
0 Kudos
Message 2 of 4
(3,017 Views)
The delta X value is in the original dynamic data type (DDT), but you throw it away when you convert DDT to an array of DBLs.  Convert to a waveform data type (WDT) instead (use single waveform option on converter), and you will get the deltaX value in the dt field of the waveform.



Note that you can probably do most of your analysis and plotting with the waveform data type, so there is no real need to convert it to an array of doubles.

Message Edited by DFGray on 06-29-2007 08:36 AM

Message Edited by DFGray on 06-29-2007 08:38 AM

Message 3 of 4
(3,017 Views)
Thanks man, that is exactly what I was looking for.
0 Kudos
Message 4 of 4
(3,008 Views)