02-09-2009 08:27 PM
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
02-09-2009 08:41 PM
02-09-2009 11:00 PM - edited 02-09-2009 11:00 PM
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.
02-10-2009 12:06 PM
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.
02-10-2009 01:02 PM - edited 02-10-2009 01:03 PM
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.
02-10-2009 01:31 PM
07-11-2012 09:46 PM - edited 07-11-2012 09:48 PM
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!!!
To name a Dynamic Data Signal, use the Set Dynamic Data Attributes VI found in Express > Signal Manipulation
Hope this helps,
Cheers