This widget could not be displayed.
This widget could not be displayed.

LabVIEW

This widget could not be displayed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tdms-Writing 1D string to multiple channels

Solved!
Go to solution

What is the best way to write (lets say) 20 data points to 20 different channels simultaneously? i.e. one data point to each of 20 different channels. The data type is 1D array of string.

 

The 'channel name(s)' terminal on the Tdms Write .vi will not accept a 1D array of string because of my data type. My data type can not be converted because it is alphanumeric.

 

My idea was to do something like this minus the custom properties

http://zone.ni.com/devzone/jsp/largeImage.jsp?imagename=/cms/images/devzone/tut/TDMS_API_VI_Snippet....

Except with the data Being a 1D string array instead of Double.

 

Thanks,

 

Ryan

 

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 1 of 4
(5,896 Views)

Maybe I could leave the 'channel name(s)' terminal unwired and allow LV to automatically name 20 channels, and then use the 'set channel information' function to name them after the data is written?

 

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 2 of 4
(5,895 Views)

wire the 1d array of string data to a "build array" primitive to make it a 2d string array with only one row.  wire this to a "transpose array" to make it one column. (I believe it expects channels in rows, I could be wrong, test it.)

-Barrett
CLD
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
Message 3 of 4
(5,862 Views)

This worked. I probably never would have thought to do that, thanks.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 4 of 4
(5,858 Views)