04-18-2006 01:32 AM
04-18-2006 01:45 AM
I'm not sure what you mean by "sorting into an array of 4 chars".
If you want to convert the string into a 1D array where each four characters are an elemenet you will have to go over the string in a loop and use String Subset with the length set to 4 and the offset continuously incrementing (by multiplying the i or by using a shift register). You auto index the result of the loop and you have a 1D array. If you know the string length before the loop you can use a for loop. If you don't you will need to use a while loop.
If this didn't help you you should post an example of what kind of string you're having and what you want to get out of the function.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
04-18-2006 02:56 AM - edited 04-18-2006 02:56 AM
Yup, I meant 4 characters per element. Can you show me how do I modify this vi to display the element when I input an index?
Message Edited by kingkong on 04-18-2006 02:57 AM
04-18-2006 08:26 AM
04-18-2006 08:33 PM - edited 04-18-2006 08:33 PM
Message Edited by kingkong on 04-18-2006 08:37 PM
04-19-2006 02:06 AM