06-25-2009 08:36 AM
I am using a USB-TEMP-AI board from MCC with Labview 8.6
This necessitates using VInDLL.vi and TIn.vi to read my signals.
When I log using "write to measurement file", I would like headings
above the data such as:
Tcold.in, Tcold.out, Thot.in, Thot.out, Flow.cold, Flow.hot
instead I get:
Untitled, Untitled 1, Untitled 2, etc.
For some cases I need scaling, after which I get headings such as:
Scaled (Scaled), Scaled (Scaled) 1, Scaled (Scaled) 2, etc.
How can I fix this?
Thanks,
Jon Snyder
06-25-2009 09:45 AM
One way is to use an NI data acquisition board and then you would probably be using the DAQ Assistant which would create the column names for you. A second way would be to just not use the Write to Measurement File and use one or more of the lower level file write functions (i.e. Write to Spreadsheet File) and write the column headers separately. The last way, would be to make sure the data from the mcc function is a waveform data type and set an NI_ChannelName attribure to what you want before passing the data to the Write to Measurement File.
This question has been asked numerous times and code for setting the attribute has been posted numerous times.