04-17-2024 01:22 PM
Hello, I'm a beginner to LabVIEW and need help with writing headers to my file created through the Write to Measurement File vi. I have one DAQ Assistant with eight different outputs, each output having its unique identifier. I'm reading the outputs to the Write to Measurement File vi but when I view the xlsx file, the headers show up as 'untitled 1", "untitled 2", etc. How can I display the correct header name to the final file?
Solved! Go to Solution.
04-17-2024 04:33 PM
Please attach your VI so we can more clearly see what you are doing. Many of us don't have the latest LabVIEW version, so it is best if you "Save for Previous Version" and specify LabVIEW 2019 or 2021.
Bob Schor
04-18-2024 12:53 PM
Hi Bob, I've attached a similar vi to what I'm working with. What I'm trying to do is get headers for the various signals and numeric controls to the saved xlsx file. I've tried with "Set Dynamic Data Attributes" but it's very clunky given how many signals I need headers for. Any inputs would be appreciated!
04-18-2024 01:48 PM - edited 04-18-2024 01:55 PM
Hi asb,
@asb328 wrote:
What I'm trying to do is get headers for the various signals and numeric controls to the saved xlsx file. I've tried with "Set Dynamic Data Attributes" but it's very clunky given how many signals I need headers for. Any inputs would be appreciated!
when you want to use ExpressVIs and their DDT datatype wires then you need to use even more ExpressVIs (SetDynamicdataAttributes) to apply labels to your signals!
To make it a little less clunky you should think about using a loop to label one signal after the other: you only need one instance of SetDynamicDataAttribute:
04-30-2024 07:47 AM
Thank you so much! This works and makes it a lot neater.