04-25-2018 08:56 AM
Hello,
I need to write a column header multiple columns of data of different type (integers, time stamps, string...etc). the data is going to be dynamic (data acquired). The challenge is I do Not won't to use the "Write to Measurement" vi. I want to use the low level "write to text file"
Thanks
M. Hadi
Solved! Go to Solution.
04-25-2018 09:13 AM
Can you be more specific about where you're running into trouble? What have you done so far?
04-25-2018 09:21 AM
I attached a screenshot, I made the header now but I failed to wire the data to the second "write to text" since they are different types.
04-25-2018 09:49 AM
You need to turn your numerical data into strings that you can write to the file, and there are several ways to do that. The "Array to Spreadsheet String" function is probably the easiest, or the functions in the "Number/String Conversion" subpalette of the Strings palette, or "Format into String" which is my favorite but less straightforward. If you want to combine your date and time strings with your numeric data on a single line, I'd suggest using "Number to fractional string" to convert each of the numbers to strings, then combining them all using "Concatenate Strings" like you did to create the header line.
04-25-2018 10:07 AM
It worked like a charm. Thank you!
Before that I tried to combine the data into a cluster and then write to text file but I could not wire the cluster to the 'Write to text"
Thanks again.
M. Hadi
06-27-2022 02:52 AM
You can also right-click a cell in the Table Layout area and click Add > Columns To > Header. The Add Columns to Header dialog box appears. Type the number of columns to add in the Count text box. Click OK Hyvee Huddle App