03-05-2012 03:22 PM
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.
03-05-2012 03:48 PM
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.
03-05-2012 05:00 PM
At this point of time I would like to create a matrix.
03-05-2012 11:10 PM
You can't create a matrix of strings.
You can make a 1-D array or a 2-D array of strings.
03-06-2012 05:49 AM
So how would I create a 2-D array of string?
03-06-2012 08:36 AM
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours