LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

naming columns when writing to a measurement file

Pretty simple DAQ related question I think. I am taking thermocouple data from 16 channels. I am using Write to Measurement File. When I view the data, the columns are automatically labeled Untitled, Untitled1, Untiteled2...etc. It seems like their should be a way name these channels. This would make interpreation of the data much quicker and easier. So far, I have'nt been able to find out how you can do this. Thanks.

 

-ob

0 Kudos
Message 1 of 7
(4,437 Views)
Take a look at this thread.  Naming the Channels TDMS using the express VI
0 Kudos
Message 2 of 7
(4,434 Views)

If you dont want to use the express VI (which is a perfectly valid option):

Before you write the data to the measurement file,

write an array of strings, which will be the titles.

Message Edited by Cory K on 02-09-2009 11:00 PM
Cory K
Message 3 of 7
(4,422 Views)

I checked the thread above. I tried using the TDMS Write which did allow me create an array of names that could be wired to it. But, the TDMS would not allow me to wire it to my data. I received the error message "This wire connects more than one data source".Also if I use the TDMS I'm afraid I will lose the ablility to format the data in all the ways I could using the Express VI. 

 

I was originally using the Express VI which was perfect except for not allowing me to name the columns. The fact that it labels the columns Untitled0... seems to indicate that they should be able to be titled. I just don't know how. 

0 Kudos
Message 4 of 7
(4,402 Views)

Try this.  It isn't that pretty, and I think it should be a whole lot easier to do than this considering the Express VI's are intended for new users.

 

1.  Turn your data into a Waveform.

2.  Set the attribute for the channel name for the waveform.

3.  Convert it to the Dynamic Data Type for the Express VI's.

 

This shows how to do it for a single double datatype array and a single waveform.  For multiple channels, it may be necessary to iterate through the waveform array and set the channel names for each one.

 

Search the forums for more examples.  I swear I've seen this done before, but I haven't seen it often, and I couldn't find it, so I worked it out myself.

Message Edited by Ravens Fan on 02-10-2009 02:03 PM
Message 5 of 7
(4,392 Views)
Thanks for your help I'll give it a try.
0 Kudos
Message 6 of 7
(4,388 Views)

Try this VI I made. It takes in a Double signal and a string, names your signal, and outputs it as a Dynamic Data.

I used this with the Write to Measurement File without any issues!!!

 

Name DBL Signal VI.png

 

To name a Dynamic Data Signal, use the Set Dynamic Data Attributes VI found in Express > Signal Manipulation

 

Hope this helps,

Cheers

Download All
0 Kudos
Message 7 of 7
(3,679 Views)