LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Write to Text File - unflatten channel string

Solved!
Go to solution
Highlighted

Hi all,

 

This is my first post on the forums!  It's been very helpful for me but I have not been able to find a solution to my (simple) problem.

 

Operating system: Windows 7 (64-bit)

Labview 2012 Full Development

 

I'm using the DAQmx unflatten channel string to get the names of the channels, and when I Write to Text File, I get the names of channels to be displayed vertically, ie a new row for each channel in a column.  I'd like to "transpose" this, but obviously you cannot transpose a 1d array.  Any ideas on how I can do this?

 

Any and all ideas are appreciate, thank you in advance,

 

-AK

0 Kudos
Message 1 of 4
(835 Views)
Solution
Accepted by topic author AKN_12
08-27-2015 04:09 PM

Show us how you are doing this.

 

My guess is that once you get the data, you have linefeed characters separating the channel names rather than some other delimiter such as a comma or a tab.

 

Depedning on how you are going from the channel names to the file (a string, an array of strings, Write to Spreadsheet File, Write to Text file, ....) will determine the best way to fix the problem for you.

0 Kudos
Message 2 of 4
(831 Views)

Thank you RavensFan, adding the comma delimiter is actually what helped fix the problem!

 

 

0 Kudos
Message 3 of 4
(808 Views)

You're welcome.

 

But please mark my message as the solution to your problem rather than your own thank you message.  First you will need to unmark your message as the solution by going to the options menu to the upper right of your message.

0 Kudos
Message 4 of 4
(796 Views)