12-11-2019 08:58 AM
Hi,
I have a problem. If I wanted to put every state of an enum in a string but without overwriting it, how should I do it?
In short, at each step of the state of an enum the state is added in a string and each word must be below the other.
12-11-2019 09:23 AM
Assuming you're doing this in some loop you can simply connect the state to the border and build an array, then convert this to a string. Enum can be converted to string with Format into string.
/Y
12-11-2019 09:49 AM
Hi Yamaeda,
Yes, I did it but the previous word overlaps me every time. I need a string that marks every step without eliminating any state.
Thanks
12-11-2019 12:00 PM
"overlaps"? Do you mean overwrites?
Attach your VI. My guess is you are not using a shift register and a concatenate function when you should be.
12-11-2019 12:37 PM - edited 12-11-2019 12:40 PM
An enum and a string are very different things. An enum also does not have a state, just a value. What do you want? An array of strings representing the item names? A scalar linefeed delimited string? Something else? A list of all item names? A log of item names in the order they occur in your state machine?
12-11-2019 01:12 PM
12-12-2019 03:54 AM
I notice that sometimes I don't ask the right question, my little experience in programming makes me ask too general questions.
I have 1 and a half of life on labview and 3 months in programming in general.
Yes, I needed a register of the names of the articles in the order in which they occur in the state machine placed inside a string.
Thanks 🙂