ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning a name when using LVM Format

Hi

I am currently developing an application, which reads 9 Traces from an Agilent Spectrum Analyzer.

I am using the TDM File Format for a machine-readable format and the LVM Format (Write to Measurement File Express VI) for a human readable output  possibility. Now when I view the LVM format, I can find the lines:

---snip---
X0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0   
Delta_X    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7    2.493766E+7   
***End_of_Header***                                       
X_Value    Untitled    Untitled 1    Untitled 2    Untitled 3    Untitled 4    Untitled 5    Untitled 6    Untitled 7    Untitled 8    Comment
0.000000    -65.739000    -14.069000    -72.392000    -65.183000    -14.069000    -72.392000    -64.011000    -14.069000    -72.392000
2.493766E+7    -64.526000    -57.759000    -75.090000    -68.186000    -57.759000    -75.090000    -65.462000    -57.759000    -75.090000
---snip---

Now I would like to give the traces a name, instead of them being called Untitled. How would I do that?
0 Kudos
Message 1 of 5
(4,413 Views)

Hi Thomas

You can use Set Waveform Attribute where you can set Name string equal to NI_ChannelName which in turn is recognised by the Convert to DDT function.

Like this

David

Message Edited by David Crawford on 09-07-2006 10:07 AM

Message 2 of 5
(4,408 Views)
Thank you, works perfectly - exactely what I've been looking for 🙂
0 Kudos
Message 3 of 5
(4,400 Views)
This is close but the number of channels being measure will end up changing and I would like a way to do this same thing but keep all the data in dynamic format so that minimal adjustments have to be made as the number of channels changes.
0 Kudos
Message 4 of 5
(4,353 Views)
0 Kudos
Message 5 of 5
(4,343 Views)