06-08-2020 03:19 AM
Hi
I am trying to use the structure as the figure to design the system boot up sequence but it is not feasible, seems the string "initial reset wait LED turn on" can not be separated to small strings
"initial"
"reset"
"wait"
"LED turn on"
Does anyone know how to fix it?
Patrick
Solved! Go to Solution.
06-08-2020 03:56 AM
Hi Patrick,
You only have a single string being used as the selector so it will always be the same. You could use something like an enum with separate items defined as "initial", "reset", etc.
PsyenceFact
06-08-2020 05:59 AM
You might want to have a look at the Natt Sequence.
06-08-2020 06:45 AM
'Spreadsheet string to array', with newline as separator will convert if to an Array that you can loop over.
06-09-2020 09:44 AM
Hi PsyenceFact
Thank you for your reply, I'd like to have system to complete the sequence automatically, so I will try to find the other approach.
Patrick
06-09-2020 09:48 AM
Hi Yamaeda
Thanks for your comment, I created the VI as below, seems workable
Patrick
06-09-2020 09:52 AM
Where does this "string" come from? If this is just a diagram constant, you could replace it with an array of strings or an array of enums, then loop over it. If this is read from a file, read it as 1D array of strings using "read delimited spreadsheet"
(What is the purpose of the sequence structure? Makes no sense to have it. I would recommend to go back to the tutorials)
06-09-2020 09:53 AM - edited 06-09-2020 09:57 AM
@Patrick0830 wrote:
Hi Yamaeda
Thanks for your comment, I created the VI as below, seems workable
Patrick
You don't need to wire N and instead replace "index array" with autoindexing. Notice the red coercion dot? It indicates a type mismatch.