I am using the tdms write vi. When I wire data into this vi as a 1d
array, I am only able to create a channel group control. when I create
a channel name control, the wire between the control and the input to
the vi becomes disconnected. Thus the channel name becomes untitled in
my tdms file. Is there a way to name this channel name instead of
having it being called untitled.
If you wire a 1d array, the "channel name(s)" input switches from 1d
array of string to scalar string. Wiring a string control/constant
should do the job.
Perhaps you are/were in the same situation I was in this morning. I had a 1d array of doubles that I wanted to write to a TDMS file; in the array were four values I wanted written to four channels, not one array to one channel. I solved the problem by wiring each of the doubles into four 'build array' functions and the outputs of those into another 'build array'. The result was a 1-d array of 1-d arrays, each of which had only one value. See the attached picture.
I hope this helps. Jim
Jim You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7
I think these are two different problems - storing a single channel
from a 1d array versus storing a single value for multiple channels
from a 1d array. You might have an easier time wiring your 1d array to
an array bundler with just one input and then do a 2d array transform.
The result is the same, but the solution scales automatically to whatever your number of channels is.