07-03-2013 08:51 AM
I have a matrix that I'm writting numberic decimal values to but I would like to know if there is a way I can also write text to the same matrix. Currently I have a 10 x 6 maxtrix that contains numberic values (data) but I would like to add a text column to the matrix. I'm using the matrix to display data.
Solved! Go to Solution.
07-03-2013 08:59 AM
Instead can't you use 2 D array to display 10 x 6 data?. If yes, you can convert the numeric array to string array and you can also add text along with it
07-03-2013 03:49 PM
Attached is the VI I'm working on. The "Random Number" will be replaced with analog voltage measurements. I would like to add another column to the matrix but this will be a user entered text.
07-03-2013 03:50 PM
I think I can use a 2D array... I will try this.
07-04-2013 09:50 AM
If you reaaly need a matrix datatype for the mathematics you will be doing, it might make more sense to have a separate string array for the row headers. I used the Classic style Simple String for the array elements. Of course your wuold hide the string array label and Index Display.
Also, simply create a 2-D array of numerics by autoindexing and then use the Array to Matrix primitive outside the loops. This will be much more efficient than using Insert into Array and a local variable.
Lynn
07-08-2013 09:41 AM
Thank you, that will work.