06-07-2018 09:47 PM
So you are starting with a string that contains plain text that are numbers representing octal numbers? Just use the Scan From String as you have already been told to make a U8 integer. Then use Build Array and Byte Array To String to get your normal ASCII string.
06-07-2018 11:31 PM
Okay found my problem. I didn't put flat sequence yesterday that's why have bug. All done after i put flat sequence in it.
Thanks
06-08-2018 12:00 AM
@oliver1023 wrote:
Okay found my problem. I didn't put flat sequence yesterday that's why have bug. All done after i put flat sequence in it.
Thanks
You still do not understand Data flow! You can remove that flat sequence, it is redundant here. Just create a wire branch on the wire, after the While loop before the Array indicator, and connect conversion function to it before the string indicator. It is also just silly to use a local variable here.
If you are new to LabVIEW, there are lots of online training options, you can find here in a list, under section "Looking For Free Training": https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495
And some reading about local variables, flat sequence structures, and more:
06-08-2018 06:15 AM - edited 06-08-2018 06:16 AM
Yeah, avoid those Local Variables as much as possible. Use wires.
Anyways, here is what I would do. I used a FOR loop to make it a little easier on the compiler when creating the output array. At these low sizes, it probably does not matter. It would matter if we got into larger strings.