annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Tdms-Writing 1D string to multiple channels

Risolto!
Vai alla soluzione

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

 

 

0 Kudos
Messaggio 1 di 4
5.851Visualizzazioni

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?

 

 

0 Kudos
Messaggio 2 di 4
5.850Visualizzazioni
Soluzione
Accettato da autore argomento Ryan Cattley

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
Messaggio 3 di 4
5.817Visualizzazioni

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

0 Kudos
Messaggio 4 di 4
5.813Visualizzazioni