ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying string in a matrix

Hi there I have this problem I am working on.  I am making a GUI that will send a command to a microcontroller that I am working with.  When this command is recieved by the microcontroller, it will begin to transmit information to the computer.  This data would be recieved in a string format.  The exact sequence that I am recieving is DD@@AADDEEPPQQTTUU.  I want to take this sequence and sort it into a matrix that would be displayed for the user.   The sequence should be broken up into substrings with lenghth of two and then be added to the matrix.  However I am not sure how to do this, please help in any you can.

0 Kudos
Message 1 of 6
(3,063 Views)

Do you want a matrix or do you want an array?  They are two different things in LabVIEW.  You can create an array of strings.  But a matrix (while a lot like an array) is a different entity and only works on double numeric datatypes.

 

You'll need a loop and functions in the array palette and String palette to break apart subsets of the string and build them into an array.

0 Kudos
Message 2 of 6
(3,060 Views)

At this point of time I would like to create a matrix.

0 Kudos
Message 3 of 6
(3,046 Views)

You can't create a matrix of strings.

 

You can make a 1-D array or a 2-D array of strings.

0 Kudos
Message 4 of 6
(3,034 Views)

So how would I create a 2-D array of string?

0 Kudos
Message 5 of 6
(3,022 Views)

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 6 of 6
(3,014 Views)